ui callbacks update

This commit is contained in:
MihailRis
2024-02-12 19:59:58 +03:00
parent e9cbb04090
commit 2de5f5c646
7 changed files with 62 additions and 16 deletions
+1 -2
View File
@@ -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>
+4
View File
@@ -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