Skip to content

Commit cf8356d

Browse files
committed
Speaker icon for sound popup button
1 parent 758a2ba commit cf8356d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/main/java/gregtech/api/mui/GTGuiTextures.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ private static String id(String path) {
643643
"textures/gui/progress_bar/progress_bar_fluid_rig_depletion.png", 190, 14);
644644

645645
// MISC
646+
public static final UITexture SPEAKER_ICON = fullImage("textures/gui/widget/speaker.png");
646647

647648
public static void init() {/**/}
648649

src/main/java/gregtech/common/metatileentities/electric/MetaTileEntityAlarm.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager panelSyncManage
9494

9595
// TODO: Change the position of the name when it's standardized.
9696
// noinspection Convert2MethodRef
97-
return GTGuis.createPanel(this, 200, 55)
97+
return GTGuis.createPanel(this, 200, 56)
9898
.child(Flow.column()
9999
.marginLeft(5)
100100
.marginRight(5)
@@ -127,7 +127,9 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager panelSyncManage
127127
}
128128

129129
return true;
130-
})// TODO: 🎵 icon overlay on the button or smth
130+
})
131+
.overlay(GTGuiTextures.SPEAKER_ICON.asIcon()
132+
.size(18))
131133
.addTooltipLine(IKey.lang("gregtech.gui.alarm.sounds_popup_button")))
132134
.child(IKey.dynamic(() -> getSoundName(selectedSound))
133135
.asWidget()
297 Bytes
Loading

0 commit comments

Comments
 (0)