From 78ad9847722eba50eb2d13bfc00c430da565136c Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 22:56:02 +0100 Subject: [PATCH] Update: CC - Snake FS - Mouse Up (ckplg6wqnl.js) 262 bytes modified --- ckplg6wqnl.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ckplg6wqnl.js b/ckplg6wqnl.js index 631e3ec..ffd5839 100644 --- a/ckplg6wqnl.js +++ b/ckplg6wqnl.js @@ -5,6 +5,7 @@ if (!this.entityLoaded) { if (!this.initialized) { this.buttons = this.entityLoaded.buttons; this.state = this.entityLoaded.state; + this.meshPauseOverlay = this.entityLoaded.meshPauseOverlay; this.initialized = true; } @@ -19,9 +20,15 @@ this.buttons.map( if (button.id === 'f5xmype7dq') { if (this.state.paused) { + this.meshPauseOverlay.visible = true; + this.meshPauseOverlay.updateInstance('visible'); + button.materials[0].visible = true; button.materials[0].updateInstance('visible'); } else { + this.meshPauseOverlay.visible = false; + this.meshPauseOverlay.updateInstance('visible'); + button.materials[0].visible = false; button.materials[0].updateInstance('visible'); }