Anchor hudinfo to safearea

This commit is contained in:
Federico Cecchetto 2022-06-02 16:01:57 +02:00
parent 88367a822e
commit b4e1ba0b7e

View File

@ -5,8 +5,8 @@ local textoffsety = barheight / 2 - textheight / 2
function createinfobar() function createinfobar()
local infobar = LUI.UIElement.new({ local infobar = LUI.UIElement.new({
left = luiglobals.GameX.IsHardcoreMode() and 160 or 228, left = GameX.IsHardcoreMode() and 0 or 213,
top = luiglobals.GameX.IsHardcoreMode() and 5 or 9, top = GameX.IsHardcoreMode() and 0 or -6,
height = barheight, height = barheight,
width = 70, width = 70,
leftAnchor = true, leftAnchor = true,
@ -155,6 +155,6 @@ LUI.onmenuopen("mp_hud", function(hud)
name = "update_hud_infobar_settings" name = "update_hud_infobar_settings"
}) })
hud.static:addElement(infobar) hud.static.scalable:addElement(infobar)
end) end)