aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTec <daniel112092@gmail.com>2019-07-13 20:27:17 +0200
committerTec <daniel112092@gmail.com>2019-07-13 20:27:17 +0200
commit99708323b391b108d035ba483da82f4aa2211b1c (patch)
tree3bba7bacd517ee551d5670e6985b147578527dc9 /src
parent3463fd0c96c4cc99ae117cd1ef067c5be950a76c (diff)
downloadGT5-Unofficial-99708323b391b108d035ba483da82f4aa2211b1c.tar.gz
GT5-Unofficial-99708323b391b108d035ba483da82f4aa2211b1c.tar.bz2
GT5-Unofficial-99708323b391b108d035ba483da82f4aa2211b1c.zip
Add WTF led status properly
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java47
1 files changed, 35 insertions, 12 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java
index dea5030fde..5f5ddf6e4a 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java
@@ -1,12 +1,11 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.base;
-import gregtech.api.GregTech_API;
+import com.github.technus.tectech.TecTech;
import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.entity.player.InventoryPlayer;
-import net.minecraft.item.ItemDye;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
@@ -205,6 +204,30 @@ public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Mach
private void LEDdrawP(int x, int y, int i, int j, LedStatus status) {
int v = 192, su = 8, sv = 6, u = 11;
switch (status) {
+ case STATUS_WTF: {
+ int c=counter;
+ if(c>4){
+ c= TecTech.RANDOM.nextInt(5);
+ }
+ switch (c) {
+ case 0:
+ drawTexturedModalRect(x + su * i, y + sv * j, u + su * i, v + sv * j, su, sv);//BLUE
+ break;
+ case 1:
+ drawTexturedModalRect(x + su * i, y + sv * j, u + su * i, v + sv * (2 + j), su, sv);//cyan
+ break;
+ case 2:
+ drawTexturedModalRect(x + su * i, y + sv * j, u + su * i, v + sv * (4 + j), su, sv);//green
+ break;
+ case 3:
+ drawTexturedModalRect(x + su * i, y + sv * j, u + su * i, v + sv * (6 + j), su, sv);//orangeyello
+ break;
+ case 4:
+ drawTexturedModalRect(x + su * i, y + sv * j, u + su * i, v + sv * (8 + j), su, sv);//redd
+ break;
+ }
+ break;
+ }
case STATUS_WRONG: //fallthrough
if (counter < 2) {
drawTexturedModalRect(x + su * i, y + sv * j, u + su * i, v + sv * j, su, sv);//blue
@@ -254,16 +277,16 @@ public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Mach
break;
case STATUS_UNUSED:
default:
- if (GregTech_API.sColoredGUI && this.mContainer.mTileEntity != null) {
- int tColor = this.mContainer.mTileEntity.getColorization() & 15;
- if (tColor < ItemDye.field_150922_c.length) {
- tColor = ItemDye.field_150922_c[tColor];
- GL11.glColor4f((float)(tColor >> 16 & 255) / 255.0F, (float)(tColor >> 8 & 255) / 255.0F, (float)(tColor & 255) / 255.0F, 1F);
- }
- }
- drawTexturedModalRect(x + su * i, y + sv * j, 212, 96, su+2, sv+2);
- GL11.glColor4f(1f, 1f, 1f, 1f);
- break;
+ //if (GregTech_API.sColoredGUI && this.mContainer.mTileEntity != null) {
+ // int tColor = this.mContainer.mTileEntity.getColorization() & 15;
+ // if (tColor < ItemDye.field_150922_c.length) {
+ // tColor = ItemDye.field_150922_c[tColor];
+ // GL11.glColor4f((float)(tColor >> 16 & 255) / 255.0F, (float)(tColor >> 8 & 255) / 255.0F, (float)(tColor & 255) / 255.0F, 1F);
+ // }
+ //}
+ //drawTexturedModalRect(x + su * i, y + sv * j, 212, 96, su+2, sv+2);
+ //GL11.glColor4f(1f, 1f, 1f, 1f);
+ //break;
}
}