aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-23 13:00:01 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-23 13:00:01 +0200
commit51616771a0ebb98b7b63703562ad334ac418d1a6 (patch)
tree34bbc0bb1bc55840b482b88aa1b1953275d5354a /src/main/java/at/hannibal2/skyhanni/config/features
parent57b351f66232fd7323234ab3e407729667c40143 (diff)
downloadskyhanni-51616771a0ebb98b7b63703562ad334ac418d1a6.tar.gz
skyhanni-51616771a0ebb98b7b63703562ad334ac418d1a6.tar.bz2
skyhanni-51616771a0ebb98b7b63703562ad334ac418d1a6.zip
added display to show last time a minion was cleared
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Minions.java35
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Misc.java2
3 files changed, 38 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java b/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java
index 2c2472917..eef96aa56 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java
@@ -2,6 +2,9 @@ package at.hannibal2.skyhanni.config.features;
import com.google.gson.annotations.Expose;
+import java.util.HashMap;
+import java.util.Map;
+
public class Hidden {
@Expose
@@ -9,4 +12,7 @@ public class Hidden {
@Expose
public String currentPet = "";
+
+ @Expose
+ public Map<String, Long> minions = new HashMap<>();
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Minions.java b/src/main/java/at/hannibal2/skyhanni/config/features/Minions.java
index d851c7436..7ce23a260 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Minions.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Minions.java
@@ -1,16 +1,18 @@
package at.hannibal2.skyhanni.config.features;
-import at.hannibal2.skyhanni.config.gui.core.config.annotations.ConfigEditorBoolean;
-import at.hannibal2.skyhanni.config.gui.core.config.annotations.ConfigEditorColour;
-import at.hannibal2.skyhanni.config.gui.core.config.annotations.ConfigEditorSlider;
-import at.hannibal2.skyhanni.config.gui.core.config.annotations.ConfigOption;
+import at.hannibal2.skyhanni.config.gui.core.config.annotations.*;
import com.google.gson.annotations.Expose;
public class Minions {
+ @ConfigOption(name = "Last Clicked", desc = "")
+ @ConfigEditorAccordion(id = 0)
+ public boolean lastMinion = false;
+
@Expose
@ConfigOption(name = "Last Minion Display", desc = "Show the last opened minion on your island")
@ConfigEditorBoolean
+ @ConfigAccordionId(id = 0)
public boolean lastOpenedMinionDisplay = false;
@Expose
@@ -19,6 +21,7 @@ public class Minions {
desc = "The colour in which the last minion should be displayed"
)
@ConfigEditorColour
+ @ConfigAccordionId(id = 0)
public String lastOpenedMinionColor = "0:245:85:255:85";
@Expose
@@ -31,5 +34,29 @@ public class Minions {
maxValue = 120,
minStep = 1
)
+ @ConfigAccordionId(id = 0)
public int lastOpenedMinionTime = 20;
+
+ @ConfigOption(name = "Emptied Time", desc = "")
+ @ConfigEditorAccordion(id = 1)
+ public boolean emptiedTime = false;
+
+ @Expose
+ @ConfigOption(name = "Emptied Time Display", desc = "Show the time when the hopper in the minion was last empties")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 1)
+ public boolean emptiedTimeDisplay = false;
+
+ @Expose
+ @ConfigOption(
+ name = "Emptied Time Distance",
+ desc = "At what distance is this text displayed"
+ )
+ @ConfigEditorSlider(
+ minValue = 3,
+ maxValue = 30,
+ minStep = 1
+ )
+ @ConfigAccordionId(id = 1)
+ public int emptiedTimeDistance = 10;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java
index 50e99729c..f04d6db26 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java
@@ -44,7 +44,7 @@ public class Misc {
public boolean realTime = false;
@Expose
- @ConfigOption(name = "Ashfang Freeze Position", desc = "")
+ @ConfigOption(name = "Real Time Position", desc = "")
@ConfigEditorButton(runnableId = "realTime", buttonText = "Edit")
public Position realTimePos = new Position(10, 10, false, true);
} \ No newline at end of file