diff options
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 |