From 60cc6a18392c25c241f7835fb104f16c1d475a1b Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 12 Sep 2026 11:00:48 -0400 Subject: [PATCH] Fixed #12647 --- core/src/mindustry/ui/dialogs/CustomRulesDialog.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java b/core/src/mindustry/ui/dialogs/CustomRulesDialog.java index c0a72acaf6..f62b656764 100644 --- a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java +++ b/core/src/mindustry/ui/dialogs/CustomRulesDialog.java @@ -177,7 +177,7 @@ public class CustomRulesDialog extends BaseDialog{ number("@rules.blockdamagemultiplier", f -> rules.blockDamageMultiplier = f, () -> rules.blockDamageMultiplier); if(Core.bundle.get("configure").toLowerCase().contains(ruleSearch)){ - current.button("@configure", + current.button("@configure", Icon.boxSmall, () -> loadoutDialog.show(999999, rules.loadout, i -> true, () -> rules.loadout.clear().add(new ItemStack(Items.copper, 100)), @@ -186,7 +186,7 @@ public class CustomRulesDialog extends BaseDialog{ } if(Core.bundle.get("bannedblocks").toLowerCase().contains(ruleSearch)){ - current.button("@bannedblocks", () -> bannedBlocks.show(rules.bannedBlocks)).left().width(300f).row(); + current.button("@bannedblocks", Icon.cancelSmall, () -> bannedBlocks.show(rules.bannedBlocks)).left().width(300f).row(); } check("@rules.hidebannedblocks", b -> rules.hideBannedBlocks = b, () -> rules.hideBannedBlocks); check("@bannedblocks.whitelist", b -> rules.blockWhitelist = b, () -> rules.blockWhitelist); @@ -207,7 +207,7 @@ public class CustomRulesDialog extends BaseDialog{ check("@rules.logicunitdeconstruct", b -> rules.logicUnitDeconstruct = b, () -> rules.logicUnitDeconstruct, () -> rules.logicUnitControl); if(Core.bundle.get("bannedunits").toLowerCase().contains(ruleSearch)){ - current.button("@bannedunits", () -> bannedUnits.show(rules.bannedUnits)).left().width(300f).row(); + current.button("@bannedunits", Icon.unitsSmall, () -> bannedUnits.show(rules.bannedUnits)).left().width(300f).row(); } check("@bannedunits.whitelist", b -> rules.unitWhitelist = b, () -> rules.unitWhitelist); @@ -234,7 +234,7 @@ public class CustomRulesDialog extends BaseDialog{ number("@rules.solarmultiplier", f -> rules.solarMultiplier = f, () -> rules.solarMultiplier); if(Core.bundle.get("rules.weather").toLowerCase().contains(ruleSearch)){ - current.button("@rules.weather", this::weatherDialog).width(250f).left().row(); + current.button("@rules.weather", Icon.rainSmall, this::weatherDialog).width(250f).left().row(); } category("light"); @@ -251,10 +251,6 @@ public class CustomRulesDialog extends BaseDialog{ } check("@rules.lighting.unitlight", b -> rules.unitLight = b, () -> rules.unitLight); - if(Core.bundle.get("rules.weather").toLowerCase().contains(ruleSearch)){ - current.button("@rules.weather", this::weatherDialog).width(250f).left().row(); - } - category("music"); Boolp allowMusic = () -> !rules.disableMusic;