Skip to content

Commit 007c4f0

Browse files
committed
make adjust overlay easier to see
simplify set
1 parent a31f28d commit 007c4f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/gregtech/api/cover/CoverWithUI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.cleanroommc.modularui.screen.ModularPanel;
2323
import com.cleanroommc.modularui.screen.ModularScreen;
2424
import com.cleanroommc.modularui.utils.Alignment;
25+
import com.cleanroommc.modularui.utils.Color;
2526
import com.cleanroommc.modularui.utils.MouseData;
2627
import com.cleanroommc.modularui.value.BoolValue;
2728
import com.cleanroommc.modularui.value.sync.EnumSyncValue;
@@ -137,6 +138,7 @@ default IKey createAdjustOverlay(boolean increment) {
137138
scale = 0.5f;
138139
}
139140
return IKey.str(builder.toString())
141+
.color(Color.WHITE.main)
140142
.scale(scale);
141143
}
142144

src/main/java/gregtech/common/covers/CoverPump.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ protected ParentWidget<?> createUI(GuiData data, PanelSyncManager syncManager) {
225225
.left(0).width(18)
226226
.onMousePressed(mouseButton -> {
227227
int val = throughput.getValue() - getIncrementValue(MouseData.create(mouseButton));
228-
throughput.setValue(val, true, true);
228+
throughput.setValue(val);
229229
Interactable.playButtonClickSound();
230230
return true;
231231
})
@@ -240,7 +240,7 @@ protected ParentWidget<?> createUI(GuiData data, PanelSyncManager syncManager) {
240240
.right(0).width(18)
241241
.onMousePressed(mouseButton -> {
242242
int val = throughput.getValue() + getIncrementValue(MouseData.create(mouseButton));
243-
throughput.setValue(val, true, true);
243+
throughput.setValue(val);
244244
Interactable.playButtonClickSound();
245245
return true;
246246
})

0 commit comments

Comments
 (0)