diff --git a/buildcraft_resources/assets/buildcraftrobotics/textures/gui/zone_planner_gui.png b/buildcraft_resources/assets/buildcraftrobotics/textures/gui/zone_planner_gui.png index 1f365e2c..4146b79b 100755 Binary files a/buildcraft_resources/assets/buildcraftrobotics/textures/gui/zone_planner_gui.png and b/buildcraft_resources/assets/buildcraftrobotics/textures/gui/zone_planner_gui.png differ diff --git a/common/buildcraft/robotics/gui/ContainerZonePlan.java b/common/buildcraft/robotics/gui/ContainerZonePlan.java index ddabc09c..4e0c27ac 100755 --- a/common/buildcraft/robotics/gui/ContainerZonePlan.java +++ b/common/buildcraft/robotics/gui/ContainerZonePlan.java @@ -39,8 +39,8 @@ public class ContainerZonePlan extends BuildCraftContainer implements ICommandRe map = iZonePlan; - addSlotToContainer(new Slot(iZonePlan, 0, 233, 20)); - addSlotToContainer(new SlotOutput(iZonePlan, 1, 233, 68)); + addSlotToContainer(new Slot(iZonePlan, 0, 233, 9)); + addSlotToContainer(new SlotOutput(iZonePlan, 1, 233, 57)); // Player inventory for (int l = 0; l < 3; l++) { diff --git a/common/buildcraft/robotics/gui/GuiZonePlan.java b/common/buildcraft/robotics/gui/GuiZonePlan.java index 633a57af..7885bb1a 100755 --- a/common/buildcraft/robotics/gui/GuiZonePlan.java +++ b/common/buildcraft/robotics/gui/GuiZonePlan.java @@ -39,7 +39,7 @@ public class GuiZonePlan extends GuiAdvancedInterface { private static final ResourceLocation TMP_TEXTURE = new ResourceLocation("buildcraftrobotics:textures/gui/zone_planner_gui.png"); - private int mapWidth = 200; + private int mapWidth = 213; private int mapHeight = 100; private TileZonePlan zonePlan; @@ -146,7 +146,7 @@ public class GuiZonePlan extends GuiAdvancedInterface { savedButtonList = buttonList; - textField = new GuiTextField(this.fontRendererObj, 74, 125, 156, 12); + textField = new GuiTextField(this.fontRendererObj, 28, 129, 156, 12); textField.setMaxStringLength(DefaultProps.MAX_NAME_SIZE); textField.setText(zonePlan.mapName); textField.setFocused(true); @@ -168,10 +168,14 @@ public class GuiZonePlan extends GuiAdvancedInterface { protected void drawGuiContainerBackgroundLayer(float f, int x, int y) { super.drawGuiContainerBackgroundLayer(f, x, y); - mapXMin = (width - getContainer().mapTexture.width) / 2; + if (getContainer().mapTexture.width <= 213) { + mapXMin = guiLeft + 8 + ((213 - getContainer().mapTexture.width) / 2); + } else { + mapXMin = (width - getContainer().mapTexture.width) / 2; + } - if (getContainer().mapTexture.height <= 200) { - mapYMin = guiTop + 20; + if (getContainer().mapTexture.height <= 100) { + mapYMin = guiTop + 9 + ((100 - getContainer().mapTexture.height) / 2); } else { mapYMin = (height - getContainer().mapTexture.height) / 2; } @@ -202,7 +206,7 @@ public class GuiZonePlan extends GuiAdvancedInterface { GL11.glDisable(GL11.GL_BLEND); } - if (getContainer().mapTexture.height <= 200) { + if (getContainer().mapTexture.height <= 100) { drawBackgroundSlots(); bindTexture(texture); @@ -338,7 +342,7 @@ public class GuiZonePlan extends GuiAdvancedInterface { uploadMap(); refreshSelectedArea(); } else if (carac == 'm') { - mapWidth = 200; + mapWidth = 213; mapHeight = 100; getContainer().mapTexture = new DynamicTexturePaletted(mapWidth, mapHeight);