diff options
Diffstat (limited to 'features/hud/HudTextElement.js')
-rw-r--r-- | features/hud/HudTextElement.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/features/hud/HudTextElement.js b/features/hud/HudTextElement.js index 2acbe67..be9e4ee 100644 --- a/features/hud/HudTextElement.js +++ b/features/hud/HudTextElement.js @@ -48,6 +48,11 @@ class HudTextElement{ return this } + isEnabled(){ + if(!this.toggleSetting) return true + return this.locationSetting && this.toggleSetting.getValue() + } + render(){ if(this.toggleSetting && !this.toggleSetting.getValue() || !this.locationSetting) return if(Date.now()-this.tempDisableTime < 100) return |