aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/soopyGui/GuiPage.js18
-rw-r--r--metadata.json4
2 files changed, 9 insertions, 13 deletions
diff --git a/features/soopyGui/GuiPage.js b/features/soopyGui/GuiPage.js
index 812c831..66dcb0c 100644
--- a/features/soopyGui/GuiPage.js
+++ b/features/soopyGui/GuiPage.js
@@ -6,14 +6,6 @@ class GuiPage{
this.currentPageId = 0;
this.priority = priority
- this.soopyGui = undefined;
- new Thread(()=>{
- while(global.soopyv2featuremanagerthing === undefined || global.soopyv2featuremanagerthing.features === undefined || global.soopyv2featuremanagerthing.features["soopyGui"] === undefined){
- Thread.sleep(100)
- }
-
- this.soopyGui = global.soopyv2featuremanagerthing.features["soopyGui"].class;
- }).start()
this.name = ""
this.pages = {}
@@ -26,6 +18,10 @@ class GuiPage{
categoryManager.addCategory(this);
}
+ getSoopyGui(){
+ return global.soopyv2featuremanagerthing.features["soopyGui"].class
+ }
+
newPage(){
this.currentPageId++
let page = new SoopyGuiElement().setLocation(1*this.currentPageId,0,1,1)
@@ -38,14 +34,14 @@ class GuiPage{
}
goToPage(page, anim){
- this.soopyGui.goToPageNum(page, anim)
+ this.getSoopyGui().goToPageNum(page, anim)
}
openSidebarPage(child){
- this.soopyGui.openSidebarPage(child)
+ this.getSoopyGui().openSidebarPage(child)
}
closeSidebarPage(){
- this.soopyGui.closeSidebarPage()
+ this.getSoopyGui().closeSidebarPage()
}
delete(){
diff --git a/metadata.json b/metadata.json
index 4541e01..a2e4b24 100644
--- a/metadata.json
+++ b/metadata.json
@@ -5,8 +5,8 @@
"entry": "index.js",
"description": "Soopy addons v2",
"name": "SoopyV2",
- "version": "2.1.29",
- "versionId": 156,
+ "version": "2.1.30",
+ "versionId": 157,
"requires": [
"soopyApis",
"soopyAddonsData",