Skip to content

Commit 488a016

Browse files
committed
christmas
1 parent 3c46bcf commit 488a016

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

src/main/java/gregtech/api/GTValues.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,9 @@ public static boolean isClientSide() {
141141
String[] yearMonthDay = LocalDate.now().toString().split("-");
142142
return yearMonthDay[1].equals("04") && yearMonthDay[2].equals("01");
143143
};
144+
145+
public static Supplier<Boolean> XMAS = () -> {
146+
String[] yearMonthDay = LocalDate.now().toString().split("-");
147+
return yearMonthDay[1].equals("12") && (yearMonthDay[2].equals("24") || yearMonthDay[2].equals("25"));
148+
};
144149
}

src/main/java/gregtech/api/gui/GuiTextures.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class GuiTextures {
99

1010
//GREGTECH
1111
public static final TextureArea GREGTECH_LOGO = TextureArea.fullImage("textures/gui/icon/gregtech_logo.png");
12+
public static final TextureArea GREGTECH_LOGO_XMAS = TextureArea.fullImage("textures/gui/icon/gregtech_logo_xmas.png");
1213

1314
//BASE TEXTURES
1415
public static final TextureArea BACKGROUND = AdoptableTextureArea.fullImage("textures/gui/base/background.png", 176, 166, 3, 3);

src/main/java/gregtech/api/metatileentity/SimpleMachineMetaTileEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,10 @@ protected ModularUI.Builder createGuiTemplate(EntityPlayer player) {
450450
.setButtonTexture(GuiTextures.BUTTON_OVERCLOCK));
451451

452452
if (exportItems.getSlots() + exportFluids.getTanks() <= 9) {
453+
ImageWidget logo = new ImageWidget(152, 63 + yOffset, 17, 17, GTValues.XMAS.get() ? GuiTextures.GREGTECH_LOGO_XMAS : GuiTextures.GREGTECH_LOGO).setIgnoreColor(true);
453454
SlotWidget circuitSlot = new SlotWidget(circuitInventory, 0, 124, 62 + yOffset, true, true, false)
454455
.setBackgroundTexture(GuiTextures.SLOT, getCircuitSlotOverlay());
455-
builder.widget(getCircuitSlotTooltip(circuitSlot))
456-
.widget(new ImageWidget(152, 63 + yOffset, 17, 17, GuiTextures.GREGTECH_LOGO).setIgnoreColor(true))
456+
builder.widget(getCircuitSlotTooltip(circuitSlot)).widget(logo)
457457
.widget(new ClickButtonWidget(115, 62 + yOffset, 9, 9, "", this::circuitConfigPlus)
458458
.setShouldClientCallback(true)
459459
.setButtonTexture(GuiTextures.BUTTON_INT_CIRCUIT_PLUS)
1.83 KB
Loading

0 commit comments

Comments
 (0)