mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Hide bh invert slider when it is being disabled
This commit is contained in:
parent
406fe5b500
commit
be2080aab5
|
@ -19,6 +19,7 @@ export default {
|
||||||
isUnlocked: false,
|
isUnlocked: false,
|
||||||
isPaused: false,
|
isPaused: false,
|
||||||
isEnslaved: false,
|
isEnslaved: false,
|
||||||
|
isLaitela: false,
|
||||||
pauseMode: 0,
|
pauseMode: 0,
|
||||||
detailedBH2: "",
|
detailedBH2: "",
|
||||||
isPermanent: false,
|
isPermanent: false,
|
||||||
|
@ -59,6 +60,7 @@ export default {
|
||||||
this.startAnimation();
|
this.startAnimation();
|
||||||
}
|
}
|
||||||
this.isEnslaved = Enslaved.isRunning;
|
this.isEnslaved = Enslaved.isRunning;
|
||||||
|
this.isLaitela = Laitela.isRunning;
|
||||||
this.isPermanent = BlackHoles.arePermanent;
|
this.isPermanent = BlackHoles.arePermanent;
|
||||||
this.pauseMode = player.blackHoleAutoPauseMode;
|
this.pauseMode = player.blackHoleAutoPauseMode;
|
||||||
this.hasBH2 = BlackHole(2).isUnlocked;
|
this.hasBH2 = BlackHole(2).isUnlocked;
|
||||||
|
@ -66,7 +68,7 @@ export default {
|
||||||
BlackHole(2).duration / BlackHole(2).cycleLength];
|
BlackHole(2).duration / BlackHole(2).cycleLength];
|
||||||
this.detailedBH2 = this.bh2Status();
|
this.detailedBH2 = this.bh2Status();
|
||||||
|
|
||||||
if (player.blackHoleNegative < 1) this.stateChange = this.isPaused ? "Uninvert" : "Invert";
|
if (player.blackHoleNegative < 1 && !this.isLaitela) this.stateChange = this.isPaused ? "Uninvert" : "Invert";
|
||||||
else this.stateChange = this.isPaused ? "Unpause" : "Pause";
|
else this.stateChange = this.isPaused ? "Unpause" : "Pause";
|
||||||
},
|
},
|
||||||
bh2Status() {
|
bh2Status() {
|
||||||
|
@ -212,7 +214,10 @@ export default {
|
||||||
Active time percent: {{ formatPercents(blackHoleUptime[0], 3) }}
|
Active time percent: {{ formatPercents(blackHoleUptime[0], 3) }}
|
||||||
<span v-if="hasBH2">and {{ formatPercents(blackHoleUptime[1], 3) }}</span>
|
<span v-if="hasBH2">and {{ formatPercents(blackHoleUptime[1], 3) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<BlackHoleChargingSliders class="l-enslaved-shop-container" />
|
<BlackHoleChargingSliders
|
||||||
|
v-if="!isLaitela"
|
||||||
|
class="l-enslaved-shop-container"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div :class="gridStyle()">
|
<div :class="gridStyle()">
|
||||||
<BlackHoleUpgradeRow
|
<BlackHoleUpgradeRow
|
||||||
|
|
Loading…
Reference in New Issue
Block a user