From b33a75b2eba88c60280fcd441a5dd974cf763ab4 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 6 Nov 2021 18:15:47 +0800 Subject: Added update notif, cosmetics, and unfinished museum overlay --- features/soopyGui/index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'features/soopyGui/index.js') 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() -- cgit