aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-01-16 19:02:43 +0100
committerGitHub <noreply@github.com>2024-01-16 19:02:43 +0100
commitec1aefdaae5490d264d4d932394896f861981045 (patch)
tree0efa87285ee1488a4de0dc7423e6115f0c0eb249 /src/main/java/at/hannibal2/skyhanni/config/features
parent69cfa25c720884f44d6ed99e24d2eb4176f09e37 (diff)
downloadskyhanni-ec1aefdaae5490d264d4d932394896f861981045.tar.gz
skyhanni-ec1aefdaae5490d264d4d932394896f861981045.tar.bz2
skyhanni-ec1aefdaae5490d264d4d932394896f861981045.zip
Feature: Pet Item Display (#850)
Show Pet Items Xp Share core and Tier Boost as small icon next to the pet in an inventory. #850
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetConfig.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetConfig.java
index 265c26a29..cf5cda654 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetConfig.java
@@ -5,7 +5,11 @@ import at.hannibal2.skyhanni.config.core.config.Position;
import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.Accordion;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorDraggableList;
import io.github.moulberry.moulconfig.annotations.ConfigOption;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
public class PetConfig {
@Expose
@@ -28,4 +32,32 @@ public class PetConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean hideAutopet = false;
+
+ @Expose
+ @ConfigOption(name = "Show Pet Item", desc = "Specifies the pet items for which icons should be displayed next to pets.")
+ @ConfigEditorDraggableList
+ public List<PetItemsDisplay> petItemDisplay = new ArrayList<>(Arrays.asList(
+ PetItemsDisplay.XP_SHARE,
+ PetItemsDisplay.TIER_BOOST
+ ));
+
+ public enum PetItemsDisplay {
+ XP_SHARE("§5⚘", "Exp Share", "PET_ITEM_EXP_SHARE"),
+ TIER_BOOST("§c●", "Tier Boost", "PET_ITEM_TIER_BOOST"),
+ ;
+ private final String str;
+ public final String icon;
+ public final String item;
+
+ PetItemsDisplay(String icon, String name, String item) {
+ this.icon = icon;
+ this.item = item;
+ this.str = icon + " §ffor " + name;
+ }
+
+ @Override
+ public String toString() {
+ return str;
+ }
+ }
}