diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-27 18:19:16 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-27 18:19:16 +0800 |
commit | e1692478307dea1848cddd4c3ae6d289370263f2 (patch) | |
tree | b11d71ad3433fe2019e866988ab014b8fe5d2e84 /features/hud/index.js | |
parent | 4701f3b3d96eeb50df9ec5af6a5e94c654a0bdcc (diff) | |
download | SoopyV2-e1692478307dea1848cddd4c3ae6d289370263f2.tar.gz SoopyV2-e1692478307dea1848cddd4c3ae6d289370263f2.tar.bz2 SoopyV2-e1692478307dea1848cddd4c3ae6d289370263f2.zip |
+ make spotify overlay less buggy with enabling/disabling
Diffstat (limited to 'features/hud/index.js')
-rw-r--r-- | features/hud/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/hud/index.js b/features/hud/index.js index 7d0d6ca..b8aa9cb 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -128,14 +128,14 @@ class Hud extends Feature { .requires(this.showSpotifyPlaying) .editTempText("&6Spotify&7> &cNot open")) this.hudElements.push(this.spotifyElement) - this.spotifyElement2 = new HudTextElement().setToggleSetting(this.showSpotifyPlaying).setLocationSetting({ + this.spotifyElement2 = new HudTextElement().setLocationSetting({ setParent: () => { }, x: this.spotifyElement.locationSetting.x + this.spotifyElement.getWidth(), y: this.spotifyElement.locationSetting.y, scale: this.spotifyElement.locationSetting.scale, shadowType: this.spotifyElement.locationSetting.shadowType }) - this.spotifyElement2.renderElm.stopRender() + this.spotifyElement2.disableRendering() this.showLobbyDay = new ToggleSetting("Show Current Lobby Day", "", true, "lobby_day", this) this.lobbyDayElement = new HudTextElement() |