maint(ui_scripts): remove whitespaces and reorganize files (#5)
All checks were successful
test / Test on Linux (push) Successful in 6s
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:
@ -3,4 +3,4 @@ if (game:issingleplayer()) then
|
||||
end
|
||||
|
||||
require("settings")
|
||||
require("hud")
|
||||
require("hud")
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user