Revert "Change how ui visibility is handled"
This reverts commit 601514a7c8
.
This commit is contained in:
parent
601514a7c8
commit
f59b6af3af
@ -383,7 +383,7 @@ class UI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.uiIframe.style.pointerEvents = event.data.clickable ? 'auto' : 'none';
|
this.uiIframe.style.pointerEvents = event.data.clickable ? 'auto' : 'none';
|
||||||
this.setUiVisibility(event.data.opacity || this.isGlobal);
|
this.uiIframe.style.opacity = event.data.opacity || this.isGlobal ? '100' : '0';
|
||||||
break;
|
break;
|
||||||
case 'uw-bus-tunnel':
|
case 'uw-bus-tunnel':
|
||||||
const busCommand = event.data.payload;
|
const busCommand = event.data.payload;
|
||||||
@ -396,7 +396,7 @@ class UI {
|
|||||||
this.setUiVisibility(!this.isGlobal);
|
this.setUiVisibility(!this.isGlobal);
|
||||||
break;
|
break;
|
||||||
case 'uwui-hidden':
|
case 'uwui-hidden':
|
||||||
this.setUiVisibility(event.data.opacity || this.isGlobal);
|
this.uiIframe.style.opacity = event.data.opacity || this.isGlobal ? '100' : '0';
|
||||||
break;
|
break;
|
||||||
case 'uwui-global-window-hidden':
|
case 'uwui-global-window-hidden':
|
||||||
if (!this.isGlobal) {
|
if (!this.isGlobal) {
|
||||||
|
Loading…
Reference in New Issue
Block a user