diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-03 19:21:17 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-03 19:21:17 +0800 |
commit | c9d34afde5042076b41673f4a3de7aa9e23e7e3b (patch) | |
tree | 3aa14fe01d89c5f8bcab75b913d566cf8d902f3a /features/globalSettings/firstLoadPage.js | |
parent | 3525dce1d84a53dae0414388ba886b66323e2afd (diff) | |
download | SoopyV2-c9d34afde5042076b41673f4a3de7aa9e23e7e3b.tar.gz SoopyV2-c9d34afde5042076b41673f4a3de7aa9e23e7e3b.tar.bz2 SoopyV2-c9d34afde5042076b41673f4a3de7aa9e23e7e3b.zip |
small changes to first load page
Diffstat (limited to 'features/globalSettings/firstLoadPage.js')
-rw-r--r-- | features/globalSettings/firstLoadPage.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/features/globalSettings/firstLoadPage.js b/features/globalSettings/firstLoadPage.js index d38f927..62805f5 100644 --- a/features/globalSettings/firstLoadPage.js +++ b/features/globalSettings/firstLoadPage.js @@ -3,29 +3,29 @@ import ButtonWithArrow from "../../../guimanager/GuiElement/ButtonWithArrow" import SoopyGuiElement from "../../../guimanager/GuiElement/SoopyGuiElement" class FirstLoadPage extends SoopyGuiElement { - constructor(){ + constructor() { super() - this.setLocation(0,0,1,1) + this.setLocation(0, 0, 1, 1) this.guiPage = undefined } - setLoc(addBack, addNext){ - if(addBack){ + setLoc(addBack, addNext) { + if (addBack) { let backButton = new ButtonWithArrow().setLocation(0.05, 0.85, 0.2, 0.1).setDirectionRight(false).setText("§0Back") - backButton.addEvent(new SoopyMouseClickEvent().setHandler(()=>{ + backButton.addEvent(new SoopyMouseClickEvent().setHandler(() => { this.guiPage.prevPage() this.guiPage.closeSidebarPage() })) this.addChild(backButton) } - if(addNext){ + if (addNext) { let nextButton = new ButtonWithArrow().setLocation(0.75, 0.85, 0.2, 0.1).setText("§0Next") - nextButton.addEvent(new SoopyMouseClickEvent().setHandler(()=>{ + nextButton.addEvent(new SoopyMouseClickEvent().setHandler(() => { this.guiPage.nextPage() this.guiPage.closeSidebarPage() })) @@ -34,7 +34,7 @@ class FirstLoadPage extends SoopyGuiElement { } } - load(){ + load() { } } |