From aa42aedecd2d2842351088085e8fd9d69ec79565 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Fri, 14 Apr 2017 07:58:16 +0300 Subject: Colourful lights --- .../LabElectrolyzerRecipeHandler.java | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'ihl/nei_integration/LabElectrolyzerRecipeHandler.java') diff --git a/ihl/nei_integration/LabElectrolyzerRecipeHandler.java b/ihl/nei_integration/LabElectrolyzerRecipeHandler.java index ad40647..5e28067 100644 --- a/ihl/nei_integration/LabElectrolyzerRecipeHandler.java +++ b/ihl/nei_integration/LabElectrolyzerRecipeHandler.java @@ -3,6 +3,9 @@ package ihl.nei_integration; import java.awt.Rectangle; import java.util.Map; +import org.lwjgl.opengl.GL11; + +import codechicken.lib.gui.GuiDraw; import ihl.processing.chemistry.LabElectrolyzerGui; import ihl.processing.chemistry.LabElectrolyzerTileEntity; import ihl.recipes.UniversalRecipeInput; @@ -17,22 +20,22 @@ public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler { @Override protected int[] getInputPosX() { - return new int[] { 42 - 5, 60 - 5, 78 - 5 }; + return new int[] { 63 - 5, 46 - 5, 29 - 5 }; } @Override protected int[] getInputPosY() { - return new int[] { 15 - 11 }; + return new int[] { 11 - 10 }; } @Override protected int[] getOutputPosX() { - return new int[] { 8 - 5, 87 - 5, 106 - 5 }; + return new int[] { 29 - 5, 63 - 5, 109 - 5 }; } @Override protected int[] getOutputPosY() { - return new int[] { 15 - 11, 51 - 11, 15 - 11 }; + return new int[] { 47 - 10 }; } @Override @@ -53,15 +56,24 @@ public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler { @Override public void loadTransferRects() { this.transferRects - .add(new RecipeTransferRect(new Rectangle(7 - 5, 32 - 10, 18, 18), this.getRecipeId(), new Object[0])); + .add(new RecipeTransferRect(new Rectangle(28 - 5, 28 - 10, 18, 18), this.getRecipeId(), new Object[0])); this.transferRects - .add(new RecipeTransferRect(new Rectangle(86 - 5, 32 - 10, 37, 18), this.getRecipeId(), new Object[0])); + .add(new RecipeTransferRect(new Rectangle(108 - 5, 32 - 10, 18, 18), this.getRecipeId(), new Object[0])); } @Override public String getOverlayIdentifier() { return "labElectrolyzer"; } + + @Override + public void drawBackground(int recipeNumber) + { + GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); + GuiDraw.changeTexture(this.getGuiTexture()); + GuiDraw.drawTexturedModalRect(0, 0, 5, 10, 140, 54); + GuiDraw.drawTexturedModalRect(46-5, 10-10, 62, 10, 18, 18); + } @Override public Map getRecipeList() { -- cgit v1.2.3