aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings/firstLoadPage.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-07 01:23:02 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-07 01:23:02 +0800
commit2154f49bceed1ac8eeb1111ea402ddd2b243679d (patch)
treea0bb6d7150068f8cf25be3d2146302c651c4415a /features/globalSettings/firstLoadPage.js
parentb7848e65afbd06a9a549ee31912425680ab11536 (diff)
downloadSoopyV2-2154f49bceed1ac8eeb1111ea402ddd2b243679d.tar.gz
SoopyV2-2154f49bceed1ac8eeb1111ea402ddd2b243679d.tar.bz2
SoopyV2-2154f49bceed1ac8eeb1111ea402ddd2b243679d.zip
Add first load page (Still need to add the settings added in that though)
Diffstat (limited to 'features/globalSettings/firstLoadPage.js')
-rw-r--r--features/globalSettings/firstLoadPage.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/features/globalSettings/firstLoadPage.js b/features/globalSettings/firstLoadPage.js
new file mode 100644
index 0000000..429c867
--- /dev/null
+++ b/features/globalSettings/firstLoadPage.js
@@ -0,0 +1,40 @@
+import SoopyMouseClickEvent from "../../../guimanager/EventListener/SoopyMouseClickEvent"
+import ButtonWithArrow from "../../../guimanager/GuiElement/ButtonWithArrow"
+import SoopyGuiElement from "../../../guimanager/GuiElement/SoopyGuiElement"
+
+class FirstLoadPage extends SoopyGuiElement {
+ constructor(){
+ super()
+
+ this.setLocation(0,0,1,1)
+
+ this.guiPage = undefined
+ }
+
+ 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(()=>{
+ this.guiPage.prevPage()
+ }))
+
+ this.addChild(backButton)
+ }
+ if(addNext){
+ let nextButton = new ButtonWithArrow().setLocation(0.75, 0.85, 0.2, 0.1).setText("§0Next")
+
+ nextButton.addEvent(new SoopyMouseClickEvent().setHandler(()=>{
+ this.guiPage.nextPage()
+ }))
+
+ this.addChild(nextButton)
+ }
+ }
+
+ load(){
+
+ }
+}
+
+export default FirstLoadPage \ No newline at end of file