Prettier progress bars

This commit is contained in:
ducdat0507 2022-12-15 10:58:57 +07:00
parent 417e0c4ccf
commit b2bcd97f34
2 changed files with 10 additions and 10 deletions

View file

@ -55,8 +55,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
height: 10,
style: "margin-top: 8px",
borderStyle: "border-color: black",
baseStyle: "margin-top: 0",
fillStyle: "margin-top: 0; transition-duration: 0s; background: black",
baseStyle: "margin-top: -1px",
fillStyle: "margin-top: -1px; transition-duration: 0s; background: black",
progress: () => Decimal.div(breedingProgress.value, computedBreedingCooldown.value)
}));
const breeding = createClickable(() => ({
@ -91,8 +91,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
height: 10,
style: "margin-top: 8px",
borderStyle: "border-color: black",
baseStyle: "margin-top: 0",
fillStyle: "margin-top: 0; transition-duration: 0s; background: black",
baseStyle: "margin-top: -1px",
fillStyle: "margin-top: -1px; transition-duration: 0s; background: black",
progress: () => Decimal.div(shearingProgress.value, computedShearingCooldown.value)
}));
const shearing = createClickable(() => ({
@ -127,8 +127,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
height: 10,
style: "margin-top: 8px",
borderStyle: "border-color: black",
baseStyle: "margin-top: 0",
fillStyle: "margin-top: 0; transition-duration: 0s; background: black",
baseStyle: "margin-top: -1px",
fillStyle: "margin-top: -1px; transition-duration: 0s; background: black",
progress: () => Decimal.div(spinningProgress.value, computedSpinningCooldown.value)
}));
const spinning = createClickable(() => ({

View file

@ -541,8 +541,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
width: 100,
height: 10,
style: "margin-top: 8px",
baseStyle: "margin-top: 0",
fillStyle: "margin-top: 0; transition-duration: 0s",
baseStyle: "margin-top: -1px",
fillStyle: "margin-top: -1px; transition-duration: 0s",
progress: () => Decimal.div(manualCutProgress.value, computedManualCuttingCooldown.value)
}));
@ -593,8 +593,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
width: 100,
height: 10,
style: "margin-top: 8px",
baseStyle: "margin-top: 0",
fillStyle: "margin-top: 0; transition-duration: 0s",
baseStyle: "margin-top: -1px",
fillStyle: "margin-top: -1px; transition-duration: 0s",
progress: () => Decimal.div(manualPlantProgress.value, computedManualPlantingCooldown.value)
}));
const plantTree = createClickable(() => ({