Skip to content

Commit 9cfd168

Browse files
committed
data hatch logo blinks yellow when no recipes
1 parent bb588b2 commit 9cfd168

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/gregtech/common/metatileentities/multi/multiblockpart/MetaTileEntityDataAccessHatch.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import codechicken.lib.render.pipeline.IVertexOperation;
4242
import codechicken.lib.vec.Matrix4;
4343
import com.cleanroommc.modularui.api.drawable.IKey;
44+
import com.cleanroommc.modularui.drawable.DynamicDrawable;
4445
import com.cleanroommc.modularui.drawable.ItemDrawable;
4546
import com.cleanroommc.modularui.screen.ModularPanel;
4647
import com.cleanroommc.modularui.screen.UISettings;
@@ -131,9 +132,11 @@ public boolean shouldOpenUI() {
131132
int rowSize = (int) Math.sqrt(getInventorySize());
132133
panelSyncManager.registerSlotGroup("slots", rowSize);
133134

134-
Widget<?> recipeLogo = GTGuiTextures.getLogo(getUITheme())
135-
.asWidget()
135+
Widget<?> recipeLogo = new Widget<>()
136136
.align(Alignment.BottomRight)
137+
.size(17)
138+
.overlay(new DynamicDrawable(() -> recipes.isEmpty() ? GTGuiTextures.GREGTECH_LOGO_BLINKING_YELLOW :
139+
GTGuiTextures.GREGTECH_LOGO))
137140
.tooltipBuilder(tooltip -> {
138141
if (recipes.isEmpty()) {
139142
tooltip.addLine(IKey.lang("gregtech.machine.data_access_hatch.no_recipes"));

0 commit comments

Comments
 (0)