Merge branch 'main' into release-0.25

This commit is contained in:
MihailRis
2024-11-28 16:03:43 +03:00
6 changed files with 44 additions and 28 deletions
+11 -2
View File
@@ -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.
+12 -2
View File
@@ -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 - бросается исключение.