mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
ui callbacks update
This commit is contained in:
parent
e9cbb04090
commit
2de5f5c646
7 changed files with 62 additions and 16 deletions
|
|
@ -1,4 +1,3 @@
|
|||
<inventory color="#1F1F1FE0" size="400,0">
|
||||
<slots-grid cols="4" count="40"/>
|
||||
<button padding="10,10,10,10" coord="300,10">Test</button>
|
||||
<slots-grid rows="4" count="40" sharefunc="inventory_share_func"/>
|
||||
</inventory>
|
||||
|
|
|
|||
|
|
@ -5,3 +5,7 @@ end
|
|||
function on_close(inv)
|
||||
print("CLOSE", inv)
|
||||
end
|
||||
|
||||
function inventory_share_func(invid, slotid)
|
||||
inventory.set(invid, slotid, 0, 0)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue