OSDN Git Service

243965cd2a9de27d0e3ca3f4fe47e1cdecec8376
[chemicraft/chemicraft.git] / common / chemicraft / gui / GuiChemicalCombinationTable.java
1 package chemicraft.gui;
2
3 import net.minecraft.src.EntityPlayer;
4 import net.minecraft.src.GuiContainer;
5 import net.minecraft.src.GuiTextField;
6 import chemicraft.ChemiCraft;
7 import chemicraft.container.ContainerChemicalCombinationTable;
8 import chemicraft.tileentity.TileEntityChemicalCombinationTable;
9
10 public class GuiChemicalCombinationTable extends GuiContainer {
11
12         private GuiTextField atomList;
13
14         public GuiChemicalCombinationTable(EntityPlayer par1EntityPlayer, TileEntityChemicalCombinationTable par2) {
15                 super(new ContainerChemicalCombinationTable(par1EntityPlayer, par2));
16         }
17
18         @Override
19         public void initGui(){
20                 super.initGui();
21                 this.atomList = new GuiTextField(this.fontRenderer, 100, 65, 70, 15);
22                 this.atomList.setFocused(false);
23                 this.atomList.setMaxStringLength(10);
24         }
25
26         @Override
27         protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {
28                 this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture(ChemiCraft.instance.guiChemicalCombinationTexture));
29                 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
30         }
31
32         @Override
33         protected void drawGuiContainerForegroundLayer() {
34                 this.atomList.drawTextBox();
35         }
36
37 }