Skip to content

Commit

Permalink
SimpleMachineMetaTileEntity makes it easy to change the logo (#2289)
Browse files Browse the repository at this point in the history
Co-authored-by: tier940 <[email protected]>
  • Loading branch information
tier940 and tier940 authored Jul 28, 2024
1 parent 20bb302 commit 69489e1
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ protected ModularUI.Builder createGuiTemplate(EntityPlayer player) {

if (exportItems.getSlots() + exportFluids.getTanks() <= 9) {
ImageWidget logo = new ImageWidget(152, 63 + yOffset, 17, 17,
GTValues.XMAS.get() ? GuiTextures.GREGTECH_LOGO_XMAS : GuiTextures.GREGTECH_LOGO)
.setIgnoreColor(true);
GTValues.XMAS.get() ? getXmasLogo() : getLogo()).setIgnoreColor(true);

if (this.circuitInventory != null) {
SlotWidget circuitSlot = new GhostCircuitSlotWidget(circuitInventory, 0, 124, 62 + yOffset)
Expand All @@ -536,6 +535,14 @@ protected ModularUI.Builder createGuiTemplate(EntityPlayer player) {
return builder;
}

protected @NotNull TextureArea getLogo() {
return GuiTextures.GREGTECH_LOGO;
}

protected @NotNull TextureArea getXmasLogo() {
return GuiTextures.GREGTECH_LOGO_XMAS;
}

@Override
public boolean hasGhostCircuitInventory() {
return true;
Expand Down

0 comments on commit 69489e1

Please sign in to comment.