mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 21:19:49 +00:00
Fix remaining text box issues, add text box filters
This commit is contained in:
1 parent
f832ae7920
commit
ae0abaf819
8 files changed
+132
-37
No files matched your search
@@ -2,12 +2,12 @@ package crazypants.enderio.machine.buffer;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import net.minecraft.client.gui.GuiTextField;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import crazypants.enderio.gui.TextFieldEIO;
|
||||
import crazypants.enderio.machine.IoMode;
|
||||
import crazypants.enderio.machine.gui.GuiPoweredMachineBase;
|
||||
import crazypants.enderio.machine.power.PowerDisplayUtil;
|
||||
@@ -20,8 +20,8 @@ public class GuiBuffer extends GuiPoweredMachineBase<TileBuffer> {
|
||||
private static final String TEXTURE_SIMPLE = "enderio:textures/gui/buffer.png";
|
||||
private static final String TEXTURE_FULL = "enderio:textures/gui/buffer_full.png";
|
||||
|
||||
private GuiTextField maxInput;
|
||||
private GuiTextField maxOutput;
|
||||
private TextFieldEIO maxInput;
|
||||
private TextFieldEIO maxOutput;
|
||||
|
||||
private int lastInput, lastOutput;
|
||||
|
||||
@@ -36,9 +36,12 @@ public class GuiBuffer extends GuiPoweredMachineBase<TileBuffer> {
|
||||
int x = (isFull() ? 20 : 58);
|
||||
int y = guiTop + 27;
|
||||
|
||||
maxInput = new GuiTextField(getFontRenderer(), x, y, 60, 12);
|
||||
maxInput = new TextFieldEIO(getFontRenderer(), x, y, 60, 12);
|
||||
y += 28;
|
||||
maxOutput = new GuiTextField(getFontRenderer(), x, y, 60, 12);
|
||||
maxOutput = new TextFieldEIO(getFontRenderer(), x, y, 60, 12);
|
||||
|
||||
textFields.add(maxInput);
|
||||
textFields.add(maxOutput);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +131,6 @@ public class GuiBuffer extends GuiPoweredMachineBase<TileBuffer> {
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
|
||||
super.drawGuiContainerBackgroundLayer(par1, par2, par3);
|
||||
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
|
||||
Reference in new issue
Block a user