aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/categoryManager.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/soopyGui/categoryManager.js')
-rw-r--r--features/soopyGui/categoryManager.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/features/soopyGui/categoryManager.js b/features/soopyGui/categoryManager.js
deleted file mode 100644
index 6709ff4..0000000
--- a/features/soopyGui/categoryManager.js
+++ /dev/null
@@ -1,37 +0,0 @@
-class CategoryManager {
- constructor(){
- this.categorys = {}
-
- this.arr = []
- }
-
- addCategory(category){
- // this.pages = this.pages.filter(a=>a.name!==category.name)
-
- this.categorys[category.name] = (category)
- this.update()
- }
-
- deleteCategory(category){
- delete this.categorys[category.name]
- this.update()
- }
-
- update(){
-
- this.arr = Object.values(this.categorys).sort((a, b)=>{
- return b.priority - a.priority
- })
- }
-}
-
-
-if(!global.soopyv2CategoryManager){
- global.soopyv2CategoryManager = new CategoryManager()
-
- register("gameUnload", ()=>{
- global.soopyv2CategoryManager = undefined
- })
-}
-
-export default global.soopyv2CategoryManager \ No newline at end of file