mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-26 23:13:06 +00:00
Enhanced pin management (#1138)
Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: lc-1337 <[email protected]> Co-authored-by: lc-1337 <[email protected]>
This commit is contained in:
20 files changed
+475
-195
No files matched your search
@@ -25,7 +25,8 @@ import appeng.api.config.CellType;
|
||||
import appeng.api.config.CondenserOutput;
|
||||
import appeng.api.config.CraftingSortOrder;
|
||||
import appeng.api.config.CraftingStatus;
|
||||
import appeng.api.config.PinsState;
|
||||
import appeng.api.config.PinSectionOrder;
|
||||
import appeng.api.config.PinsRows;
|
||||
import appeng.api.config.PowerMultiplier;
|
||||
import appeng.api.config.PowerUnits;
|
||||
import appeng.api.config.SearchBoxFocusPriority;
|
||||
@@ -96,6 +97,15 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
public int InterfaceTerminalSmallSize = 6;
|
||||
public boolean highlightWhenSomethingStuckInInterface = true;
|
||||
|
||||
/** Max rows for crafting pins section (1-16). Caps the cycle button options. */
|
||||
public int maxCraftingPinRows = 16;
|
||||
/** Max rows for player pins section (1-16). Caps the cycle button options. */
|
||||
public int maxPlayerPinRows = 16;
|
||||
/** True = crafting section first, false = player section first. */
|
||||
public boolean pinCraftingSectionFirst = false;
|
||||
/** Which pin section is shown first (derived from pinCraftingSectionFirst). */
|
||||
public PinSectionOrder pinSectionOrder = PinSectionOrder.PLAYER_FIRST;
|
||||
|
||||
public boolean debugLogTiming = false;
|
||||
public boolean debugPathFinding = false;
|
||||
public boolean captureGAEStacks = false;
|
||||
@@ -175,7 +185,8 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
this.settings.registerSetting(Settings.SORT_DIRECTION, SortDir.ASCENDING);
|
||||
this.settings.registerSetting(Settings.TERMINAL_FONT_SIZE, TerminalFontSize.SMALL);
|
||||
this.settings.registerSetting(Settings.INTERFACE_TERMINAL_SECTION_ORDER, StringOrder.NATURAL);
|
||||
this.settings.registerSetting(Settings.PINS_STATE, PinsState.DISABLED);
|
||||
this.settings.registerSetting(Settings.CRAFTING_PINS_ROWS, PinsRows.DISABLED);
|
||||
this.settings.registerSetting(Settings.PLAYER_PINS_ROWS, PinsRows.DISABLED);
|
||||
this.settings.registerSetting(Settings.PAUSE_WHEN_HOLDING_SHIFT, YesNo.YES);
|
||||
|
||||
this.spawnChargedChance = (float) (1.0
|
||||
@@ -359,6 +370,22 @@ public final class AEConfig extends Configuration implements IConfigurableObject
|
||||
.getBoolean(true);
|
||||
this.MEMonitorableSmallSize = this.get("Client", "MEMonitorableSmallSize", 6).getInt(6);
|
||||
this.InterfaceTerminalSmallSize = this.get("Client", "InterfaceTerminalSmallSize", 6).getInt(6);
|
||||
|
||||
// Pin options (under Client category)
|
||||
Property pMaxCraft = this.get("Client", "maxCraftingPinRows", this.maxCraftingPinRows);
|
||||
pMaxCraft.comment = "Max rows for crafting pins section (1-16). Caps the pin button cycle.";
|
||||
this.maxCraftingPinRows = pMaxCraft.getInt(this.maxCraftingPinRows);
|
||||
this.maxCraftingPinRows = Math.max(1, Math.min(this.maxCraftingPinRows, 16));
|
||||
Property pMaxPlayer = this.get("Client", "maxPlayerPinRows", this.maxPlayerPinRows);
|
||||
pMaxPlayer.comment = "Max rows for player pins section (1-16). Caps the pin button cycle.";
|
||||
this.maxPlayerPinRows = pMaxPlayer.getInt(this.maxPlayerPinRows);
|
||||
this.maxPlayerPinRows = Math.max(1, Math.min(this.maxPlayerPinRows, 16));
|
||||
Property pOrder = this.get("Client", "pinCraftingSectionFirst", this.pinCraftingSectionFirst);
|
||||
pOrder.comment = "True = crafting pin section first, False = player pin section first.";
|
||||
this.pinCraftingSectionFirst = pOrder.getBoolean(this.pinCraftingSectionFirst);
|
||||
this.pinSectionOrder = this.pinCraftingSectionFirst ? PinSectionOrder.CRAFTING_FIRST
|
||||
: PinSectionOrder.PLAYER_FIRST;
|
||||
|
||||
// load buttons..
|
||||
for (int btnNum = 0; btnNum < 4; btnNum++) {
|
||||
final Property cmb = this.get("Client", "craftAmtButton" + (btnNum + 1), this.craftByStacks[btnNum]);
|
||||
|
||||
Reference in new issue
Block a user