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_NBT));
|
||||||
addSideButton(new SideButtonCompare(this, TileDestructor.COMPARE, IComparer.COMPARE_OREDICT));
|
addSideButton(new SideButtonCompare(this, TileDestructor.COMPARE, IComparer.COMPARE_OREDICT));
|
||||||
|
|
||||||
addSideButton(new SideButtonPickup(this));
|
addSideButton(new SideButtonDestructorPickup(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -18,6 +18,7 @@ public class SideButtonAccessType extends SideButton {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void drawButtonIcon(int x, int y) {
|
protected void drawButtonIcon(int x, int y) {
|
||||||
|
gui.drawTexture(x, y, 16 * parameter.getValue().getId(), 240, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -39,11 +39,16 @@ public class SideButtonCompare extends SideButton {
|
|||||||
} else if (mask == IComparer.COMPARE_NBT) {
|
} else if (mask == IComparer.COMPARE_NBT) {
|
||||||
ty = 48;
|
ty = 48;
|
||||||
} else if (mask == IComparer.COMPARE_OREDICT) {
|
} else if (mask == IComparer.COMPARE_OREDICT) {
|
||||||
return;
|
ty = 224;
|
||||||
}
|
}
|
||||||
|
|
||||||
int tx = (parameter.getValue() & mask) == mask ? 0 : 16;
|
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);
|
gui.drawTexture(x, y, tx, ty, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ public class SideButtonConstuctorDrop extends SideButton {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void drawButtonIcon(int x, int y) {
|
protected void drawButtonIcon(int x, int y) {
|
||||||
|
gui.drawTexture(x, y, 80 + (TileConstructor.DROP.getValue() ? 16 : 0), 16, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -5,14 +5,14 @@ import com.raoulvdberge.refinedstorage.tile.TileDestructor;
|
|||||||
import com.raoulvdberge.refinedstorage.tile.data.TileDataManager;
|
import com.raoulvdberge.refinedstorage.tile.data.TileDataManager;
|
||||||
import net.minecraft.util.text.TextFormatting;
|
import net.minecraft.util.text.TextFormatting;
|
||||||
|
|
||||||
public class SideButtonPickup extends SideButton {
|
public class SideButtonDestructorPickup extends SideButton {
|
||||||
public SideButtonPickup(GuiBase gui) {
|
public SideButtonDestructorPickup(GuiBase gui) {
|
||||||
super(gui);
|
super(gui);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void drawButtonIcon(int x, int y) {
|
protected void drawButtonIcon(int x, int y) {
|
||||||
|
gui.drawTexture(x, y, 80 + (!TileDestructor.PICKUP.getValue() ? 16 : 0), 0, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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": "",
|
"updateUrl": "",
|
||||||
"authorList": ["Refined Storage contributors"],
|
"authorList": ["Refined Storage contributors"],
|
||||||
"credits": "",
|
"credits": "",
|
||||||
"logoFile": "",
|
"logoFile": "/assets/refinedstorage/textures/logo.png",
|
||||||
"screenshots": [],
|
"screenshots": [],
|
||||||
"dependencies": []
|
"dependencies": []
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user