mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +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,
|
direction: Direction.Right,
|
||||||
width: 566,
|
width: 566,
|
||||||
height: 50,
|
height: 50,
|
||||||
style: `border-radius: 4px 4px 0 0`,
|
style: `border-radius: 0`,
|
||||||
borderStyle: `border-radius: 4px 4px 0 0`,
|
borderStyle: `border-radius: 0`,
|
||||||
fillStyle: () => ({
|
fillStyle: () => ({
|
||||||
background: focusTime.value > 0 ? color : "#7f7f00",
|
background: focusTime.value > 0 ? color : "#7f7f00",
|
||||||
animation: focusTime.value > 0 ? "1s focused-focus-bar linear infinite" : "",
|
animation: focusTime.value > 0 ? "1s focused-focus-bar linear infinite" : "",
|
||||||
|
@ -1472,7 +1472,9 @@ const layer = createLayer(id, () => {
|
||||||
))
|
))
|
||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
width: "300px"
|
width: "570px",
|
||||||
|
minHeight: "80px",
|
||||||
|
zIndex: 4
|
||||||
},
|
},
|
||||||
canClick: () => Decimal.eq(focusCooldown.value, 0),
|
canClick: () => Decimal.eq(focusCooldown.value, 0),
|
||||||
onClick() {
|
onClick() {
|
||||||
|
@ -2132,10 +2134,10 @@ const layer = createLayer(id, () => {
|
||||||
Click on an elf to see their milestones.
|
Click on an elf to see their milestones.
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{render(focusButton)}
|
|
||||||
{renderGrid(upgrades, upgrades2)}
|
{renderGrid(upgrades, upgrades2)}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{renderGrid(
|
{renderGrid(
|
||||||
|
[focusButton],
|
||||||
[focusMeter],
|
[focusMeter],
|
||||||
treeElfTraining,
|
treeElfTraining,
|
||||||
coalElfTraining,
|
coalElfTraining,
|
||||||
|
|
|
@ -141,9 +141,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
zIndex: 4
|
zIndex: 4
|
||||||
},
|
},
|
||||||
canClick: () => Decimal.eq(currCooldown.value, 0),
|
canClick: () => Decimal.eq(currCooldown.value, 0),
|
||||||
onClick() {
|
onClick: focus
|
||||||
focus();
|
|
||||||
}
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const cooldown = createSequentialModifier(() => [
|
const cooldown = createSequentialModifier(() => [
|
||||||
|
|
Loading…
Reference in a new issue