mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
Merge pull request #821 from Xertis/main
Added script-listener to packs loading
This commit is contained in:
commit
936a5c8525
6 changed files with 99 additions and 3 deletions
|
|
@ -198,11 +198,26 @@ function on_close(invid: int)
|
|||
|
||||
Called on element removed from the screen.
|
||||
|
||||
## Content events
|
||||
|
||||
Callbacks specified in *content.lua* script.
|
||||
|
||||
```lua
|
||||
function on_scripts_loading()
|
||||
```
|
||||
|
||||
Called before the content pack scripts are loaded
|
||||
|
||||
```lua
|
||||
function on_content_loaded()
|
||||
```
|
||||
|
||||
Called after the content pack has been fully loaded
|
||||
|
||||
## HUD events
|
||||
|
||||
Callbacks specified in *hud.lua* script.
|
||||
|
||||
|
||||
```lua
|
||||
function on_hud_open(playerid: int)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue