reduce textures for interface gui (#1086)

This commit is contained in:
lc-1337 authored and GitHub committed 2026-02-21 15:27:36 +01:00
1 parent 3f01a7e0e1
commit 7592625d6f
7 files changed
+26 -7

No files matched your search

@@ -193,15 +193,34 @@ public class GuiInterface extends GuiUpgradeable {
GuiColors.InterfaceTitle.getColor());
}
@Override
public void drawBG(int offsetX, int offsetY, int mouseX, int mouseY) {
super.drawBG(offsetX, offsetY, mouseX, mouseY);
final int capacity = (((ContainerInterface) this.cvb).getPatternCapacityCardsInstalled());
// config slots
if (capacity == -1) {
this.drawTexturedModalRect(offsetX + 7, offsetY + 14, 7, 89, 162, 18);
} else {
this.drawTexturedModalRect(offsetX + 7, offsetY + 14, 7, 71, 162, 18);
}
// pattern slots
for (int i = 4; i > 0; i--) {
if (i > capacity + 1) {
// fadeout slots
this.drawTexturedModalRect(offsetX + 7, offsetY + 125 - (18 * i), 7, 89, 162, 18);
} else {
// normal slots
this.drawTexturedModalRect(offsetX + 7, offsetY + 125 - (18 * i), 7, 107, 162, 18);
}
}
}
@Override
protected String getBackground() {
return switch (((ContainerInterface) this.cvb).getPatternCapacityCardsInstalled()) {
case -1 -> "guis/interfacenonenoconfig.png";
case 1 -> "guis/interface2.png";
case 2 -> "guis/interface3.png";
case 3 -> "guis/interface4.png";
default -> "guis/interface.png";
};
return "guis/interface.png";
}
@Override
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB