diff --git a/src/css/ingame_hud/sandbox_controller.scss b/src/css/ingame_hud/sandbox_controller.scss index e4680fe4..b1a2e110 100644 --- a/src/css/ingame_hud/sandbox_controller.scss +++ b/src/css/ingame_hud/sandbox_controller.scss @@ -46,5 +46,15 @@ @include IncreasedClickArea(0px); @include SuperSmallText; } + .bigPlusMinus { + display: grid; + grid-template-columns: 1fr 1fr; + @include S(grid-gap, 2px); + button { + @include S(margin-bottom, 2px); + @include IncreasedClickArea(0px); + @include SuperSmallText; + } + } } } diff --git a/src/js/game/hud/parts/sandbox_controller.js b/src/js/game/hud/parts/sandbox_controller.js index 592487ee..d2738af3 100644 --- a/src/js/game/hud/parts/sandbox_controller.js +++ b/src/js/game/hud/parts/sandbox_controller.js @@ -45,8 +45,11 @@ export class HUDSandboxController extends BaseHUDPart {
+
+ + +
-
` @@ -55,7 +58,8 @@ export class HUDSandboxController extends BaseHUDPart { const bind = (selector, handler) => this.trackClicks(this.element.querySelector(selector), handler); bind(".giveBlueprints", this.giveBlueprints); - bind(".maxOutAll", this.maxOutAll); + bind(".bigMinus", () => this.modifyAll(-100)); + bind(".bigPlus", () => this.modifyAll(100)); bind(".levelToggle .minus", () => this.modifyLevel(-1)); bind(".levelToggle .plus", () => this.modifyLevel(1)); @@ -80,11 +84,11 @@ export class HUDSandboxController extends BaseHUDPart { this.root.hubGoals.storedShapes[shape] += 1e9; } - maxOutAll() { - this.modifyUpgrade("belt", 100); - this.modifyUpgrade("miner", 100); - this.modifyUpgrade("processors", 100); - this.modifyUpgrade("painting", 100); + modifyAll(amount) { + this.modifyUpgrade("belt", amount); + this.modifyUpgrade("miner", amount); + this.modifyUpgrade("processors", amount); + this.modifyUpgrade("painting", amount); } modifyUpgrade(id, amount) {