maint(ui_scripts): remove whitespaces and reorganize files (#5)
All checks were successful
test / Test on Linux (push) Successful in 6s

Co-authored-by: Wanted <wanted@no-reply@alterware.dev>
Co-committed-by: Wanted <wanted@no-reply@alterware.dev>
This commit is contained in:
2024-02-12 10:31:37 +00:00
committed by Jack Back
parent 8adb43f7fa
commit 7411101e22
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