mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-23 17:01:49 +00:00
Made management focus button like reindeer's
This commit is contained in:
parent
317d8ca2c1
commit
b8428b7863
2 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -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(() => [
|
||||
|
|
Loading…
Reference in a new issue