organize menu lua

- fix some whitespace
This commit is contained in:
WantedDV
2024-02-10 12:28:15 -03:30
parent b7e877e4b8
commit ea1ad507a0
9 changed files with 217 additions and 102 deletions

View File

@@ -3,4 +3,4 @@ if (game:issingleplayer()) then
end
require("settings")
require("hud")
require("hud")

View File

@@ -106,17 +106,17 @@ function infoelement(data)
b = 0.6,
}
})
value:addElement(LUI.UITimer.new(data.interval, "update"))
value:setText(data.getvalue())
value:addEventHandler("update", function()
value:setText(data.getvalue())
end)
container:addElement(background)
container:addElement(label)
container:addElement(value)
return container
end
@@ -156,7 +156,7 @@ LUI.MenuBuilder.m_types_build["mp_hud"] = function()
infobar:removeAllChildren()
populateinfobar(infobar)
end)
hud.static:addElement(infobar)
return hud