mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
Update en/events.md
This commit is contained in:
parent
f486219a77
commit
4f80a56362
1 changed files with 16 additions and 16 deletions
|
|
@ -180,22 +180,6 @@ function on_inventory_closed(invid: int, playerid: int)
|
||||||
|
|
||||||
Called when the inventory is closed.
|
Called when the inventory is closed.
|
||||||
|
|
||||||
### 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
|
|
||||||
|
|
||||||
## Layout events
|
## Layout events
|
||||||
|
|
||||||
Script *layouts/layout_name.xml.lua* events.
|
Script *layouts/layout_name.xml.lua* events.
|
||||||
|
|
@ -214,6 +198,22 @@ function on_close(invid: int)
|
||||||
|
|
||||||
Called on element removed from the screen.
|
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
|
## HUD events
|
||||||
|
|
||||||
Callbacks specified in *hud.lua* script.
|
Callbacks specified in *hud.lua* script.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue