mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add update_settings
This commit is contained in:
parent
501f1b568d
commit
4a74e56eda
4 changed files with 17 additions and 2 deletions
|
|
@ -35,6 +35,7 @@ function on_hud_open()
|
|||
end
|
||||
|
||||
function on_hud_render()
|
||||
local pos = gfx.text3d.get_pos(textid)
|
||||
gfx.text3d.set_pos(textid, {pos[1], pos[2]+time.delta(), pos[3]})
|
||||
gfx.text3d.update_settings(textid, {
|
||||
color={math.sin(time.uptime() * 12) * 0.5 + 0.5, 0, 0, 1}
|
||||
})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue