aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt14
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(