diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-05-05 09:25:42 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 01:25:42 +0200 |
commit | 722c5ceac257b29126537063cab7909f89a8c376 (patch) | |
tree | cb15a2c90588951830778c955a25ee6f7414222e | |
parent | 1f036f97167b3c6d662f51c6bca96df46e09bf0a (diff) | |
download | skyhanni-722c5ceac257b29126537063cab7909f89a8c376.tar.gz skyhanni-722c5ceac257b29126537063cab7909f89a8c376.tar.bz2 skyhanni-722c5ceac257b29126537063cab7909f89a8c376.zip |
Gui editor helper (#84)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt | 14 |
1 files changed, 13 insertions, 1 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 46afcc416..c80ad2ea5 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 @@ -67,7 +67,19 @@ class GuiPositionEditor(private val positions: List<Position>, private val borde displayPos = hoveredPos } - if (displayPos == -1) return + // When the mouse is not currently hovering over an gui element + if (displayPos == -1) { + RenderUtils.drawStringCentered( + "§eTo edit hidden GUI elements set a key in /sh edit", + Minecraft.getMinecraft().fontRendererObj, (getScaledWidth() / 2).toFloat(), 20f, true, 0xffffff + ) + + RenderUtils.drawStringCentered( + "§ethen click that key while the GUI element is visible", + Minecraft.getMinecraft().fontRendererObj, (getScaledWidth() / 2).toFloat(), 32f, true, 0xffffff + ) + return + } val pos = positions[displayPos] RenderUtils.drawStringCentered( |