in example 6, make the text reflect the amount

This commit is contained in:
griffi-gh 2024-03-21 23:52:49 +01:00
parent 4ad3fed6d3
commit 8b3552407a

View file

@ -40,7 +40,7 @@ ui_main!(
.with_background((0.1, 0.1, 0.1)) .with_background((0.1, 0.1, 0.1))
.with_wrap(true) .with_wrap(true)
.with_children(|ui| { .with_children(|ui| {
Text::new("Number of images:") Text::new(format!("Number of images: {counter}"))
.with_text_size(24) .with_text_size(24)
.add_child(ui); .add_child(ui);
Br.add_child(ui); Br.add_child(ui);