aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorObsidian <108832807+Obsidianninja11@users.noreply.github.com>2024-04-10 00:51:20 -0800
committerGitHub <noreply@github.com>2024-04-10 10:51:20 +0200
commitf541212f286940b7260df85ab419a02228daf1ea (patch)
treeaba4f1dac12cd0b1993800dc05cecda4d42277a5 /src/main/java/at/hannibal2/skyhanni/config/features
parent8e4a4a156b659fcbb26dfec8ff619777771d0c59 (diff)
downloadskyhanni-f541212f286940b7260df85ab419a02228daf1ea.tar.gz
skyhanni-f541212f286940b7260df85ab419a02228daf1ea.tar.bz2
skyhanni-f541212f286940b7260df85ab419a02228daf1ea.zip
Improvement: Better Visitor Reward Warning (#1417)
* Price per copper based visitor blocking + improvements * Fixed merge conflicts + minor bug * Fixed merge conflicts + Fixed Accept offer title not rendering in tooltip * Messed something up during merge conflicts. fixed now * fixing merge conflicts * Code cleanup + more features + fixes * Code cleanup + improvements * optimized imports * Cache tooltip * Use GuiContainerEvent.SlotClickEvent * Lots of code cleanup + merge conflicts + fixes * fix * fix merge conflicts --------- Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/RewardWarningConfig.java52
1 files changed, 48 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/RewardWarningConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/RewardWarningConfig.java
index 230085347..2ea448148 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/RewardWarningConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/visitor/RewardWarningConfig.java
@@ -6,6 +6,7 @@ import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
import org.lwjgl.input.Keyboard;
@@ -28,15 +29,15 @@ public class RewardWarningConfig {
public boolean showOverName = true;
@Expose
- @ConfigOption(name = "Prevent Refusing", desc = "Prevent the refusal of a visitor with reward.")
+ @ConfigOption(name = "Block Refusing Reward", desc = "Prevent the refusal of a visitor with reward.")
@ConfigEditorBoolean
@FeatureToggle
public boolean preventRefusing = true;
@Expose
- @ConfigOption(name = "Bypass Key", desc = "Hold that key to bypass the Prevent Refusing feature.")
- @ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
- public int bypassKey = Keyboard.KEY_NONE;
+ @ConfigOption(name = "Bypass Key", desc = "Hold this key to bypass the Prevent Refusing feature.")
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_LCONTROL)
+ public int bypassKey = Keyboard.KEY_LCONTROL;
@Expose
@@ -55,4 +56,47 @@ public class RewardWarningConfig {
VisitorReward.REPLENISH
));
+ @Expose
+ @ConfigOption(
+ name = "Coins Per Copper",
+ desc = "The price to use for the below options.\n" +
+ "Requires one of the below options to be on."
+ )
+ @ConfigEditorSlider(minValue = 1, maxValue = 50_000, minStep = 250)
+ public int coinsPerCopperPrice = 6_000;
+
+ @Expose
+ @ConfigOption(name = "Block Refusing Copper", desc = "Prevent refusing a visitor with a coins per copper lower than the set value.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean preventRefusingCopper = false;
+
+ @Expose
+ @ConfigOption(name = "Block Accepting Copper", desc = "Prevent accepting a visitor with a coins per copper higher than the set value.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean preventAcceptingCopper = false;
+
+ @Expose
+ @ConfigOption(name = "Block Refusing New Visitors", desc = "Prevents refusing a visitor you've never completed an offer with.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean preventRefusingNew = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Opacity",
+ desc = "How strong should the offer buttons be grayed out when blocked?"
+ )
+ @ConfigEditorSlider(
+ minValue = 0,
+ maxValue = 255,
+ minStep = 5
+ )
+ public int opacity = 180;
+
+ @Expose
+ @ConfigOption(name = "Outline", desc = "Adds a red/green line around the best offer button.")
+ @ConfigEditorBoolean
+ public boolean optionOutline = true;
}