change pattern gui a bit

This commit is contained in:
Raoul Van den Berge
2016-02-03 19:57:36 +01:00
parent c2f31485f0
commit fddd3d15b3
3 changed files with 6 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ public class ContainerGrid extends ContainerBase
} }
else if (grid.getType() == EnumGridType.PATTERN) else if (grid.getType() == EnumGridType.PATTERN)
{ {
int x = 8; int x = 25;
int y = 106; int y = 106;
for (int i = 0; i < 9; ++i) for (int i = 0; i < 9; ++i)
@@ -53,14 +53,14 @@ public class ContainerGrid extends ContainerBase
if ((i + 1) % 3 == 0) if ((i + 1) % 3 == 0)
{ {
y += 18; y += 18;
x = 8; x = 25;
} }
} }
addSlotToContainer(new SlotDisabled(grid.getPatternCraftingResultInventory(), 0, 116 + 4, 120 + 4)); addSlotToContainer(new SlotDisabled(grid.getPatternCraftingResultInventory(), 0, 133 + 4, 120 + 4));
addSlotToContainer(new SlotFiltered(grid.getPatternInventory(), 0, 152, 105, StorageCraftItems.PATTERN)); addSlotToContainer(new SlotFiltered(grid.getPatternInventory(), 0, 137, 98, StorageCraftItems.PATTERN));
addSlotToContainer(new SlotOutput(grid.getPatternInventory(), 1, 152, 142)); addSlotToContainer(new SlotOutput(grid.getPatternInventory(), 1, 137, 150));
} }
} }
} }

View File

@@ -114,14 +114,10 @@ public class GuiGrid extends GuiBase
public boolean isHoveringOverClear(int mouseX, int mouseY) public boolean isHoveringOverClear(int mouseX, int mouseY)
{ {
if (grid.getType() == EnumGridType.CRAFTING) if (grid.getType() == EnumGridType.CRAFTING || grid.getType() == EnumGridType.PATTERN)
{ {
return inBounds(81, 105, 7, 7, mouseX, mouseY); return inBounds(81, 105, 7, 7, mouseX, mouseY);
} }
else if (grid.getType() == EnumGridType.PATTERN)
{
return inBounds(64, 105, 7, 7, mouseX, mouseY);
}
return false; return false;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB