aboutsummaryrefslogtreecommitdiff
path: root/features/settings/settingThings/button.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
commit431e4fc9d1657a50ebc34b8ac24f9bfaea06417f (patch)
tree5987bb14f38d2999c682970429f34b41eb3e5826 /features/settings/settingThings/button.js
parente73f2efdf0f50aa775c540317394d46428e9704f (diff)
downloadSoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.gz
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.bz2
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.zip
Initial move to babel + change fetch to use async/await
Diffstat (limited to 'features/settings/settingThings/button.js')
-rw-r--r--features/settings/settingThings/button.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/features/settings/settingThings/button.js b/features/settings/settingThings/button.js
deleted file mode 100644
index 77ba4b8..0000000
--- a/features/settings/settingThings/button.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import SoopyMouseClickEvent from "../../../../guimanager/EventListener/SoopyMouseClickEvent";
-import ButtonWithArrow from "../../../../guimanager/GuiElement/ButtonWithArrow";
-import SettingBase from "./settingBase";
-
-class ButtonSetting extends SettingBase {
- constructor(name, description, settingId, module, buttonText, buttonFunction, defaultValue=null){
- super(name, description, defaultValue, settingId, module)
-
- this.buttonObject = new ButtonWithArrow().setLocation(0, 0.3, 0.8, 0.4).setText("ยง0"+buttonText)
- this.settingObject.addChild(this.buttonObject)
-
- this.buttonObject.addEvent(new SoopyMouseClickEvent().setHandler(()=>{
- buttonFunction.call(this)
- }))
- }
-}
-
-export default ButtonSetting \ No newline at end of file