package appeng.client.gui.implementations; import net.minecraft.client.gui.GuiButton; import net.minecraft.entity.player.InventoryPlayer; import appeng.api.config.ActionItems; import appeng.api.config.Settings; import appeng.api.storage.ITerminalHost; import appeng.client.gui.widgets.GuiImgButton; import appeng.container.implementations.ContainerPatternTerm; import appeng.core.localization.GuiText; public class GuiPatternTerm extends GuiMEMonitorable { GuiImgButton clearBtn; GuiImgButton substitutionsBtn; @Override public void initGui() { super.initGui(); buttonList.add( clearBtn = new GuiImgButton( this.guiLeft + 92, this.guiTop + this.ySize - 156, Settings.ACTIONS, ActionItems.CLOSE ) ); buttonList.add( substitutionsBtn = new GuiImgButton( this.guiLeft + 92, this.guiTop + this.ySize - 156, Settings.ACTIONS, ActionItems.CLOSE ) ); clearBtn.halfSize = true; } @Override protected void actionPerformed(GuiButton btn) { super.actionPerformed( btn ); if ( clearBtn == btn ) { } if ( substitutionsBtn == btn ) { } } public GuiPatternTerm(InventoryPlayer inventoryPlayer, ITerminalHost te) { super( inventoryPlayer, te, new ContainerPatternTerm( inventoryPlayer, te ) ); reservedSpace = 73; } protected String getBackground() { return "guis/pattern.png"; } @Override public void drawFG(int offsetX, int offsetY, int mouseX, int mouseY) { super.drawFG( offsetX, offsetY, mouseX, mouseY ); fontRendererObj.drawString( GuiText.PatternTerminal.getLocal(), 8, ySize - 96 + 1 - reservedSpace, 4210752 ); } }