diff options
author | Valentin Popov <valentin@popov.link> | 2023-10-27 22:58:12 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2023-10-27 22:58:12 +0300 |
commit | 9708d731992be2f24cfd229a28eedf642a8dee0f (patch) | |
tree | 5bc5f13a2f24ebf5b083fda10e38a6b4f127ba7e /resource-viewer/ui | |
parent | a97d68b0e18a0002636b497264adab4744572f49 (diff) | |
download | fparkan-9708d731992be2f24cfd229a28eedf642a8dee0f.tar.xz fparkan-9708d731992be2f24cfd229a28eedf642a8dee0f.zip |
Init of the game resource viewer
Diffstat (limited to 'resource-viewer/ui')
-rw-r--r-- | resource-viewer/ui/appwindow.slint | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resource-viewer/ui/appwindow.slint b/resource-viewer/ui/appwindow.slint new file mode 100644 index 0000000..4862c47 --- /dev/null +++ b/resource-viewer/ui/appwindow.slint @@ -0,0 +1,17 @@ +import { Button, VerticalBox } from "std-widgets.slint"; + +export component AppWindow inherits Window { + in-out property<int> counter: 42; + callback request-increase-value(); + VerticalBox { + Text { + text: "Counter: \{root.counter}"; + } + Button { + text: "Increase value"; + clicked => { + root.request-increase-value(); + } + } + } +}
\ No newline at end of file |