Made management focus button like reindeer's

This commit is contained in:
thepaperpilot 2022-12-24 10:33:32 -06:00
parent 317d8ca2c1
commit b8428b7863
2 changed files with 7 additions and 7 deletions

View file

@ -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.
<Spacer />
<Spacer />
{render(focusButton)}
{renderGrid(upgrades, upgrades2)}
<Spacer />
{renderGrid(
[focusButton],
[focusMeter],
treeElfTraining,
coalElfTraining,

View file

@ -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(() => [