|
72 | 72 | import com.cleanroommc.modularui.factory.HandGuiData; |
73 | 73 | import com.cleanroommc.modularui.factory.ItemGuiFactory; |
74 | 74 | import com.cleanroommc.modularui.screen.ModularPanel; |
| 75 | +import com.cleanroommc.modularui.screen.UISettings; |
75 | 76 | import com.cleanroommc.modularui.utils.Alignment; |
76 | 77 | import com.cleanroommc.modularui.value.sync.IntSyncValue; |
77 | 78 | import com.cleanroommc.modularui.value.sync.PanelSyncManager; |
78 | 79 | import com.cleanroommc.modularui.widgets.ButtonWidget; |
79 | | -import com.cleanroommc.modularui.widgets.TextWidget; |
80 | 80 | import com.cleanroommc.modularui.widgets.layout.Flow; |
81 | 81 | import com.enderio.core.common.interfaces.IOverlayRenderAware; |
82 | 82 | import com.google.common.collect.HashMultimap; |
@@ -947,7 +947,7 @@ default void playSound(EntityPlayer player) { |
947 | 947 | } |
948 | 948 |
|
949 | 949 | @Override |
950 | | - default ModularPanel buildUI(HandGuiData guiData, PanelSyncManager manager) { |
| 950 | + default ModularPanel buildUI(HandGuiData guiData, PanelSyncManager manager, UISettings settings) { |
951 | 951 | final var usedStack = guiData.getUsedItemStack(); |
952 | 952 | final var behaviorsTag = getBehaviorsTag(usedStack); |
953 | 953 | final var defaultDefinition = getMaxAoEDefinition(usedStack); |
@@ -1006,14 +1006,15 @@ default Flow createColumn(IntSyncValue syncValue, String lang, boolean shouldDou |
1006 | 1006 |
|
1007 | 1007 | return Flow.column() |
1008 | 1008 | .coverChildren() |
1009 | | - .child(new TextWidget(IKey.lang("item.gt.tool.aoe." + lang)) |
| 1009 | + .child(IKey.lang("item.gt.tool.aoe." + lang) |
| 1010 | + .asWidget() |
1010 | 1011 | .marginBottom(5)) |
1011 | 1012 | .child(Flow.row() |
1012 | 1013 | .coverChildren() |
1013 | 1014 | .marginBottom(5) |
1014 | 1015 | .child(increaseButton) |
1015 | 1016 | .child(decreaseButton)) |
1016 | | - .child(new TextWidget(display) |
| 1017 | + .child(display.asWidget() |
1017 | 1018 | .alignment(Alignment.Center) |
1018 | 1019 | .widthRel(1f)); |
1019 | 1020 | } |
|
0 commit comments