From b8428b7863ac8af0d6d08f1e322790491af4ce57 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 24 Dec 2022 10:33:32 -0600 Subject: [PATCH] Made management focus button like reindeer's --- src/data/layers/management.tsx | 10 ++++++---- src/data/layers/reindeer.tsx | 4 +--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index ed7c262..1535ea0 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -1426,8 +1426,8 @@ const layer = createLayer(id, () => { direction: Direction.Right, width: 566, height: 50, - style: `border-radius: 4px 4px 0 0`, - borderStyle: `border-radius: 4px 4px 0 0`, + style: `border-radius: 0`, + borderStyle: `border-radius: 0`, fillStyle: () => ({ background: focusTime.value > 0 ? color : "#7f7f00", animation: focusTime.value > 0 ? "1s focused-focus-bar linear infinite" : "", @@ -1472,7 +1472,9 @@ const layer = createLayer(id, () => { )) }, style: { - width: "300px" + width: "570px", + minHeight: "80px", + zIndex: 4 }, canClick: () => Decimal.eq(focusCooldown.value, 0), onClick() { @@ -2132,10 +2134,10 @@ const layer = createLayer(id, () => { Click on an elf to see their milestones. - {render(focusButton)} {renderGrid(upgrades, upgrades2)} {renderGrid( + [focusButton], [focusMeter], treeElfTraining, coalElfTraining, diff --git a/src/data/layers/reindeer.tsx b/src/data/layers/reindeer.tsx index 3246f46..9956f43 100644 --- a/src/data/layers/reindeer.tsx +++ b/src/data/layers/reindeer.tsx @@ -141,9 +141,7 @@ const layer = createLayer(id, function (this: BaseLayer) { zIndex: 4 }, canClick: () => Decimal.eq(currCooldown.value, 0), - onClick() { - focus(); - } + onClick: focus })); const cooldown = createSequentialModifier(() => [