mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +00:00
Tweak elf xp bar display
This commit is contained in:
parent
285da2744f
commit
363f4f3442
1 changed files with 5 additions and 2 deletions
|
@ -183,7 +183,10 @@ const layer = createLayer(id, () => {
|
|||
: ""
|
||||
}),
|
||||
baseStyle: "margin-top: 0",
|
||||
fillStyle: "margin-top: 0; transition-duration: 0s",
|
||||
fillStyle: () =>
|
||||
focusTargets.value[elf.name]
|
||||
? "margin-top: 0; transition-duration: 0s;"
|
||||
: "margin-top: 0; transition-duration: 0s; background-color: var(--bought)",
|
||||
borderStyle: () =>
|
||||
Decimal.gte(level.value, schools.amount.value) ? "border-color: red" : "",
|
||||
progress: () => Decimal.div(expToNextLevel.value, expRequiredForNextLevel.value),
|
||||
|
@ -239,7 +242,7 @@ const layer = createLayer(id, () => {
|
|||
},
|
||||
style: () => ({
|
||||
width: "190px",
|
||||
background: currentShown.value == elf.name ? "var(--foreground)" : ""
|
||||
background: currentShown.value == elf.name ? "var(--accent2)" : ""
|
||||
}),
|
||||
onClick() {
|
||||
currentShown.value = elf.name;
|
||||
|
|
Loading…
Reference in a new issue