Swapped Crafting / Processing Tab behavior, seems more natural.

This commit is contained in:
AlgorithmX2
2014-07-14 22:33:17 -05:00
parent 71aed561d4
commit 675d068934
+12 -11
View File
@@ -24,7 +24,7 @@ public class GuiPatternTerm extends GuiMEMonitorable
GuiTabButton tabCraftButton; GuiTabButton tabCraftButton;
GuiTabButton tabProcessButton; GuiTabButton tabProcessButton;
//GuiImgButton substitutionsBtn; // GuiImgButton substitutionsBtn;
GuiImgButton encodeBtn; GuiImgButton encodeBtn;
GuiImgButton clearBtn; GuiImgButton clearBtn;
@@ -37,8 +37,9 @@ public class GuiPatternTerm extends GuiMEMonitorable
buttonList.add( tabProcessButton = new GuiTabButton( this.guiLeft + 173, this.guiTop + this.ySize - 179, new ItemStack( Blocks.furnace ), buttonList.add( tabProcessButton = new GuiTabButton( this.guiLeft + 173, this.guiTop + this.ySize - 179, new ItemStack( Blocks.furnace ),
GuiText.ProcessingPattern.getLocal(), itemRender ) ); GuiText.ProcessingPattern.getLocal(), itemRender ) );
//buttonList.add( substitutionsBtn = new GuiImgButton( this.guiLeft + 84, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.SUBSTITUTION ) ); // buttonList.add( substitutionsBtn = new GuiImgButton( this.guiLeft + 84, this.guiTop + this.ySize - 163,
//substitutionsBtn.halfSize = true; // Settings.ACTIONS, ActionItems.SUBSTITUTION ) );
// substitutionsBtn.halfSize = true;
buttonList.add( clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE ) ); buttonList.add( clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE ) );
clearBtn.halfSize = true; clearBtn.halfSize = true;
@@ -56,7 +57,7 @@ public class GuiPatternTerm extends GuiMEMonitorable
if ( tabCraftButton == btn || tabProcessButton == btn ) if ( tabCraftButton == btn || tabProcessButton == btn )
{ {
NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.CraftMode", tabProcessButton == btn ? "0" : "1" ) ); NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.CraftMode", tabProcessButton == btn ? "1" : "0" ) );
} }
if ( encodeBtn == btn ) if ( encodeBtn == btn )
@@ -76,10 +77,10 @@ public class GuiPatternTerm extends GuiMEMonitorable
e.printStackTrace(); e.printStackTrace();
} }
//if ( substitutionsBtn == btn ) // if ( substitutionsBtn == btn )
//{ // {
//} // }
} }
protected void repositionSlot(AppEngSlot s) protected void repositionSlot(AppEngSlot s)
@@ -108,13 +109,13 @@ public class GuiPatternTerm extends GuiMEMonitorable
{ {
if ( !container.craftingMode ) if ( !container.craftingMode )
{ {
tabCraftButton.visible = true; tabCraftButton.visible = false;
tabProcessButton.visible = false; tabProcessButton.visible = true;
} }
else else
{ {
tabCraftButton.visible = false; tabCraftButton.visible = true;
tabProcessButton.visible = true; tabProcessButton.visible = false;
} }
super.drawFG( offsetX, offsetY, mouseX, mouseY ); super.drawFG( offsetX, offsetY, mouseX, mouseY );