aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java9
1 files changed, 9 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 16e134574..d0112766a 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
@@ -48,6 +48,9 @@ public class Position {
@Expose
private boolean centerY;
+ @Expose
+ private boolean ignoreCustomScale = false;
+
public transient Field linkField;
private boolean clicked = false;
@@ -90,7 +93,13 @@ public class Position {
this.center = other.isCenter();
}
+ public Position setIgnoreCustomScale(boolean ignoreCustomScale) {
+ this.ignoreCustomScale = ignoreCustomScale;
+ return this;
+ }
+
public float getEffectiveScale() {
+ if (ignoreCustomScale) return 1F;
return Math.max(Math.min(getScale() * SkyHanniMod.feature.gui.globalScale, 10F), 0.1F);
}