mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:05:42 +00:00
Improve text on cel6 automation buttons, fixes #3167
This commit is contained in:
parent
33987b71af
commit
b1c3f12703
@ -8530,7 +8530,7 @@ kbd {
|
||||
}
|
||||
|
||||
.c-laitela-automation-toggle {
|
||||
width: 20rem;
|
||||
width: 22rem;
|
||||
height: 3rem;
|
||||
font-family: Typewriter;
|
||||
font-size: 1.1rem;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user