diff --git a/ckplg6wqnl.js b/ckplg6wqnl.js index 813c8cf..b04de79 100644 --- a/ckplg6wqnl.js +++ b/ckplg6wqnl.js @@ -4,13 +4,28 @@ if (!this.entityLoaded) { if (!this.initialized) { this.buttons = this.entityLoaded.buttons; + this.state = this.entityLoaded.state; this.initialized = true; } this.buttons.map( function(button) { - button.materials[0].visible = false; - button.materials[0].updateInstance('visible'); - } + + if (button.id !== 'f5xmype7dq' && + button.id !== '0eo0kat3fb') { + button.materials[0].visible = false; + button.materials[0].updateInstance('visible'); + } + + if (button.id === '0eo0kat3fb') { + if (this.state.muted) { + button.materials[0].visible = true; + button.materials[0].updateInstance('visible'); + } else { + button.materials[0].visible = false; + button.materials[0].updateInstance('visible'); + } + } + }.bind(this) ); //@ sourceURL=mouseUp.js \ No newline at end of file