diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-08 20:03:11 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-08 20:03:11 +0800 |
commit | 46c2fd28691f3be2207445b44ff6d839ba9d17c6 (patch) | |
tree | b3b8ca22654191617ff8bea569c9e94e121c88fd /features/hud/HudTextElement.js | |
parent | 63e7b19f1c7d1447a2c09be258b3aef69cf00450 (diff) | |
download | SoopyV2-46c2fd28691f3be2207445b44ff6d839ba9d17c6.tar.gz SoopyV2-46c2fd28691f3be2207445b44ff6d839ba9d17c6.tar.bz2 SoopyV2-46c2fd28691f3be2207445b44ff6d839ba9d17c6.zip |
changes
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 |