mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Add comments to mcl_burning.update_hud().
This commit is contained in:
parent
e80006f4ea
commit
d424d4f10e
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,14 @@ function mcl_burning.get_touching_nodes(obj, nodenames, storage)
|
||||||
return nodes
|
return nodes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Manages the fire animation on a burning player's HUD
|
||||||
|
--
|
||||||
|
-- Parameters:
|
||||||
|
-- player - a valid player object;
|
||||||
|
--
|
||||||
|
-- If the player already has a fire HUD, updates the burning animation.
|
||||||
|
-- If the fire does not have a fire HUD, initializes the HUD.
|
||||||
|
--
|
||||||
function mcl_burning.update_hud(player)
|
function mcl_burning.update_hud(player)
|
||||||
local animation_frames = tonumber(minetest.settings:get("fire_animation_frames")) or 8
|
local animation_frames = tonumber(minetest.settings:get("fire_animation_frames")) or 8
|
||||||
local hud_flame_animated = "mcl_burning_hud_flame_animated.png^[opacity:180^[verticalframe:" .. animation_frames .. ":"
|
local hud_flame_animated = "mcl_burning_hud_flame_animated.png^[opacity:180^[verticalframe:" .. animation_frames .. ":"
|
||||||
|
|
Loading…
Reference in a new issue