DOCS: better word arguments in HUD_hide

This commit is contained in:
Zughy 2024-01-13 19:44:01 +00:00
parent 0f4e4501cb
commit d5aa22e2dc

View File

@ -335,7 +335,7 @@ Same as above, but for teams. They can accessed through `yourarena.teams[<teamID
* `color` must be in a hexadecimal format and, if not specified, it defaults to white (`0xFFFFFF`)
* `arena_lib.HUD_send_msg_all(HUD_type, arena, msg, <duration>, <sound>, <color>)`: same as above, but for all the players and spectators inside the arena
* `arena_lib.HUD_send_msg_team(HUD_type, arena, teamID, msg, <duration>, <sound>, <color>)`: same as above, but just for the players in team `teamID`
* `arena_lib.HUD_hide(HUD_type, player_or_arena)`: makes the specified HUD disappear; it can take both the name of the player/spectator and a whole arena. Also, a special parameter `"all"` can be used in `HUD_type` to make all the HUDs disappear. Automatically called when a player leaves an arena (with `"all"`)
* `arena_lib.HUD_hide(HUD_type, pname_or_arena)`: makes the specified HUD disappear; it can take both the name of the player/spectator and a whole arena. Also, a special parameter `"all"` can be used in `HUD_type` to make all the HUDs disappear. Automatically called when a player leaves an arena (with `"all"`)
Keep also in mind that nametags are stored when entering and restored when leaving. This means that nametags can be used as a custom HUD too (e.g. to display the score of a certain player above their head), using the default Minetest API.