Improve text on cel6 automation buttons, fixes #3167

This commit is contained in:
SpectralFlame 2022-10-28 19:24:00 -05:00 committed by cyip92
parent 33987b71af
commit b1c3f12703
2 changed files with 30 additions and 2 deletions

View File

@ -8530,7 +8530,7 @@ kbd {
}
.c-laitela-automation-toggle {
width: 20rem;
width: 22rem;
height: 3rem;
font-family: Typewriter;
font-size: 1.1rem;

View File

@ -16,8 +16,29 @@ export default {
ascension: false,
singularity: false,
annihilation: false,
maxAutobuy: 0,
maxAutoAscend: 0,
autoSingularityFactor: 0,
};
},
computed: {
autobuyStr() {
return this.maxAutobuy === 4
? "ON (all DMD)"
: `ON (max. DMD ${this.maxAutobuy})`;
},
autoAscendStr() {
return this.maxAutoAscend === 4
? "ON (all DMD)"
: `ON (max. DMD ${this.maxAutoAscend})`;
},
autoSingularityStr() {
return this.autoSingularityFactor === 1
? "At Cap"
: `At Cap ${formatX(this.autoSingularityFactor, 2, 2)}`;
},
},
watch: {
dimension(newValue) {
player.auto.darkMatterDims.isActive = newValue;
@ -43,6 +64,10 @@ export default {
this.ascension = auto.ascension.isActive;
this.singularity = auto.singularity.isActive;
this.annihilation = auto.annihilation.isActive;
this.maxAutobuy = SingularityMilestone.darkDimensionAutobuyers.effectValue;
this.maxAutoAscend = SingularityMilestone.ascensionAutobuyers.effectValue;
this.autoSingularityFactor = SingularityMilestone.autoCondense.effectValue;
},
}
};
@ -57,19 +82,22 @@ export default {
v-if="hasDimension"
v-model="dimension"
class="c-laitela-automation-toggle"
label="Auto-buy DM Dimensions:"
label="Auto-buy DMD:"
:on="autobuyStr"
/>
<PrimaryToggleButton
v-if="hasAscension"
v-model="ascension"
class="c-laitela-automation-toggle"
label="Auto-Ascend:"
:on="autoAscendStr"
/>
<PrimaryToggleButton
v-if="hasSingularity"
v-model="singularity"
class="c-laitela-automation-toggle"
label="Auto-Singularity:"
:on="autoSingularityStr"
/>
<PrimaryToggleButton
v-if="hasAnnihilated"