x2 button on the right place
This commit is contained in:
@@ -26,5 +26,5 @@ package appeng.api.config;
|
|||||||
|
|
||||||
public enum ActionItems
|
public enum ActionItems
|
||||||
{
|
{
|
||||||
WRENCH, CLOSE, STASH, ENCODE, SUBSTITUTION
|
WRENCH, CLOSE, STASH, ENCODE, SUBSTITUTION, MULTIPLY_BY_TWO, MULTIPLY_BY_THREE, INCREASE_BY_ONE, DIVIDE_BY_TWO, DIVIDE_BY_THREE, DECREASE_BY_ONE, MAX_COUNT
|
||||||
}
|
}
|
||||||
@@ -60,6 +60,13 @@ public class GuiPatternTerm extends GuiMEMonitorable
|
|||||||
private GuiImgButton substitutionsDisabledBtn;
|
private GuiImgButton substitutionsDisabledBtn;
|
||||||
private GuiImgButton encodeBtn;
|
private GuiImgButton encodeBtn;
|
||||||
private GuiImgButton clearBtn;
|
private GuiImgButton clearBtn;
|
||||||
|
private GuiImgButton x2Btn;
|
||||||
|
private GuiImgButton x3Btn;
|
||||||
|
private GuiImgButton plusOneBtn;
|
||||||
|
private GuiImgButton divTwoBtn;
|
||||||
|
private GuiImgButton divThreeBtn;
|
||||||
|
private GuiImgButton minusOneBtn;
|
||||||
|
private GuiImgButton maxCountBtn;
|
||||||
|
|
||||||
public GuiPatternTerm( final InventoryPlayer inventoryPlayer, final ITerminalHost te )
|
public GuiPatternTerm( final InventoryPlayer inventoryPlayer, final ITerminalHost te )
|
||||||
{
|
{
|
||||||
@@ -131,6 +138,34 @@ public class GuiPatternTerm extends GuiMEMonitorable
|
|||||||
this.clearBtn.setHalfSize( true );
|
this.clearBtn.setHalfSize( true );
|
||||||
this.buttonList.add( this.clearBtn );
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
|
this.x2Btn = new GuiImgButton( this.guiLeft + 106, this.guiTop + this.ySize - 152, Settings.ACTIONS, ActionItems.MULTIPLY_BY_TWO );
|
||||||
|
this.x2Btn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.x2Btn );
|
||||||
|
|
||||||
|
this.clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE );
|
||||||
|
this.clearBtn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
|
this.clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE );
|
||||||
|
this.clearBtn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
|
this.clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE );
|
||||||
|
this.clearBtn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
|
this.clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE );
|
||||||
|
this.clearBtn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
|
this.clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE );
|
||||||
|
this.clearBtn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
|
this.clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE );
|
||||||
|
this.clearBtn.setHalfSize( true );
|
||||||
|
this.buttonList.add( this.clearBtn );
|
||||||
|
|
||||||
this.encodeBtn = new GuiImgButton( this.guiLeft + 147, this.guiTop + this.ySize - 142, Settings.ACTIONS, ActionItems.ENCODE );
|
this.encodeBtn = new GuiImgButton( this.guiLeft + 147, this.guiTop + this.ySize - 142, Settings.ACTIONS, ActionItems.ENCODE );
|
||||||
this.buttonList.add( this.encodeBtn );
|
this.buttonList.add( this.encodeBtn );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,6 +134,14 @@ public class GuiImgButton extends GuiButton implements ITooltip
|
|||||||
this.registerApp( 6, Settings.ACTIONS, ActionItems.CLOSE, ButtonToolTips.Clear, ButtonToolTips.ClearSettings );
|
this.registerApp( 6, Settings.ACTIONS, ActionItems.CLOSE, ButtonToolTips.Clear, ButtonToolTips.ClearSettings );
|
||||||
this.registerApp( 6, Settings.ACTIONS, ActionItems.STASH, ButtonToolTips.Stash, ButtonToolTips.StashDesc );
|
this.registerApp( 6, Settings.ACTIONS, ActionItems.STASH, ButtonToolTips.Stash, ButtonToolTips.StashDesc );
|
||||||
|
|
||||||
|
this.registerApp( 6 + 4 * 16, Settings.ACTIONS, ActionItems.MULTIPLY_BY_TWO, ButtonToolTips.MultiplyByTwo, ButtonToolTips.MultiplyByTwoDesc );
|
||||||
|
this.registerApp( 7 + 4 * 16, Settings.ACTIONS, ActionItems.MULTIPLY_BY_THREE, ButtonToolTips.MultiplyByThree, ButtonToolTips.MultiplyByThreeDesc );
|
||||||
|
this.registerApp( 8 + 4 * 16, Settings.ACTIONS, ActionItems.INCREASE_BY_ONE, ButtonToolTips.IncreaseByOne, ButtonToolTips.IncreaseByOneDesc );
|
||||||
|
this.registerApp( 9 + 4 * 16, Settings.ACTIONS, ActionItems.DIVIDE_BY_TWO, ButtonToolTips.DivideByTwo, ButtonToolTips.DivideByTwoDesc );
|
||||||
|
this.registerApp( 10 + 4 * 16, Settings.ACTIONS, ActionItems.DIVIDE_BY_THREE, ButtonToolTips.DivideByThree, ButtonToolTips.DivideByThreeDesc );
|
||||||
|
this.registerApp( 11 + 4 * 16, Settings.ACTIONS, ActionItems.DECREASE_BY_ONE, ButtonToolTips.DecreaseByOne, ButtonToolTips.DecreaseByOneDesc );
|
||||||
|
this.registerApp( 12 + 4 * 16, Settings.ACTIONS, ActionItems.MAX_COUNT, ButtonToolTips.MaxCount, ButtonToolTips.MaxCountDesc );
|
||||||
|
|
||||||
this.registerApp( 8, Settings.ACTIONS, ActionItems.ENCODE, ButtonToolTips.Encode, ButtonToolTips.EncodeDescription );
|
this.registerApp( 8, Settings.ACTIONS, ActionItems.ENCODE, ButtonToolTips.Encode, ButtonToolTips.EncodeDescription );
|
||||||
this.registerApp( 4 + 3 * 16, Settings.ACTIONS, ItemSubstitution.ENABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescEnabled );
|
this.registerApp( 4 + 3 * 16, Settings.ACTIONS, ItemSubstitution.ENABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescEnabled );
|
||||||
this.registerApp( 7 + 3 * 16, Settings.ACTIONS, ItemSubstitution.DISABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescDisabled );
|
this.registerApp( 7 + 3 * 16, Settings.ACTIONS, ItemSubstitution.DISABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescDisabled );
|
||||||
|
|||||||
@@ -137,6 +137,21 @@ public enum ButtonToolTips
|
|||||||
BlockPlacementYes,
|
BlockPlacementYes,
|
||||||
BlockPlacementNo,
|
BlockPlacementNo,
|
||||||
|
|
||||||
|
MultiplyByTwo,
|
||||||
|
MultiplyByTwoDesc,
|
||||||
|
MultiplyByThree,
|
||||||
|
MultiplyByThreeDesc,
|
||||||
|
IncreaseByOne,
|
||||||
|
IncreaseByOneDesc,
|
||||||
|
DivideByTwo,
|
||||||
|
DivideByTwoDesc,
|
||||||
|
DivideByThree,
|
||||||
|
DivideByThreeDesc,
|
||||||
|
DecreaseByOne,
|
||||||
|
DecreaseByOneDesc,
|
||||||
|
MaxCount,
|
||||||
|
MaxCountDesc,
|
||||||
|
|
||||||
// Used in the tooltips of the items in the terminal, when moused over
|
// Used in the tooltips of the items in the terminal, when moused over
|
||||||
ItemsStored,
|
ItemsStored,
|
||||||
ItemsRequestable,
|
ItemsRequestable,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user