mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
docs update
This commit is contained in:
parent
506147d00f
commit
b36711593b
2 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
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]
|
> [!NOTE]
|
||||||
> Only one block may be open at same time
|
> Only one block may be open at same time
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -271,6 +271,12 @@ hud.open_block(x: int, y: int, z: int) -> int, str
|
||||||
|
|
||||||
Возвращает id инвентаря блока (при *"inventory-size"=0* создаётся виртуальный инвентарь, который удаляется после закрытия), и id макета UI.
|
Возвращает id инвентаря блока (при *"inventory-size"=0* создаётся виртуальный инвентарь, который удаляется после закрытия), и id макета UI.
|
||||||
|
|
||||||
|
```python
|
||||||
|
hud.show_overlay(layoutid: str, playerinv: bool)
|
||||||
|
```
|
||||||
|
|
||||||
|
Показывает элемент в режиме оверлея. Также показывает инвентарь игрока, если playerinv - **true**
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Одновременно может быть открыт только один блок
|
> Одновременно может быть открыт только один блок
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue