From f8a0c81f37ff4f726ca18408c3d5772f0794d749 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 10 Aug 2022 21:24:10 +0800 Subject: fix enchant thing + tall gui + meta --- features/friendsGUI/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'features/friendsGUI') diff --git a/features/friendsGUI/index.js b/features/friendsGUI/index.js index 8422081..bae266b 100644 --- a/features/friendsGUI/index.js +++ b/features/friendsGUI/index.js @@ -74,7 +74,7 @@ class SettingPage extends GuiPage { this.sidebarMainPage = new SoopyGuiElement().setLocation(0, 0, 1, 1) - this.heightPerFriend = 0.2 + this.heightPerFriend = 0.15 this.loadingElement = new BoxWithLoading().setLocation(0, 0, 1, 0.175) this.lastLoadedPage = 0 this.maxLoadedPage = 0 @@ -129,7 +129,7 @@ class SettingPage extends GuiPage { for (let i = 0; i < commands.length; i++) { let i2 = i - elements.push(new SoopyTextElement().setText("§0" + commands[i]).setLocation(0.2, 0.4 + i * 0.05, 0.6, 0.05)) + elements.push(new SoopyTextElement().setText("§0" + commands[i]).setLocation(0.2, 0.4 + i * 0.025, 0.6, 0.025)) this.runCommand(commands[i], () => { progressBar.setProgress((i2 + 1) / (commands.length), 1000) @@ -138,7 +138,7 @@ class SettingPage extends GuiPage { this.sidebarCustomPage.removeChild(e) elements.forEach((e, i) => { - e.location.location.y.set(0.4 + i * 0.05, 500) + e.location.location.y.set(0.4 + i * 0.025, 500) }) if (i2 === commands.length - 1) { @@ -195,7 +195,7 @@ class SettingPage extends GuiPage { } else { if (!this.allFriendsLoaded) { this.sidebarMainPage.addChild( - new ButtonWithArrow().setText("§0Load all friends").setLocation(0.1, 0.1, 0.8, 0.2) + new ButtonWithArrow().setText("§0Load all friends").setLocation(0.1, 0.1, 0.8, 0.15) .addEvent(new SoopyMouseClickEvent().setHandler(() => { this.loadAllFriends() @@ -203,7 +203,7 @@ class SettingPage extends GuiPage { }))) } else { this.sidebarMainPage.addChild( - new ButtonWithArrow().setText("§0Select all").setLocation(0.1, 0.1, 0.8, 0.2) + new ButtonWithArrow().setText("§0Select all").setLocation(0.1, 0.1, 0.8, 0.15) .addEvent(new SoopyMouseClickEvent().setHandler(() => { Object.keys(this.loadedFriends).forEach((ign, i) => { -- cgit