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
|
end
|
||||||
|
|
||||||
if player:hud_get_flags().healthbar then
|
if player:hud_get_flags().healthbar then
|
||||||
--if hud_ids[name].id_healthbar == nil then
|
minetest.after(0, function()
|
||||||
--hud_ids[name].id_healthbar = hud.register("health", health_bar_definition)
|
hud.change_item(player, "health", {number = player:get_hp()})
|
||||||
minetest.after(0, function()
|
end)
|
||||||
hud.change_item(player, "health", {number = player:get_hp()})
|
|
||||||
end)
|
|
||||||
--end
|
|
||||||
else
|
else
|
||||||
if hud_ids[name].id_healthbar ~= nil then
|
if hud_ids[name].id_healthbar ~= nil then
|
||||||
player:hud_remove(hud_ids[name].id_healthbar)
|
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_IMAGE 2
|
||||||
#define HUD_PARAM_HOTBAR_SELECTED_IMAGE 3
|
#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
|
#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