aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:22 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:22 +0100
commit6793abcd3bb054ff4c6dc0e6b97a76d463730deb (patch)
treeed548f9fbdc24ddebd39b903081e5b42befdc1d4 /examples
parentc82f27d3038c4735e54f2140aa4d1a3709fa6250 (diff)
refactor(render-bsp): simpler ui example
Diffstat (limited to 'examples')
-rw-r--r--examples/render-bsp/src/main.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs
index 7622897..ec39b24 100644
--- a/examples/render-bsp/src/main.rs
+++ b/examples/render-bsp/src/main.rs
@@ -63,18 +63,9 @@ impl FlycamInput for MovementInputs {
}
#[system]
-fn hello_world(#[resource] ui: &mut UIState, #[state] name: &mut String, #[state] age: &mut f32) {
+fn hello_world(#[resource] ui: &mut UIState) {
let ui = ui.ui();
ui.heading("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
- // ui.horizontal(|ui| {
- // ui.label("Your name: ");
- // ui.text_edit(name);
- // });
- // ui.add(egui::Slider::f32(age, 0.0..=120.0).text("age"));
- // if ui.button("Click each year").clicked {
- // *age += 1.0;
- // }
- // ui.label(format!("Hello '{}', age {}", name, age));
}
fn main() {
@@ -138,7 +129,7 @@ fn main() {
.add_system(update_deltatime_system())
.add_system(process_window_events_system::<MovementInputsManager>())
.flush()
- .add_system(hello_world_system("".to_string(), 0.0))
+ .add_system(hello_world_system())
.add_system(flycam_move_system::<MovementInputsManager>())
.flush()
.add_system(calc_vp_matrix_system())