diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-03 15:41:40 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-03 15:41:40 +0800 |
commit | 578a7e1720c0c85b1023151172eb8e077f5bf126 (patch) | |
tree | af7096c0a2577d4ef6665c2ccaac537e70977054 /features/settings/settingThings/location.js | |
parent | ac1fb62d61fa6a16a43667ac4f16c324f806a54e (diff) | |
download | SoopyV2-578a7e1720c0c85b1023151172eb8e077f5bf126.tar.gz SoopyV2-578a7e1720c0c85b1023151172eb8e077f5bf126.tar.bz2 SoopyV2-578a7e1720c0c85b1023151172eb8e077f5bf126.zip |
+ fix there being multiple of the same hud element in the edit gui locations button sometimes
Diffstat (limited to 'features/settings/settingThings/location.js')
-rw-r--r-- | features/settings/settingThings/location.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/features/settings/settingThings/location.js b/features/settings/settingThings/location.js index 9cd13af..c9587eb 100644 --- a/features/settings/settingThings/location.js +++ b/features/settings/settingThings/location.js @@ -146,6 +146,10 @@ class LocationSetting extends ButtonSetting { return this } + delete() { + locationSettingHolder.removeLocationSetting(this) + } + _updateValue() { this.setValue([this.x, this.y, this.scale, this.shadowType]) if (this.onChange) this.onChange() |