Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleMachineMetaTileEntity makes it easy to change the logo #2289

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,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 @@ -500,6 +499,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
Loading