1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- local S=physio_stress.intllib
- function physio_stress.hud_init(player,col)
- return
- end
- function physio_stress.hud_update(player, col, value)
- return
- end
- if minetest.get_modpath("hudbars") then
- hb.register_hudbar('exhaustion', 0xffffff, S("Exhaustion"), {
- bar = 'physio_stress_hudbars_bar.png^[colorize:#aa7788',
- icon = 'physio_stress_exhaust_16.png'
- }, 20, 20, false)
- if physio_stress.attributes.saturation then
- hb.register_hudbar('saturation', 0xffffff, S("Saturation"), {
- bar = 'physio_stress_hudbars_bar.png^[colorize:#ffff00',
- icon = 'physio_stress_hunger.png'
- }, physio_stress.saturationmax, physio_stress.saturationmax, false)
- end
- if physio_stress.attributes.thirst then
- hb.register_hudbar('thirst', 0xffffff, S("Thirst"), {
- bar = 'physio_stress_hudbars_bar.png^[colorize:#0000ff',
- icon = 'physio_stress_thirst.png'
- }, physio_stress.thirstmax, physio_stress.thirstmax, false)
- end
-
-
- function physio_stress.hud_init(player,col)
- if col == nil then
- return
- end
- hb.init_hudbar(player, col ,physio_stress.hud_clamp(xpfw.player_get_attribute(player, col)),20, false)
- end
- function physio_stress.hud_update(player, col, value)
- if col == nil then
- return
- end
- if value == nil then
- return
- end
- hb.change_hudbar(player, col, physio_stress.hud_clamp(value), 20)
- end
- end
|