diff options
| author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-08-23 09:45:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-23 09:45:54 +0200 |
| commit | 57c1220bc9084b766c554c00636cc8ca89832ee0 (patch) | |
| tree | 7a7fa5a6094b69803c3d7ddbdadaaa4a80d3e1e7 /src/main/java/at/hannibal2/skyhanni/data | |
| parent | 20bd1d5fe25e8455402ad1d0f94336b547e51df1 (diff) | |
| download | skyhanni-57c1220bc9084b766c554c00636cc8ca89832ee0.tar.gz skyhanni-57c1220bc9084b766c554c00636cc8ca89832ee0.tar.bz2 skyhanni-57c1220bc9084b766c554c00636cc8ca89832ee0.zip | |
Feature + Fix: Custom Scoreboard Souflow, Margin, and more (#1837)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
