diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-22 12:35:39 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-22 12:35:39 +0800 |
commit | a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf (patch) | |
tree | 41139270236804382713b4e451c609c9751c7ce2 /features/eventsGUI | |
parent | dd72504a0581380ad44fd1988f943abd01ca25c2 (diff) | |
download | SoopyV2-a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf.tar.gz SoopyV2-a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf.tar.bz2 SoopyV2-a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf.zip |
changes
Diffstat (limited to 'features/eventsGUI')
-rw-r--r-- | features/eventsGUI/index.js | 51 | ||||
-rw-r--r-- | features/eventsGUI/metadata.json | 8 |
2 files changed, 59 insertions, 0 deletions
diff --git a/features/eventsGUI/index.js b/features/eventsGUI/index.js new file mode 100644 index 0000000..c828f85 --- /dev/null +++ b/features/eventsGUI/index.js @@ -0,0 +1,51 @@ +/// <reference types="../../../CTAutocomplete" /> +/// <reference lib="es2015" /> +import BoxWithLoading from "../../../guimanager/GuiElement/BoxWithLoading"; +import Feature from "../../featureClass/class"; +import GuiPage from "../soopyGui/GuiPage"; + +class EventsGui extends Feature { + constructor() { + super() + } + + onEnable() { + this.initVariables() + + // this.GuiPage = new EventsPage() //TODO: SOON(tm) + + // this.registerChat("&9&m-----------------------------------------------------&r&9${*}&r&9 ${*} &6Friends (Page ${pagenum} of ${maxpages})${friendslist}&r&9&m-----------------------------------------------------&r", (...args) => { this.GuiPage.friendListMessageEvent.call(this.GuiPage, ...args) }) + // this.registerStep(true, 5, () => { this.GuiPage.regenGuiElements.call(this.GuiPage) }) + } + + initVariables() { + this.GuiPage = undefined + } + + onDisable() { + this.initVariables() + } +} + + +class EventsPage extends GuiPage { + constructor() { + super(8) + + this.name = "Guild Events" + + this.pages = [this.newPage()] + + this.pages[0].addChild(new BoxWithLoading().setLocation(0.3, 0.3, 0.4, 0.4)) + + this.finaliseLoading() + } + + onOpen() { + + } +} + +module.exports = { + class: new EventsGui() +}
\ No newline at end of file diff --git a/features/eventsGUI/metadata.json b/features/eventsGUI/metadata.json new file mode 100644 index 0000000..b7b1f6f --- /dev/null +++ b/features/eventsGUI/metadata.json @@ -0,0 +1,8 @@ +{ + "name": "Friends gui", + "description": "Gui for friends", + "isHidden": true, + "isTogglable": false, + "defaultEnabled": true, + "sortA": 0 +}
\ No newline at end of file |