mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-27 17:43:44 +01:00
Set hudstate and hudids directly in add_all
This commit is contained in:
parent
f046592824
commit
563db9cb4c
4
init.lua
4
init.lua
@ -120,7 +120,9 @@ function hud.register_hudbar(identifier, text_color, label, use_icon, default_st
|
||||
state.hidden = start_hide
|
||||
state.value = start_value
|
||||
state.max = start_max
|
||||
return ids, state
|
||||
|
||||
hud.hudtables[identifier].hudids = ids
|
||||
hud.hudtables[identifier].hudstate = state
|
||||
end
|
||||
|
||||
hudtable.identifier = identifier
|
||||
|
Loading…
Reference in New Issue
Block a user