aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui
diff options
context:
space:
mode:
Diffstat (limited to 'features/soopyGui')
-rw-r--r--features/soopyGui/GuiPage.js5
-rw-r--r--features/soopyGui/index.js6
2 files changed, 9 insertions, 2 deletions
diff --git a/features/soopyGui/GuiPage.js b/features/soopyGui/GuiPage.js
index 66dcb0c..35ce980 100644
--- a/features/soopyGui/GuiPage.js
+++ b/features/soopyGui/GuiPage.js
@@ -52,6 +52,11 @@ class GuiPage{
onOpen(){
}
+
+ //Override me :D
+ onOpenPage(page){
+
+ }
}
export default GuiPage; \ No newline at end of file
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js
index d9ef421..0f223e1 100644
--- a/features/soopyGui/index.js
+++ b/features/soopyGui/index.js
@@ -128,9 +128,9 @@ class SoopyGui extends Feature {
this.mainWindowElement.addChild(p)
})
- this.goToPageNum(1, anim)
-
category.onOpen()
+
+ this.goToPageNum(1, anim)
}
onDisable(){
@@ -185,6 +185,8 @@ class SoopyGui extends Feature {
this.categoryPage.location.location.x.set(-pageNum, animate?500:0)
this.backButton.location.location.y.set((pageNum === 0 || !this.currCategory.showBackButton)?-0.2:0, animate?500:0)
+
+ this.currCategory.onOpenPage(pageNum)
}
openSidebarPage(child){
this.sidebarPage.location.location.x.set(0.625, 500)