From 4663ebc4c9d5ef6ed890eced49d90dd8e3589fb5 Mon Sep 17 00:00:00 2001 From: minhperry <46137516+minhperry@users.noreply.github.com> Date: Sat, 7 Sep 2024 19:59:24 +0200 Subject: Feature: Accessory MP as stack size (#2243) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../config/features/inventory/InventoryConfig.java | 5 +++++ .../config/features/inventory/MagicalPowerConfig.java | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/inventory/MagicalPowerConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java index f66f784c2..6c43591a5 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java @@ -118,6 +118,11 @@ public class InventoryConfig { @Accordion public PageScrollingConfig pageScrolling = new PageScrollingConfig(); + @Expose + @ConfigOption(name = "Magical Power Display", desc = "") + @Accordion + public MagicalPowerConfig magicalPower = new MagicalPowerConfig(); + @Expose @ConfigOption(name = "Item Number", desc = "Showing the item number as a stack size for these items.") @ConfigEditorDraggableList diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/MagicalPowerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/MagicalPowerConfig.java new file mode 100644 index 000000000..ef6b76da3 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/MagicalPowerConfig.java @@ -0,0 +1,19 @@ +package at.hannibal2.skyhanni.config.features.inventory; + +import at.hannibal2.skyhanni.config.FeatureToggle; +import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; + +public class MagicalPowerConfig { + @Expose + @ConfigOption(name = "Magical Power Display", desc = "Show Magical Power as stack size inside Accessory Bag and Auction House.") + @ConfigEditorBoolean + @FeatureToggle + public boolean enabled = false; + + @Expose + @ConfigOption(name = "Colored", desc = "Whether to make the numbers colored.") + @ConfigEditorBoolean + public boolean colored = false; +} -- cgit