Merge branch 'MihailRis:main' into main

This commit is contained in:
Cogitary
2024-03-18 00:11:22 +04:00
committed by GitHub
8 changed files with 28 additions and 9 deletions
+6
View File
@@ -278,6 +278,12 @@ Open block UI and inventory. Throws an exception if block has no UI layout.
Returns block inventory ID (if *"inventory-size"=0* a virtual inventory will be created), and UI layout ID.
```python
hud.show_overlay(layoutid: str, playerinv: bool)
```
Show overlay with layout specified. Shows player inventory also if playerinv is **true**
> [!NOTE]
> Only one block may be open at same time
+6
View File
@@ -271,6 +271,12 @@ hud.open_block(x: int, y: int, z: int) -> int, str
Возвращает id инвентаря блока (при *"inventory-size"=0* создаётся виртуальный инвентарь, который удаляется после закрытия), и id макета UI.
```python
hud.show_overlay(layoutid: str, playerinv: bool)
```
Показывает элемент в режиме оверлея. Также показывает инвентарь игрока, если playerinv - **true**
> [!NOTE]
> Одновременно может быть открыт только один блок