From 57c1220bc9084b766c554c00636cc8ca89832ee0 Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:45:54 +0200 Subject: Feature + Fix: Custom Scoreboard Souflow, Margin, and more (#1837) Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: ItsEmpa --- src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt index 0f53a3e0c..e6dfa7671 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt @@ -78,14 +78,14 @@ object GuiEditManager { } @JvmStatic - fun add(position: Position, posLabel: String, x: Int, y: Int) { + fun add(position: Position, posLabel: String, width: Int, height: Int) { var name = position.internalName if (name == null) { name = if (posLabel == "none") "none " + UUID.randomUUID() else posLabel position.internalName = name } currentPositions[name] = position - currentBorderSize[posLabel] = Pair(x, y) + currentBorderSize[posLabel] = Pair(width, height) } private var lastHotkeyReminded = SimpleTimeMark.farPast() -- cgit