aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui
diff options
context:
space:
mode:
Diffstat (limited to 'features/soopyGui')
-rw-r--r--features/soopyGui/GuiPage.js2
-rw-r--r--features/soopyGui/index.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/features/soopyGui/GuiPage.js b/features/soopyGui/GuiPage.js
index 583eab9..1ae10fe 100644
--- a/features/soopyGui/GuiPage.js
+++ b/features/soopyGui/GuiPage.js
@@ -7,7 +7,7 @@ class GuiPage{
this.soopyGui = undefined;
new Thread(()=>{
- while(global.soopyv2featuremanagerthing.features === undefined || global.soopyv2featuremanagerthing.features["soopyGui"] === undefined){
+ while(global.soopyv2featuremanagerthing === undefined || global.soopyv2featuremanagerthing.features === undefined || global.soopyv2featuremanagerthing.features["soopyGui"] === undefined){
Thread.sleep(100)
}
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js
index 662221d..4917db6 100644
--- a/features/soopyGui/index.js
+++ b/features/soopyGui/index.js
@@ -1,7 +1,6 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
-import * as GuiManager from "../../../guimanager/index.js"
import SoopyGuiElement from "../../../guimanager/GuiElement/SoopyGuiElement";
import SoopyTextElement from "../../../guimanager/GuiElement/SoopyTextElement";
import SoopyBoxElement from "../../../guimanager/GuiElement/SoopyBoxElement";
@@ -9,6 +8,7 @@ import TextWithArrow from "../../../guimanager/GuiElement/TextWithArrow";
import ButtonWithArrow from "../../../guimanager/GuiElement/ButtonWithArrow";
import SoopyMouseClickEvent from "../../../guimanager/EventListener/SoopyMouseClickEvent";
import SoopyOpenGuiEvent from "../../../guimanager/EventListener/SoopyOpenGuiEvent";
+import SoopyGui2 from "../../../guimanager/SoopyGui";
class SoopyGui extends Feature {
@@ -30,7 +30,7 @@ class SoopyGui extends Feature {
}
onEnable(){
- this.gui = new GuiManager.SoopyGui()
+ this.gui = new SoopyGui2()
// this.gui.isDebugEnabled = true