From be2080aab591dca7ff20108ea963733a8dbd42cc Mon Sep 17 00:00:00 2001 From: Hirame1 <56225774+Hirame1@users.noreply.github.com> Date: Mon, 13 May 2024 20:29:35 +0700 Subject: [PATCH] Hide bh invert slider when it is being disabled --- src/components/tabs/black-hole/BlackHoleTab.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/tabs/black-hole/BlackHoleTab.vue b/src/components/tabs/black-hole/BlackHoleTab.vue index 50afc1cf3..05afb64be 100644 --- a/src/components/tabs/black-hole/BlackHoleTab.vue +++ b/src/components/tabs/black-hole/BlackHoleTab.vue @@ -19,6 +19,7 @@ export default { isUnlocked: false, isPaused: false, isEnslaved: false, + isLaitela: false, pauseMode: 0, detailedBH2: "", isPermanent: false, @@ -59,6 +60,7 @@ export default { this.startAnimation(); } this.isEnslaved = Enslaved.isRunning; + this.isLaitela = Laitela.isRunning; this.isPermanent = BlackHoles.arePermanent; this.pauseMode = player.blackHoleAutoPauseMode; this.hasBH2 = BlackHole(2).isUnlocked; @@ -66,7 +68,7 @@ export default { BlackHole(2).duration / BlackHole(2).cycleLength]; 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"; }, bh2Status() { @@ -212,7 +214,10 @@ export default { Active time percent: {{ formatPercents(blackHoleUptime[0], 3) }} and {{ formatPercents(blackHoleUptime[1], 3) }} - +