MAC Gui upgrade slots and network tool fixes.
This commit is contained in:
@@ -1,32 +1,36 @@
|
|||||||
package appeng.client.gui.implementations;
|
package appeng.client.gui.implementations;
|
||||||
|
|
||||||
import net.minecraft.entity.player.InventoryPlayer;
|
import net.minecraft.entity.player.InventoryPlayer;
|
||||||
import appeng.client.gui.AEBaseGui;
|
import appeng.api.config.RedstoneMode;
|
||||||
|
import appeng.api.config.Settings;
|
||||||
|
import appeng.client.gui.widgets.GuiImgButton;
|
||||||
import appeng.container.implementations.ContainerMAC;
|
import appeng.container.implementations.ContainerMAC;
|
||||||
import appeng.core.localization.GuiText;
|
import appeng.core.localization.GuiText;
|
||||||
import appeng.tile.crafting.TileMolecularAssembler;
|
import appeng.tile.crafting.TileMolecularAssembler;
|
||||||
|
|
||||||
public class GuiMAC extends AEBaseGui
|
public class GuiMAC extends GuiUpgradeable
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void addButtons()
|
||||||
|
{
|
||||||
|
redstoneMode = new GuiImgButton( this.guiLeft - 18, guiTop + 8, Settings.REDSTONE_CONTROLLED, RedstoneMode.IGNORE );
|
||||||
|
buttonList.add( redstoneMode );
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getBackground()
|
||||||
|
{
|
||||||
|
return "guis/mac.png";
|
||||||
|
}
|
||||||
|
|
||||||
public GuiMAC(InventoryPlayer inventoryPlayer, TileMolecularAssembler te) {
|
public GuiMAC(InventoryPlayer inventoryPlayer, TileMolecularAssembler te) {
|
||||||
super( new ContainerMAC( inventoryPlayer, te ) );
|
super( new ContainerMAC( inventoryPlayer, te ) );
|
||||||
this.ySize = 197;
|
this.ySize = 197;
|
||||||
this.xSize = 211;
|
this.xSize = 211;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
protected GuiText getName()
|
||||||
public void drawBG(int offsetX, int offsetY, int mouseX, int mouseY)
|
|
||||||
{
|
{
|
||||||
bindTexture( "guis/mac.png" );
|
return GuiText.MolecularAssembler;
|
||||||
this.drawTexturedModalRect( offsetX, offsetY, 0, 0, xSize, ySize );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void drawFG(int offsetX, int offsetY, int mouseX, int mouseY)
|
|
||||||
{
|
|
||||||
fontRendererObj.drawString( getGuiDisplayName( GuiText.MolecularAssembler.getLocal() ), 8, 6, 4210752 );
|
|
||||||
fontRendererObj.drawString( GuiText.inventory.getLocal(), 8, ySize - 96 + 3, 4210752 );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ public class ContainerMAC extends ContainerUpgradeable
|
|||||||
super( ip, te );
|
super( ip, te );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int availableUpgrades()
|
||||||
|
{
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getHeight()
|
protected int getHeight()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user