aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-18 22:45:54 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-18 22:45:54 +0800
commitc87c6f2703d689375518f54905ae10e2edb42d41 (patch)
tree1686e97b83bf78f658aece231e7fde6f6f060105 /features/soopyGui
parent082d9cf4af63495a3d8709b0ee87dc935ed986dc (diff)
downloadSoopyV2-c87c6f2703d689375518f54905ae10e2edb42d41.tar.gz
SoopyV2-c87c6f2703d689375518f54905ae10e2edb42d41.tar.bz2
SoopyV2-c87c6f2703d689375518f54905ae10e2edb42d41.zip
asd
Diffstat (limited to 'features/soopyGui')
-rw-r--r--features/soopyGui/GuiPage.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/features/soopyGui/GuiPage.js b/features/soopyGui/GuiPage.js
index 35ce980..f5ac9a5 100644
--- a/features/soopyGui/GuiPage.js
+++ b/features/soopyGui/GuiPage.js
@@ -1,8 +1,8 @@
import SoopyGuiElement from '../../../guimanager/GuiElement/SoopyGuiElement.js';
import categoryManager from './categoryManager.js';
-class GuiPage{
- constructor(priority){
+class GuiPage {
+ constructor(priority) {
this.currentPageId = 0;
this.priority = priority
@@ -14,17 +14,17 @@ class GuiPage{
this.finalisedLoading = false
}
- finaliseLoading(){
+ finaliseLoading() {
categoryManager.addCategory(this);
}
- getSoopyGui(){
+ getSoopyGui() {
return global.soopyv2featuremanagerthing.features["soopyGui"].class
}
- newPage(){
+ newPage() {
this.currentPageId++
- let page = new SoopyGuiElement().setLocation(1*this.currentPageId,0,1,1)
+ let page = new SoopyGuiElement().setLocation(1 * this.currentPageId, 0, 1, 1)
page._soopyAddonsPageId = this.currentPageId
@@ -33,28 +33,28 @@ class GuiPage{
return page
}
- goToPage(page, anim){
+ goToPage(page, anim) {
this.getSoopyGui().goToPageNum(page, anim)
}
- openSidebarPage(child){
+ openSidebarPage(child) {
this.getSoopyGui().openSidebarPage(child)
}
- closeSidebarPage(){
+ closeSidebarPage() {
this.getSoopyGui().closeSidebarPage()
}
- delete(){
+ delete() {
categoryManager.deleteCategory(this)
}
//Override me :D
- onOpen(){
+ onOpen() {
}
//Override me :D
- onOpenPage(page){
+ onOpenPage(page) {
}
}