diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-10 21:24:10 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-10 21:24:10 +0800 |
commit | f8a0c81f37ff4f726ca18408c3d5772f0794d749 (patch) | |
tree | 8bb91f1177b5a7a4f85984dc47ff1a6a6ce8b59b /features/settings/index.js | |
parent | 32367f35133cc3f4583d2bf42ea2e5777c3ac46c (diff) | |
download | SoopyV2-f8a0c81f37ff4f726ca18408c3d5772f0794d749.tar.gz SoopyV2-f8a0c81f37ff4f726ca18408c3d5772f0794d749.tar.bz2 SoopyV2-f8a0c81f37ff4f726ca18408c3d5772f0794d749.zip |
fix enchant thing + tall gui + meta
Diffstat (limited to 'features/settings/index.js')
-rw-r--r-- | features/settings/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/features/settings/index.js b/features/settings/index.js index 6943537..92fbeec 100644 --- a/features/settings/index.js +++ b/features/settings/index.js @@ -132,7 +132,7 @@ class SettingPage extends GuiPage { let settingsCategoryTitle = new SoopyTextElement().setText("ยง0Settings").setMaxTextScale(3).setLocation(0.1, 0.05, 0.5, 0.1) this.pages[0].addChild(settingsCategoryTitle) - this.settingsCategorySearch = new TextBox().setPlaceholder("Search...").setLocation(0.6, 0.05, 0.3, 0.1) + this.settingsCategorySearch = new TextBox().setPlaceholder("Search...").setLocation(0.6, 0.05 + 0.0125, 0.3, 0.075) this.pages[0].addChild(this.settingsCategorySearch) this.settingsCategorySearch.text.addEvent(new SoopyContentChangeEvent().setHandler(() => { @@ -208,12 +208,12 @@ class SettingPage extends GuiPage { } if (isHidden) return - let category = new ButtonWithArrowAndDescription().setText("&0" + meta.name).setDesc("&0" + meta.description).setLocation(0, height, 1, 0.2) + let category = new ButtonWithArrowAndDescription().setText("&0" + meta.name).setDesc("&0" + meta.description).setLocation(0, height, 1, 0.15) category.addEvent(new SoopyMouseClickEvent().setHandler(() => { this.clickedOpenCategory(f) })) this.settingsCategoryArea.addChild(category) - height += 0.225 + height += 0.175 if (search.length > 0) { @@ -246,7 +246,7 @@ class SettingPage extends GuiPage { let height = 0 if (meta.isTogglable) { - let toggle = new BoxWithToggleAndDescription().setLocation(0, height, 1, 0.2).setText("&0Main toggle").setDesc("&0This is the main toggle for the whole category") + let toggle = new BoxWithToggleAndDescription().setLocation(0, height, 1, 0.15).setText("&0Main toggle").setDesc("&0This is the main toggle for the whole category") this.settingsArea.addChild(toggle) toggle.toggle.setValue(this.FeatureManager.isFeatureLoaded(category), 0) @@ -282,7 +282,7 @@ class SettingPage extends GuiPage { //only show if feature issnt loaded - let textBox = new SoopyBoxElement().setLocation(0, height, 1, 0.2) + let textBox = new SoopyBoxElement().setLocation(0, height, 1, 0.15) .addChild(new SoopyTextElement().setText("&0Feature not loaded").setLocation(0, 0, 1, 0.5)) .addChild(new SoopyTextElement().setText("&0Load feature to access settings").setLocation(0, 0.5, 1, 0.5)) this.settingsArea.addChild(textBox) |