Set hudstate and hudids directly in add_all

此提交包含在:
Wuzzy
2015-02-04 18:14:44 +01:00
父節點 f046592824
當前提交 563db9cb4c

查看文件

@ -120,7 +120,9 @@ function hud.register_hudbar(identifier, text_color, label, use_icon, default_st
state.hidden = start_hide state.hidden = start_hide
state.value = start_value state.value = start_value
state.max = start_max state.max = start_max
return ids, state
hud.hudtables[identifier].hudids = ids
hud.hudtables[identifier].hudstate = state
end end
hudtable.identifier = identifier hudtable.identifier = identifier