mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01: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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue