aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-06 18:15:47 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-06 18:15:47 +0800
commitb33a75b2eba88c60280fcd441a5dd974cf763ab4 (patch)
tree53bd51697f69596fdcc388cdc71cc91b745f8f67 /features/soopyGui/index.js
parentbae481562a9186cafebdde2be9ac53b93cb98885 (diff)
downloadSoopyV2-b33a75b2eba88c60280fcd441a5dd974cf763ab4.tar.gz
SoopyV2-b33a75b2eba88c60280fcd441a5dd974cf763ab4.tar.bz2
SoopyV2-b33a75b2eba88c60280fcd441a5dd974cf763ab4.zip
Added update notif, cosmetics, and unfinished museum overlay
Diffstat (limited to 'features/soopyGui/index.js')
-rw-r--r--features/soopyGui/index.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js
index 428bbf1..7248e12 100644
--- a/features/soopyGui/index.js
+++ b/features/soopyGui/index.js
@@ -32,7 +32,7 @@ class SoopyGui extends Feature {
// this.gui.isDebugEnabled = true
- this.gui.setOpenCommand("soopyv2")
+ this.registerCommand("soopyv2", this.openCommand)
this.mainWindowElement = new SoopyBoxElement().setLocation(0.25, 0.2, 0.5, 0.6)
@@ -70,6 +70,18 @@ class SoopyGui extends Feature {
this.updateButtons()
}
+ openCommand(page){
+ this.gui.open()
+
+ if(page){
+ this.pages.forEach(p=>{
+ if(p.name.toLowerCase() === page.toLowerCase()){
+ this.clickedOpen(p)
+ }
+ })
+ }
+ }
+
addCategory(category){
this.pages.push(category)
this.sortPages()