From 722c5ceac257b29126537063cab7909f89a8c376 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 5 May 2023 09:25:42 +1000 Subject: Gui editor helper (#84) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/config/core/config/gui/GuiPositionEditor.kt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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, 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( -- cgit