Start redoing Matter Fabricator gui
(cherry picked from commit 5c6bc6c)
This commit is contained in:
parent
82927ae405
commit
f9d4134365
4 changed files with 11 additions and 6 deletions
|
@ -338,23 +338,23 @@ public class TRBuilder extends GuiBuilder {
|
|||
|
||||
public void drawScrapSlot(GuiScreen gui, int posX, int posY) {
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(GUI_SHEET);
|
||||
gui.drawTexturedModalRect(posX, posY, 150, 70, 18, 18);
|
||||
gui.drawTexturedModalRect(posX, posY, 150, 0, 18, 18);
|
||||
}
|
||||
|
||||
public void drawOutputSlotBar(GuiScreen gui, int posX, int posY, int count) {
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(GUI_SHEET);
|
||||
for (int i = 1; i <= count; i++) {
|
||||
if (i == 1) {
|
||||
gui.drawTexturedModalRect(posX, posY, 114, 218, 22, 26);
|
||||
gui.drawTexturedModalRect(posX, posY, 114 + 39, 218, 22, 26);
|
||||
posX += 22;
|
||||
if (1 == count) {
|
||||
gui.drawTexturedModalRect(posX, posY, 136, 218, 4, 26);
|
||||
gui.drawTexturedModalRect(posX, posY, 136 + 39, 218, 4, 26);
|
||||
}
|
||||
} else if (i != 1 && i != count) {
|
||||
gui.drawTexturedModalRect(posX, posY, 116, 218, 20, 26);
|
||||
gui.drawTexturedModalRect(posX, posY, 116 + 39, 218, 20, 26);
|
||||
posX += 20;
|
||||
} else if (i == count) {
|
||||
gui.drawTexturedModalRect(posX, posY, 116, 218, 24, 26);
|
||||
gui.drawTexturedModalRect(posX, posY, 116 + 39, 218, 24, 26);
|
||||
posX += 24;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue