implemented amounts in gui

This commit is contained in:
Ide
2026-01-04 00:30:35 +01:00
parent 4b3b8f4fe5
commit 9b74e6ee85
3 changed files with 206 additions and 5 deletions
+3
View File
@@ -1,6 +1,7 @@
export struct SItem {
name: string,
checked: bool,
amount: int,
}
export global State {
@@ -13,6 +14,8 @@ export global State {
callback add-to-list(string);
callback check-item(string);
callback delete-checked();
callback inc-amount(string);
callback dec-amount(string);
in-out property <string> server-address;
callback set-server-address(string);
set-server-address(address) => {