1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 23:33:33 +08:00

minor changes

This commit is contained in:
2025-06-04 17:53:54 +08:00
parent a9286d2839
commit ba095d79f0
2 changed files with 7 additions and 7 deletions

View File

@@ -207,13 +207,13 @@ public static class TechFunctions
} }
if (!enough) if (!enough)
{ {
UIMessageBox.Show("元数据".Translate(), "元数据不足".Translate(), "确定".Translate(), 3); UIMessageBox.Show("元数据".Translate(), "元数据不足".Translate(), "确定".Translate(), UIMessageBox.ERROR);
return; return;
} }
if (!history.hasUsedPropertyBanAchievement) if (!history.hasUsedPropertyBanAchievement)
{ {
UIMessageBox.Show("初次使用元数据标题".Translate(), "初次使用元数据描述".Translate(), "取消".Translate(), "确定".Translate(), 2, null, DoUnlockCalculatedTechs); UIMessageBox.Show("初次使用元数据标题".Translate(), "初次使用元数据描述".Translate(), "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null, DoUnlockCalculatedTechs);
return; return;
} }
@@ -256,7 +256,7 @@ public static class TechFunctions
if (consumption.Value <= 0) continue; if (consumption.Value <= 0) continue;
msg += $"\n {LDB.items.Select(consumption.Key).propertyName}x{consumption.Value}"; msg += $"\n {LDB.items.Select(consumption.Key).propertyName}x{consumption.Value}";
} }
UIMessageBox.Show("Batch buyout tech".Translate(), msg, "取消".Translate(), "确定".Translate(), 2, null, UnlockWithPropertiesImmediately); UIMessageBox.Show("Batch buyout tech".Translate(), msg, "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null, UnlockWithPropertiesImmediately);
return; return;
void AddToMsg(ref string str, Tuple<TechProto, int, int> tuple) void AddToMsg(ref string str, Tuple<TechProto, int, int> tuple)

View File

@@ -436,12 +436,12 @@ public static class UIConfigWindow
x = 400f; x = 400f;
y = 10f; y = 10f;
wnd.AddButton(x, y, tab2, "Initialize This Planet", 16, "button-init-planet", () => wnd.AddButton(x, y, tab2, "Initialize This Planet", 16, "button-init-planet", () =>
UIMessageBox.Show("Initialize This Planet".Translate(), "Initialize This Planet Confirm".Translate(), "取消".Translate(), "确定".Translate(), 2, null, UIMessageBox.Show("Initialize This Planet".Translate(), "Initialize This Planet Confirm".Translate(), "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null,
() => { PlanetFunctions.RecreatePlanet(true); }) () => { PlanetFunctions.RecreatePlanet(true); })
); );
y += 36f; y += 36f;
wnd.AddButton(x, y, tab2, "Dismantle All Buildings", 16, "button-dismantle-all", () => wnd.AddButton(x, y, tab2, "Dismantle All Buildings", 16, "button-dismantle-all", () =>
UIMessageBox.Show("Dismantle All Buildings".Translate(), "Dismantle All Buildings Confirm".Translate(), "取消".Translate(), "确定".Translate(), 2, null, UIMessageBox.Show("Dismantle All Buildings".Translate(), "Dismantle All Buildings Confirm".Translate(), "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null,
() => { PlanetFunctions.DismantleAll(false); }) () => { PlanetFunctions.DismantleAll(false); })
); );
y += 72f; y += 72f;
@@ -720,7 +720,7 @@ public static class UIConfigWindow
x = 400f; x = 400f;
y = 10f; y = 10f;
_dysonInitBtn = wnd.AddButton(x, y, tab5, "Initialize Dyson Sphere", 16, "init-dyson-sphere", () => _dysonInitBtn = wnd.AddButton(x, y, tab5, "Initialize Dyson Sphere", 16, "init-dyson-sphere", () =>
UIMessageBox.Show("Initialize Dyson Sphere".Translate(), "Initialize Dyson Sphere Confirm".Translate(), "取消".Translate(), "确定".Translate(), 2, null, UIMessageBox.Show("Initialize Dyson Sphere".Translate(), "Initialize Dyson Sphere Confirm".Translate(), "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null,
() => { DysonSphereFunctions.InitCurrentDysonLayer(null, -1); }) () => { DysonSphereFunctions.InitCurrentDysonLayer(null, -1); })
); );
y += 36f; y += 36f;
@@ -732,7 +732,7 @@ public static class UIConfigWindow
var btn = wnd.AddFlatButton(x, y, tab5, id.ToString(), 12, "dismantle-layer-" + id, () => var btn = wnd.AddFlatButton(x, y, tab5, id.ToString(), 12, "dismantle-layer-" + id, () =>
{ {
var star = DysonSphereFunctions.CurrentStarForDysonSystem(); var star = DysonSphereFunctions.CurrentStarForDysonSystem();
UIMessageBox.Show("Dismantle selected layer".Translate(), "Dismantle selected layer Confirm".Translate(), "取消".Translate(), "确定".Translate(), 2, null, UIMessageBox.Show("Dismantle selected layer".Translate(), "Dismantle selected layer Confirm".Translate(), "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null,
() => { DysonSphereFunctions.InitCurrentDysonLayer(star, id); }); () => { DysonSphereFunctions.InitCurrentDysonLayer(star, id); });
} }
).WithSize(40f, 20f); ).WithSize(40f, 20f);