From 46bc7830c80ccb068a4cef62458dc5751dac07d3 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:15:06 +0200 Subject: Feature: Editable Xp Bar (#1944) Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/config/features/gui/GUIConfig.java | 5 ++++ .../skyhanni/config/features/gui/XPBarConfig.java | 31 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/gui/XPBarConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/GUIConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/GUIConfig.java index 1c3f92b47..6355857f5 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/GUIConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/GUIConfig.java @@ -66,6 +66,11 @@ public class GUIConfig { @Accordion public HotbarConfig hotbar = new HotbarConfig(); + @Expose + @ConfigOption(name = "Xp Bar", desc = "Settings for adjusting the xp bar") + @Accordion + public XPBarConfig xpBar = new XPBarConfig(); + @Expose @ConfigOption(name = "Marked Players", desc = "Players that got marked with §e/shmarkplayer§7.") @Accordion diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/XPBarConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/XPBarConfig.java new file mode 100644 index 000000000..bd2f2cac9 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/XPBarConfig.java @@ -0,0 +1,31 @@ +package at.hannibal2.skyhanni.config.features.gui; + +import at.hannibal2.skyhanni.config.FeatureToggle; +import at.hannibal2.skyhanni.config.core.config.Position; +import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText; +import io.github.notenoughupdates.moulconfig.annotations.ConfigLink; +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; + +public class XPBarConfig { + + @Expose + @ConfigOption(name = "Enabled", desc = "Allows for moving and scaling the Xp bar in the SkyHanni GUI Editor.") + @ConfigEditorBoolean + @FeatureToggle + public boolean enabled = false; + + @ConfigOption(name = "§cNotice", desc = "This option will be §c§lincompatible §r§7with mods that change the xp bar. Eg: §eApec§7.") + @ConfigEditorInfoText + public String notice = ""; + + @Expose + @ConfigLink(owner = XPBarConfig.class, field = "enabled") + public Position position = new Position(20, 20); + + @Expose + @ConfigOption(name = "Show Outside Skyblock", desc = "Shows the XP bar outside of SkyBlock.") + @ConfigEditorBoolean + public boolean showOutsideSkyblock = false; +} -- cgit