Skip to content

Commit b61912b

Browse files
committed
Fix HUD only rendered ingame not in other screens
1 parent 4229553 commit b61912b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/kotlin/com/lambda/gui/components/HudGuiLayout.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ object HudGuiLayout : Loadable, Config(
4646
"HUD",
4747
HudCategory
4848
) {
49+
val showInScreens by setting("Show In Screens", false, "Keep HUD elements drawn while a Minecraft screen (inventory, mod settings, ...) is open. The Lambda GUI always shows them.")
50+
4951
// HUD Outline
5052
val hudOutlineCornerRadius by setting("HUD Corner Radius", 6.0f, 0.5f..24.0f, 0.5f)
5153
val hudOutlineHaloColor by setting("HUD Corner Halo Color", Color(140, 140, 140, 90))
@@ -79,6 +81,7 @@ object HudGuiLayout : Loadable, Config(
7981
init {
8082
listen<GuiEvent.NewImguiFrame> {
8183
if (mc.options.hudHidden) return@listen
84+
if (!ClickGuiLayout.open && mc.currentScreen != null && !showInScreens) return@listen
8285

8386
buildLayout {
8487
if (ClickGuiLayout.open && !isShownInGUI) {

0 commit comments

Comments
 (0)