-local health_bar_definition =
-{
- hud_elem_type = "statbar",
- position = { x=0.5, y=1 },
- text = "heart.png",
- number = core.PLAYER_MAX_HP_DEFAULT,
- direction = 0,
- size = { x=24, y=24 },
- offset = { x=(-10*24)-25, y=-(48+24+16)},
-}
-
-local breath_bar_definition =
-{
- hud_elem_type = "statbar",
- position = { x=0.5, y=1 },
- text = "bubble.png",
- number = 20,
- direction = 0,
- size = { x=24, y=24 },
- offset = {x=25,y=-(48+24+16)},
+local bar_definitions = {
+ hp = {
+ hud_elem_type = "statbar",
+ position = {x = 0.5, y = 1},
+ text = "heart.png",
+ text2 = "heart_gone.png",
+ number = core.PLAYER_MAX_HP_DEFAULT,
+ item = core.PLAYER_MAX_HP_DEFAULT,
+ direction = 0,
+ size = {x = 24, y = 24},
+ offset = {x = (-10 * 24) - 25, y = -(48 + 24 + 16)},
+ },
+ breath = {
+ hud_elem_type = "statbar",
+ position = {x = 0.5, y = 1},
+ text = "bubble.png",
+ text2 = "bubble_gone.png",
+ number = core.PLAYER_MAX_BREATH_DEFAULT * 2,
+ item = core.PLAYER_MAX_BREATH_DEFAULT * 2,
+ direction = 0,
+ size = {x = 24, y = 24},
+ offset = {x = 25, y= -(48 + 24 + 16)},
+ },