aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-03 19:21:17 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-03 19:21:17 +0800
commitc9d34afde5042076b41673f4a3de7aa9e23e7e3b (patch)
tree3aa14fe01d89c5f8bcab75b913d566cf8d902f3a
parent3525dce1d84a53dae0414388ba886b66323e2afd (diff)
downloadSoopyV2-c9d34afde5042076b41673f4a3de7aa9e23e7e3b.tar.gz
SoopyV2-c9d34afde5042076b41673f4a3de7aa9e23e7e3b.tar.bz2
SoopyV2-c9d34afde5042076b41673f4a3de7aa9e23e7e3b.zip
small changes to first load page
-rw-r--r--features/globalSettings/firstLoadPage.js16
-rw-r--r--features/globalSettings/firstLoadPages.js3
2 files changed, 10 insertions, 9 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() {
}
}
diff --git a/features/globalSettings/firstLoadPages.js b/features/globalSettings/firstLoadPages.js
index 6955a90..21d84a8 100644
--- a/features/globalSettings/firstLoadPages.js
+++ b/features/globalSettings/firstLoadPages.js
@@ -12,6 +12,7 @@ class WelcomePage extends FirstLoadPage {
this.addChild(new SoopyTextElement().setText("§0Welcome to SoopyV2!").setLocation(0.1, 0.05, 0.8, 0.1).setMaxTextScale(10));
+ this.addChild(new SoopyTextElement().setText("§7This menu will guide you through important settings").setLocation(0.1, 0.15, 0.8, 0.075).setMaxTextScale(10));
// this.addChild(new SoopyTextElement().setText("§7First lets get privacy settings out of the way.").setLocation(0.1, 0.15,0.8,0.075).setMaxTextScale(10));
this.settingsArea = new SoopyGuiElement().setLocation(0.1, 0.25, 0.8, 0.75);
@@ -38,7 +39,7 @@ class ApiKeyPage extends FirstLoadPage {
constructor() {
super()
- this.addChild(new SoopyTextElement().setText("§0Next lets setup your api key!").setLocation(0.1, 0.05, 0.8, 0.1).setMaxTextScale(10));
+ this.addChild(new SoopyTextElement().setText("§0First lets setup your api key!").setLocation(0.1, 0.05, 0.8, 0.1).setMaxTextScale(10));
this.addChild(new SoopyTextElement().setText("§7You can skip this but some features may not work").setLocation(0.1, 0.15, 0.8, 0.075).setMaxTextScale(10));