mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add 'args' parameter to hud.show_overlay
This commit is contained in:
parent
02578a6276
commit
e842b217da
4 changed files with 20 additions and 9 deletions
|
|
@ -24,7 +24,9 @@ hud.open_block(x: int, y: int, z: int) -> int, str
|
|||
```lua
|
||||
-- Show overlay with layout specified.
|
||||
-- Shows player inventory also if playerinv is true.
|
||||
hud.show_overlay(layoutid: str, playerinv: bool)
|
||||
-- Using `args` you can specify an array of parameter values that will be passed
|
||||
-- to on_open of the overlay being shown.
|
||||
hud.show_overlay(layoutid: str, playerinv: bool, [optional] args: table)
|
||||
|
||||
-- Add element to the screen.
|
||||
-- The element will be removed on world close only.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@ hud.open_block(x: int, y: int, z: int) -> int, str
|
|||
```lua
|
||||
-- Показывает элемент в режиме оверлея.
|
||||
-- Также показывает инвентарь игрока, если playerinv - **true**.
|
||||
hud.show_overlay(layoutid: str, playerinv: bool)
|
||||
-- Через args можно указать массив значений параметров, что будут переданы
|
||||
-- в on_open показываемого оверлея.
|
||||
hud.show_overlay(layoutid: str, playerinv: bool, [опционально] args: table)
|
||||
|
||||
-- Добавляет постоянный элемент на экран. Элемент не удаляется при
|
||||
-- закрытии инвентаря. Чтобы не перекрывать затенение в режиме
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue