diff options
Diffstat (limited to 'API.txt')
-rw-r--r-- | API.txt | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,13 +1,18 @@ -function hud.register(name, def) +hud.register(name, def) -- name: statbar name (health, air, hunger, armor already used by default) -- def: <HUD item definition> (see below) hud.change_item(player, name, def) -- player: player object - -- name: statbar name (health, air, hunger, armor already used by default) + -- name: statbar name -- def: table containing new values -- currently supported: number, text and offset +hud.swap_statbar(player, name1, name2) -- swaps position and offset of statbar with name1 with statbar with name2 + -- player: player object + -- name1: statbar name + -- name2: statbar name + hud.remove_item(player, name) HUD item definition |