diff --git a/doc/en/scripting/builtins/libhud.md b/doc/en/scripting/builtins/libhud.md index a7e3fa853..1d6264b2d 100644 --- a/doc/en/scripting/builtins/libhud.md +++ b/doc/en/scripting/builtins/libhud.md @@ -54,6 +54,9 @@ hud.close(layoutid: str) -- Get open block inventory ID or 0. hud.get_block_inventory() -> int +-- Gives the ID of the second open inventory (block, virtual inventory...) or 0. +hud.get_second_inventory() -> int + -- Gives the ID of the player that the UI is bound to. hud.get_player() -> int @@ -69,6 +72,9 @@ hud.is_paused() -> bool -- Returns true if inventory is open or overlay is shown. hud.is_inventory_open() -> bool +-- Returns true if the player's inventory is open. +hud.is_player_inventory_open() -> boolean + -- Sets whether to allow pausing. If false, the pause menu will not pause the game. hud.set_allow_pause(flag: bool)