aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/soopyGui/index.js')
-rw-r--r--features/soopyGui/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js
index cb5b241..662221d 100644
--- a/features/soopyGui/index.js
+++ b/features/soopyGui/index.js
@@ -35,6 +35,7 @@ class SoopyGui extends Feature {
// this.gui.isDebugEnabled = true
this.registerCommand("soopyv2", this.openCommand)
+ this.registerCommand("soopy", this.openCommand)
this.mainWindowElement = new SoopyBoxElement().setLocation(0.25, 0.2, 0.5, 0.6)
@@ -92,6 +93,13 @@ class SoopyGui extends Feature {
this.updateButtons()
}
+ deleteCategory(category){
+ this.pages = this.pages.filter(a=>a!==category)
+ this.sortPages()
+
+ this.updateButtons()
+ }
+
updateButtons(){
if(!this.buttonListElm) return;