diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-05 01:33:18 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-05 01:33:18 +0800 |
commit | ffe1f69f3ca22579241925f962e3213a8fd26244 (patch) | |
tree | 081267f8f86b708cbcab88ad6aaf225283bc54da /features/senitherGui/index.js | |
parent | 6d57f1473fb291f9a8351e2db596960cb73c9e05 (diff) | |
download | SoopyV2-ffe1f69f3ca22579241925f962e3213a8fd26244.tar.gz SoopyV2-ffe1f69f3ca22579241925f962e3213a8fd26244.tar.bz2 SoopyV2-ffe1f69f3ca22579241925f962e3213a8fd26244.zip |
museum gui and senither gui optimisations
Diffstat (limited to 'features/senitherGui/index.js')
-rw-r--r-- | features/senitherGui/index.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/features/senitherGui/index.js b/features/senitherGui/index.js index ab80d0d..50bda18 100644 --- a/features/senitherGui/index.js +++ b/features/senitherGui/index.js @@ -16,6 +16,7 @@ import SoopyHoverChangeEvent from "../../../guimanager/EventListener/SoopyHoverC import Dropdown from "../../../guimanager/GuiElement/Dropdown"; import SoopyMarkdownElement from "../../../guimanager/GuiElement/SoopyMarkdownElement" import ButtonWithArrow from "../../../guimanager/GuiElement/ButtonWithArrow"; +import SoopyRenderUpdateEvent from "../../../guimanager/EventListener/SoopyRenderUpdateEvent"; class SenitherGui extends Feature { constructor() { @@ -52,9 +53,8 @@ class SettingPage extends GuiPage { this.pages = [this.newPage(), this.newPage()] - this.pages[0].addEvent(new SoopyRenderEvent().setHandler(()=>{this.lastRender = Date.now()})) - - + this.pages[0].addEvent(new SoopyRenderUpdateEvent().setHandler(()=>{this.lastRender = Date.now()})) + let senitherTitle = new SoopyTextElement().setText("ยง0Senither Leaderboard").setMaxTextScale(3).setLocation(0.1, 0.05, 0.8, 0.1) this.pages[0].addChild(senitherTitle) @@ -433,7 +433,7 @@ class SettingPage extends GuiPage { this.loadFirstPageInformation() }).start() - let sidebar = new SoopyGuiElement().setLocation(0.1,0.1,0.8,0.8).setScrollable(true) + let sidebar = new SoopyGuiElement().setLocation(0.1,0.1,0.8,0.8).setScrollable(true).enableFrameBuffer() this.openSidebarPage(sidebar) let markdown = new SoopyMarkdownElement().setText("# NOTE: \nAll credit for the idea, design of this gui, and loading of data goes to Senither who made the original leaderboard (https://hypixel-leaderboard.senither.com/)\n\nThis is just a recode of that to allow for checking the leaderboard from in-game") sidebar.addChild(markdown) @@ -444,6 +444,8 @@ class SettingPage extends GuiPage { sidebar.setScrollable(true) + + sidebar.dirtyFrameBuffer(1000) } } |