aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-08 00:06:16 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-08 00:06:16 +0100
commitf1930397ccfb9d953bbd93ace46508c487dd6579 (patch)
treec7fd86a725443d7ea5ed898414ff391a1d66d8fa /src/main/java/at/hannibal2/skyhanni/config
parent973c70eb98bfb811ebce565b71d388eb948aa327 (diff)
downloadskyhanni-f1930397ccfb9d953bbd93ace46508c487dd6579.tar.gz
skyhanni-f1930397ccfb9d953bbd93ace46508c487dd6579.tar.bz2
skyhanni-f1930397ccfb9d953bbd93ace46508c487dd6579.zip
Added option to change the Blaze Slayer Dagger GUI positons.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java16
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java6
2 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java b/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java
index 329bcd028..d8b2a7a99 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java
@@ -31,6 +31,8 @@ public class Position {
private int y;
@Expose
private float scale = 1F;
+ @Expose
+ private boolean center = false;
@Expose
private boolean centerX;
@@ -52,6 +54,15 @@ public class Position {
this.scale = scale;
}
+ public Position(int x, int y, float scale, boolean center) {
+ this.x = x;
+ this.y = y;
+ this.centerX = false;
+ this.centerY = true;
+ this.scale = scale;
+ this.center = center;
+ }
+
public Position(int x, int y, boolean centerX, boolean centerY) {
this.x = x;
this.y = y;
@@ -65,6 +76,7 @@ public class Position {
this.centerX = other.centerX;
this.centerY = other.centerY;
this.scale = other.getScale();
+ this.center = other.isCenter();
}
public float getEffectiveScale() {
@@ -76,6 +88,10 @@ public class Position {
return scale;
}
+ public boolean isCenter() {
+ return center;
+ }
+
public void setScale(float newScale) {
scale = Math.max(Math.min(10F, newScale), 0.1f);
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java
index 6ca5ec984..1c0003eab 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java
@@ -121,6 +121,12 @@ public class SlayerConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean hideDaggerWarning = false;
+
+ @Expose
+ public Position positionTop = new Position(-475, 173, 4.4f, true);
+
+ @Expose
+ public Position positionBottom = new Position(-475, 230, 3.2f, true);
}