Apply new sidebutton icons
This commit is contained in:
@@ -12,7 +12,7 @@ public class SideButtonConstuctorDrop extends SideButton {
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
gui.drawTexture(x, y, 80 + (TileConstructor.DROP.getValue() ? 16 : 0), 16, 16, 16);
|
||||
gui.drawTexture(x, y, 64 + (TileConstructor.DROP.getValue() ? 16 : 0), 16, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,7 +12,7 @@ public class SideButtonDestructorPickup extends SideButton {
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
gui.drawTexture(x, y, 80 + (!TileDestructor.PICKUP.getValue() ? 16 : 0), 0, 16, 16);
|
||||
gui.drawTexture(x, y, 64 + (!TileDestructor.PICKUP.getValue() ? 16 : 0), 0, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,7 +12,7 @@ public class SideButtonExporterCraftOnly extends SideButton {
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
|
||||
gui.drawTexture(x, y, 64 + (TileExporter.CRAFT_ONLY.getValue() ? 16 : 0), 32, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,7 +12,7 @@ public class SideButtonExporterRegulator extends SideButton {
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
|
||||
gui.drawTexture(x, y, 64 + (TileExporter.REGULATOR.getValue() ? 16 : 0), 48, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -21,7 +21,21 @@ public class SideButtonGridSize extends SideButton {
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
int size = grid.getSize();
|
||||
|
||||
int tx = 0;
|
||||
|
||||
if (size == NetworkNodeGrid.SIZE_STRETCH) {
|
||||
tx = 48;
|
||||
} else if (size == NetworkNodeGrid.SIZE_SMALL) {
|
||||
tx = 0;
|
||||
} else if (size == NetworkNodeGrid.SIZE_MEDIUM) {
|
||||
tx = 16;
|
||||
} else if (size == NetworkNodeGrid.SIZE_LARGE) {
|
||||
tx = 32;
|
||||
}
|
||||
|
||||
gui.drawTexture(x, y, 64 + tx, 64, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 4.0 KiB |
Reference in New Issue
Block a user