mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-22 07:08:42 -06:00
in example 6, make the text reflect the amount
This commit is contained in:
parent
4ad3fed6d3
commit
8b3552407a
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue