diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-09 23:36:19 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-09 23:36:19 +0200 |
commit | ceceba488ff2608cada8eb58a2f1cea65c55928c (patch) | |
tree | 52ec305716dec04073d9614fef98a7d92f85acb7 /src | |
parent | b4bd11579f42cd835c52d0d9e93c045137fec286 (diff) | |
download | skyhanni-ceceba488ff2608cada8eb58a2f1cea65c55928c.tar.gz skyhanni-ceceba488ff2608cada8eb58a2f1cea65c55928c.tar.bz2 skyhanni-ceceba488ff2608cada8eb58a2f1cea65c55928c.zip |
Using a custom slayer profit tracker gui element
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/Slayer.java | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Slayer.java b/src/main/java/at/hannibal2/skyhanni/config/features/Slayer.java index e243fcc81..a5dad699c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Slayer.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Slayer.java @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.config.features; +import at.hannibal2.skyhanni.config.core.config.Position; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.*; @@ -95,6 +96,9 @@ public class Slayer { public boolean enabled = true; @Expose + public Position pos = new Position(20, 20, false, true); + + @Expose @ConfigOption(name = "Price in Chat", desc = "Show an extra chat message when you pick up an item. " + "(This contains name, amount and price)") @ConfigEditorBoolean diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt index 33f9f3170..e4ca7ca28 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt @@ -171,7 +171,8 @@ class SlayerItemProfitTracker { fun onRenderOverlay(event: GuiRenderEvent) { if (!isEnabled()) return if (!SlayerAPI.isInSlayerArea) return - SkyHanniMod.feature.dev.debugPos.renderStringsAndItems(display, posLabel = "Slayer Item Profit Tracker") + + config.pos.renderStringsAndItems(display, posLabel = "Slayer Item Profit Tracker") } fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled |