diff --git a/UXAssist/Functions/TechFunctions.cs b/UXAssist/Functions/TechFunctions.cs index fcd4086..7e7ff84 100644 --- a/UXAssist/Functions/TechFunctions.cs +++ b/UXAssist/Functions/TechFunctions.cs @@ -207,13 +207,13 @@ public static class TechFunctions } if (!enough) { - UIMessageBox.Show("元数据".Translate(), "元数据不足".Translate(), "确定".Translate(), 3); + UIMessageBox.Show("元数据".Translate(), "元数据不足".Translate(), "确定".Translate(), UIMessageBox.ERROR); return; } if (!history.hasUsedPropertyBanAchievement) { - UIMessageBox.Show("初次使用元数据标题".Translate(), "初次使用元数据描述".Translate(), "取消".Translate(), "确定".Translate(), 2, null, DoUnlockCalculatedTechs); + UIMessageBox.Show("初次使用元数据标题".Translate(), "初次使用元数据描述".Translate(), "取消".Translate(), "确定".Translate(), UIMessageBox.QUESTION, null, DoUnlockCalculatedTechs); return; } @@ -256,7 +256,7 @@ public static class TechFunctions if (consumption.Value <= 0) continue; 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; void AddToMsg(ref string str, Tuple tuple) diff --git a/UXAssist/UIConfigWindow.cs b/UXAssist/UIConfigWindow.cs index eff447c..dd8d74e 100644 --- a/UXAssist/UIConfigWindow.cs +++ b/UXAssist/UIConfigWindow.cs @@ -436,12 +436,12 @@ public static class UIConfigWindow x = 400f; y = 10f; 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); }) ); y += 36f; 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); }) ); y += 72f; @@ -720,7 +720,7 @@ public static class UIConfigWindow x = 400f; y = 10f; _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); }) ); y += 36f; @@ -732,7 +732,7 @@ public static class UIConfigWindow var btn = wnd.AddFlatButton(x, y, tab5, id.ToString(), 12, "dismantle-layer-" + id, () => { 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); }); } ).WithSize(40f, 20f);