1
0
mirror of https://github.com/MinetestForFun/mff_hud.git synced 2024-12-23 01:00:35 +01:00

Show health and breath bars

This commit is contained in:
LeMagnesium 2015-10-08 19:15:34 +02:00
parent fec4bedfbe
commit cb64a13e16

View File

@ -3,7 +3,7 @@ local hotbar_size = minetest.setting_get("hotbar_size") or 16
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_itemcount(hotbar_size) player:hud_set_hotbar_itemcount(hotbar_size)
player:hud_set_flags({crosshair = true, hotbar = true, healthbar = false, wielditem = true, breathbar = false}) player:hud_set_flags({crosshair = true, hotbar = true, healthbar = true, wielditem = true, breathbar = true})
player:hud_set_hotbar_image("hud_hotbar.png") player:hud_set_hotbar_image("hud_hotbar.png")
player:hud_set_hotbar_selected_image("hud_hotbar_selected.png") player:hud_set_hotbar_selected_image("hud_hotbar_selected.png")
end) end)