mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
Merge branch 'main' into release-0.25
This commit is contained in:
commit
7d89fb86bd
6 changed files with 44 additions and 28 deletions
|
|
@ -8,8 +8,17 @@ hud.open_inventory()
|
|||
hud.close_inventory()
|
||||
|
||||
-- Open UI and inventory.
|
||||
-- Throws an exception if has no UI layout.
|
||||
hud.open(invid: int, layoutid: str)
|
||||
-- Throws an exception if has UI layout does not exists.
|
||||
-- If invid is not specified, a virtual (temporary) inventory is created.
|
||||
-- Returns the invid or id of the virtual inventory.
|
||||
hud.open(
|
||||
-- UI layout name
|
||||
layoutid: str,
|
||||
-- Don't open player inventory
|
||||
[optional] disablePlayerInventory: bool,
|
||||
-- Inventory that UI layout will be bound to
|
||||
[optional] invid: int
|
||||
) -> int
|
||||
|
||||
-- Open block UI and inventory.
|
||||
-- Throws an exception if block has no UI layout.
|
||||
|
|
|
|||
|
|
@ -8,8 +8,18 @@ hud.open_inventory()
|
|||
hud.close_inventory()
|
||||
|
||||
-- Открывает инвентарь и UI.
|
||||
-- Если не имеет макета UI - бросается исключение.
|
||||
hud.open(invid: int, layoutid: str)
|
||||
-- Если макет UI не существует - бросается исключение.
|
||||
-- Если invid не указан, создаётся виртуальный (временный) инвентарь.
|
||||
-- Возвращает invid или id виртуального инвентаря.
|
||||
hud.open(
|
||||
-- Макет UI
|
||||
layoutid: str,
|
||||
-- Не открывать инвентарь игрока
|
||||
[опционально] disablePlayerInventory: bool,
|
||||
-- Инвентарь, к которому будет привязан UI макет
|
||||
[опционально] invid: int
|
||||
) -> int
|
||||
|
||||
|
||||
-- Открывает инвентарь и UI блока.
|
||||
-- Если блок не имеет макета UI - бросается исключение.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue