diff options
author | BlockMen <nmuelll@web.de> | 2015-07-15 01:16:52 +0200 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2015-07-15 01:16:52 +0200 |
commit | ec9f4b2875ebd025e212559522a98a59f6796e85 (patch) | |
tree | f11a007cedd199d250cf479d0e1fb67116f607ab /API.txt | |
parent | b9b784af040eb537b49edfdb38d440c851cecda1 (diff) |
Add hud.swap_statbar(), fixes BlockMen/hunger#2
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 |