ui callbacks update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user