aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-09-28 17:34:33 +1000
committerGitHub <noreply@github.com>2023-09-28 09:34:33 +0200
commita76790af8e66d687857e6221992903961c61d3f3 (patch)
tree491530ce0319b04bd611fa59cfa43e259bcab771 /src
parent5baba39ff026fe777362ffece92b1a56395df396 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt2
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
}
}