From b4e1ba0b7ec42db0294483be72e80dabf1b15734 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Thu, 2 Jun 2022 16:01:57 +0200 Subject: [PATCH] Anchor hudinfo to safearea --- data/ui_scripts/hud_info/hud.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/ui_scripts/hud_info/hud.lua b/data/ui_scripts/hud_info/hud.lua index 15f59b5b..51b9e127 100644 --- a/data/ui_scripts/hud_info/hud.lua +++ b/data/ui_scripts/hud_info/hud.lua @@ -5,8 +5,8 @@ local textoffsety = barheight / 2 - textheight / 2 function createinfobar() local infobar = LUI.UIElement.new({ - left = luiglobals.GameX.IsHardcoreMode() and 160 or 228, - top = luiglobals.GameX.IsHardcoreMode() and 5 or 9, + left = GameX.IsHardcoreMode() and 0 or 213, + top = GameX.IsHardcoreMode() and 0 or -6, height = barheight, width = 70, leftAnchor = true, @@ -155,6 +155,6 @@ LUI.onmenuopen("mp_hud", function(hud) name = "update_hud_infobar_settings" }) - hud.static:addElement(infobar) + hud.static.scalable:addElement(infobar) end)