Code cleanup, compress textures, minor fixes, wieldview optimization, other changes
parent
52debbb120
commit
0e2f834789
|
@ -44,12 +44,9 @@ local function initialize_builtin_statbars(player)
|
|||
end
|
||||
|
||||
if player:hud_get_flags().healthbar then
|
||||
--if hud_ids[name].id_healthbar == nil then
|
||||
--hud_ids[name].id_healthbar = hud.register("health", health_bar_definition)
|
||||
minetest.after(0, function()
|
||||
hud.change_item(player, "health", {number = player:get_hp()})
|
||||
end)
|
||||
--end
|
||||
minetest.after(0, function()
|
||||
hud.change_item(player, "health", {number = player:get_hp()})
|
||||
end)
|
||||
else
|
||||
if hud_ids[name].id_healthbar ~= nil then
|
||||
player:hud_remove(hud_ids[name].id_healthbar)
|
||||
|
|
|
@ -46,7 +46,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#define HUD_PARAM_HOTBAR_IMAGE 2
|
||||
#define HUD_PARAM_HOTBAR_SELECTED_IMAGE 3
|
||||
|
||||
#define HUD_HOTBAR_ITEMCOUNT_DEFAULT 8
|
||||
#define HUD_HOTBAR_ITEMCOUNT_DEFAULT 9
|
||||
#define HUD_HOTBAR_ITEMCOUNT_MAX 23
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 68 B |
Loading…
Reference in New Issue