Apply icons and logo
This commit is contained in:
@@ -22,7 +22,7 @@ public class GuiDestructor extends GuiBase {
|
||||
addSideButton(new SideButtonCompare(this, TileDestructor.COMPARE, IComparer.COMPARE_NBT));
|
||||
addSideButton(new SideButtonCompare(this, TileDestructor.COMPARE, IComparer.COMPARE_OREDICT));
|
||||
|
||||
addSideButton(new SideButtonPickup(this));
|
||||
addSideButton(new SideButtonDestructorPickup(this));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -18,6 +18,7 @@ public class SideButtonAccessType extends SideButton {
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
gui.drawTexture(x, y, 16 * parameter.getValue().getId(), 240, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -39,11 +39,16 @@ public class SideButtonCompare extends SideButton {
|
||||
} else if (mask == IComparer.COMPARE_NBT) {
|
||||
ty = 48;
|
||||
} else if (mask == IComparer.COMPARE_OREDICT) {
|
||||
return;
|
||||
ty = 224;
|
||||
}
|
||||
|
||||
int tx = (parameter.getValue() & mask) == mask ? 0 : 16;
|
||||
|
||||
// This is reversed in icons.png :D
|
||||
if (mask == IComparer.COMPARE_OREDICT) {
|
||||
tx = tx == 16 ? 0 : 16;
|
||||
}
|
||||
|
||||
gui.drawTexture(x, y, tx, ty, 16, 16);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -5,14 +5,14 @@ import com.raoulvdberge.refinedstorage.tile.TileDestructor;
|
||||
import com.raoulvdberge.refinedstorage.tile.data.TileDataManager;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
|
||||
public class SideButtonPickup extends SideButton {
|
||||
public SideButtonPickup(GuiBase gui) {
|
||||
public class SideButtonDestructorPickup extends SideButton {
|
||||
public SideButtonDestructorPickup(GuiBase gui) {
|
||||
super(gui);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawButtonIcon(int x, int y) {
|
||||
|
||||
gui.drawTexture(x, y, 80 + (!TileDestructor.PICKUP.getValue() ? 16 : 0), 0, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 20 KiB |
BIN
src/main/resources/assets/refinedstorage/textures/logo.png
Executable file
BIN
src/main/resources/assets/refinedstorage/textures/logo.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 171 KiB |
@@ -9,7 +9,7 @@
|
||||
"updateUrl": "",
|
||||
"authorList": ["Refined Storage contributors"],
|
||||
"credits": "",
|
||||
"logoFile": "",
|
||||
"logoFile": "/assets/refinedstorage/textures/logo.png",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
}
|
||||
|
Reference in New Issue
Block a user