Removed the rudiments of the project
This commit is contained in:
parent
7e76448cb7
commit
58b6314dec
4165
Cargo.lock
generated
4165
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,6 @@ members = [
|
|||||||
"libnres",
|
"libnres",
|
||||||
"nres-cli",
|
"nres-cli",
|
||||||
"packer",
|
"packer",
|
||||||
"resource-viewer",
|
|
||||||
"texture-decoder",
|
"texture-decoder",
|
||||||
"unpacker",
|
"unpacker",
|
||||||
]
|
]
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
[package]
|
|
||||||
name = "resource-viewer"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
build = "build.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
slint = "1.0"
|
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
slint-build = "1.0"
|
|
@ -1,3 +0,0 @@
|
|||||||
fn main() {
|
|
||||||
slint_build::compile("ui/appwindow.slint").unwrap();
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
slint::include_modules!();
|
|
||||||
|
|
||||||
fn main() -> Result<(), slint::PlatformError> {
|
|
||||||
let ui = AppWindow::new()?;
|
|
||||||
|
|
||||||
let ui_handle = ui.as_weak();
|
|
||||||
ui.on_request_increase_value(move || {
|
|
||||||
let ui = ui_handle.unwrap();
|
|
||||||
ui.set_counter(ui.get_counter() + 1);
|
|
||||||
});
|
|
||||||
|
|
||||||
ui.run()
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user