diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-09-28 17:34:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 09:34:33 +0200 |
commit | a76790af8e66d687857e6221992903961c61d3f3 (patch) | |
tree | 491530ce0319b04bd611fa59cfa43e259bcab771 /src/main/java/at/hannibal2 | |
parent | 5baba39ff026fe777362ffece92b1a56395df396 (diff) | |
download | skyhanni-a76790af8e66d687857e6221992903961c61d3f3.tar.gz skyhanni-a76790af8e66d687857e6221992903961c61d3f3.tar.bz2 skyhanni-a76790af8e66d687857e6221992903961c61d3f3.zip |
scale gui (#513)
Added support to change the scale of GUI elements with + and - keys. #513
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt index d69fbeeae..9df6f00fe 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt @@ -188,6 +188,8 @@ class GuiPositionEditor(private val positions: List<Position>, private val borde Keyboard.KEY_UP -> position.moveY(-dist, elementHeight) Keyboard.KEY_LEFT -> position.moveX(-dist, elementWidth) Keyboard.KEY_RIGHT -> position.moveX(dist, elementWidth) + Keyboard.KEY_MINUS -> position.scale -= .1F + Keyboard.KEY_EQUALS -> position.scale += .1F } } |