mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Start removing need for keeping track of guiWidth and guiHeight, as they are equal to guiLeft and guiTop
This commit is contained in:
47 files changed
+218
-263
No files matched your search
@@ -131,11 +131,11 @@ public class GuiRobitRepair extends GuiRobit implements IContainerListener {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(int guiWidth, int guiHeight, int xAxis, int yAxis) {
|
||||
super.drawGuiContainerBackgroundLayer(guiWidth, guiHeight, xAxis, yAxis);
|
||||
drawTexturedModalRect(guiWidth + 59, guiHeight + 20, 0, ySize + (repairContainer.getSlot(0).getHasStack() ? 0 : 16), 110, 16);
|
||||
protected void drawGuiContainerBackgroundLayer(int xAxis, int yAxis) {
|
||||
super.drawGuiContainerBackgroundLayer(xAxis, yAxis);
|
||||
drawTexturedModalRect(guiLeft + 59, guiTop + 20, 0, ySize + (repairContainer.getSlot(0).getHasStack() ? 0 : 16), 110, 16);
|
||||
if ((repairContainer.getSlot(0).getHasStack() || repairContainer.getSlot(1).getHasStack()) && !repairContainer.getSlot(2).getHasStack()) {
|
||||
drawTexturedModalRect(guiWidth + 99, guiHeight + 45, xSize + 18, 36, 28, 21);
|
||||
drawTexturedModalRect(guiLeft + 99, guiTop + 45, xSize + 18, 36, 28, 21);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user