aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-10 17:56:14 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-10 17:56:14 +0800
commit61fbb9f151a9d51da6c61efd9814f74b78ef8d46 (patch)
tree607b83b4bfbd24c85bd1129f61246767456d88cc /features/globalSettings/index.js
parentd3bc05203859151727f4ba21c9103dbfc75fc121 (diff)
parentd2cb0e2c1ce2d2bd5b02dc6f74c96a5b43891f86 (diff)
downloadSoopyV2-61fbb9f151a9d51da6c61efd9814f74b78ef8d46.tar.gz
SoopyV2-61fbb9f151a9d51da6c61efd9814f74b78ef8d46.tar.bz2
SoopyV2-61fbb9f151a9d51da6c61efd9814f74b78ef8d46.zip
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/globalSettings/index.js')
-rw-r--r--features/globalSettings/index.js33
1 files changed, 32 insertions, 1 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 115b790..8877157 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -52,8 +52,39 @@ class GlobalSettings extends Feature {
this.hideFallingBlocks = new ToggleSetting("Hide falling blocks", "NOTE: This setting is a bit laggy", false, "hide_falling_sand", this)
this.twitchCommands = new ToggleSetting("Ingame twitch bot commands", "Allows u to use twitch bot commands ingame (eg -sa)", true, "twitch_commands_ingame", this)
this.itemWorth = new ToggleSetting("(Approximate) Item worth in lore", "Accounts for stuff like enchants/recombs ect", false, "item_worth", this)
+<<<<<<< HEAD
this.showHecatomb = new ToggleSetting("Show hecatomb enchant info in lore", "", true, "show_hecatomb", this)
this.showChampion = new ToggleSetting("Show champion enchant info in lore", "", true, "show_champion", this)
+=======
+ this.oldMasterStars = new ToggleSetting("Use Old Master Stars", "replaces the ugly new master star on item name with the old fashion one", false, "old_master_star", this)
+
+ this.registerEvent('itemTooltip', (lore, i, e) => {
+ if (!this.oldMasterStars.getValue()) return
+ if (!i) return
+ let itemName = i.getName()
+ let itemNameReformat = itemName.removeFormatting()
+ if (itemNameReformat.endsWith("➊")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➊", "&c✪&6✪✪✪✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➋")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➋", "&c✪✪&6✪✪✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➌")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➌", "&c✪✪✪&6✪✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➍")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➍", "&c✪✪✪✪&6✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➎")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➎", "&c✪✪✪✪✪"))
+ return
+ }
+ })
+>>>>>>> d2cb0e2c1ce2d2bd5b02dc6f74c96a5b43891f86
this.firstPageSettings = [this.darkTheme]
@@ -632,4 +663,4 @@ class FirstLoadingPage extends GuiPage {
module.exports = {
class: new GlobalSettings()
-} \ No newline at end of file
+}