mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update InventoryView
This commit is contained in:
parent
3d301f13d7
commit
f2684edf1f
2 changed files with 26 additions and 16 deletions
|
|
@ -189,13 +189,6 @@ function on_inventory_closed(invid: int, playerid: int)
|
|||
|
||||
Вызывается при закрытии инвентаря.
|
||||
|
||||
```lua
|
||||
function on_inventory_interact(invid: int, slot: int, action: int)
|
||||
```
|
||||
|
||||
Вызывается при взаимодействии со слотом игрока.
|
||||
**action** отвечает за тип взаимодействия (0 - левый клик, 1 - правый клик, 2 - левый клик + шифт)
|
||||
|
||||
|
||||
## События макета
|
||||
|
||||
|
|
@ -237,6 +230,13 @@ function on_hud_close(playerid: int)
|
|||
|
||||
Вызывается при выходе из мира, перед его сохранением.
|
||||
|
||||
```lua
|
||||
function on_hud_inventory_interact"(invid: int, slot: int, action: int)
|
||||
```
|
||||
|
||||
Вызывается при взаимодействии со слотом игрока.
|
||||
**action** отвечает за тип взаимодействия (0 - левый клик, 1 - правый клик, 2 - левый клик + шифт)
|
||||
|
||||
## События ECS
|
||||
События **ECS** описаны [тут](ecs.md#события-компонента)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue