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

Enable breathbar only when healthbar is visible

This commit is contained in:
LeMagnesium 2015-10-26 23:03:38 +01:00
parent bbff05d22f
commit f8dfc851ec
2 changed files with 1 additions and 2 deletions

View File

@ -1,2 +1 @@
default default

View File

@ -5,7 +5,7 @@ local minimap_visible = minetest.setting_getbool("enable_minimap") or false
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 = health_visible, wielditem = true, breathbar = true, minimap = minimap_visible}) player:hud_set_flags({crosshair = true, hotbar = true, healthbar = health_visible, wielditem = true, breathbar = health_visible, minimap = minimap_visible})
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)