From 98b1551b871117e5517c566728b15b84845b8cbe Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 6 Aug 2022 16:08:29 +0800 Subject: + fix spirit leap overlay buttons not working (oops) + hopefully fix boxes not correct color sometimes --- features/dungeonMap/index.js | 6 +++--- features/friendsGUI/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'features') diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index 7a64980..9af147b 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -985,9 +985,6 @@ class SpiritLeapOverlay { this.soopyGui = new SoopyGui() - this.buttonsContainer = new SoopyGuiElement().setLocation(0.2, 0.2, 0.6, 0.3) - this.soopyGui.element.addChild(this.buttonsContainer) - let renderThing = new soopyGuiMapRendererThing(this).setLocation(0, 0, 1, 1) this.soopyGui.element.addChild(renderThing) @@ -997,6 +994,9 @@ class SpiritLeapOverlay { } })) + this.buttonsContainer = new SoopyGuiElement().setLocation(0.2, 0.2, 0.6, 0.3) + this.soopyGui.element.addChild(this.buttonsContainer) + this.items = {} this.players = {} diff --git a/features/friendsGUI/index.js b/features/friendsGUI/index.js index 718f514..8422081 100644 --- a/features/friendsGUI/index.js +++ b/features/friendsGUI/index.js @@ -132,7 +132,7 @@ class SettingPage extends GuiPage { elements.push(new SoopyTextElement().setText("ยง0" + commands[i]).setLocation(0.2, 0.4 + i * 0.05, 0.6, 0.05)) this.runCommand(commands[i], () => { - progressBar.setProgress(i2 / (commands.length - 1), 1000) + progressBar.setProgress((i2 + 1) / (commands.length), 1000) let e = elements.shift() this.sidebarCustomPage.removeChild(e) -- cgit