Apply icons and logo

This commit is contained in:
Raoul Van den Berge
2016-11-03 22:17:36 +01:00
parent a803a81933
commit 2f860db667
8 changed files with 13 additions and 7 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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);
}

View File

@@ -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

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

View File

@@ -9,7 +9,7 @@
"updateUrl": "",
"authorList": ["Refined Storage contributors"],
"credits": "",
"logoFile": "",
"logoFile": "/assets/refinedstorage/textures/logo.png",
"screenshots": [],
"dependencies": []
}