mirror of
https://github.com/griffi-gh/hUI.git
synced 2025-04-19 05:37:20 -05:00
fix transform example
This commit is contained in:
parent
c30bacf26c
commit
82b2960adf
|
@ -10,10 +10,10 @@ use hui::{
|
||||||
},
|
},
|
||||||
layout::Alignment,
|
layout::Alignment,
|
||||||
rect::Corners,
|
rect::Corners,
|
||||||
text::FontHandle,
|
|
||||||
rect_frame,
|
rect_frame,
|
||||||
size,
|
size,
|
||||||
};
|
};
|
||||||
|
use hui_painter::text::FontHandle;
|
||||||
|
|
||||||
#[path = "../boilerplate.rs"]
|
#[path = "../boilerplate.rs"]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -49,11 +49,11 @@ ui_main!(
|
||||||
.with_children(|ui| {
|
.with_children(|ui| {
|
||||||
Text::default()
|
Text::default()
|
||||||
.with_text("Did you know?")
|
.with_text("Did you know?")
|
||||||
.with_text_size(18)
|
.with_text_size(18.)
|
||||||
.add_child(ui);
|
.add_child(ui);
|
||||||
Text::default()
|
Text::default()
|
||||||
.with_text("You can die by jumping into the spike pit! :D\nCheck out the tutorial section for more tips.")
|
.with_text("You can die by jumping into the spike pit! :D\nCheck out the tutorial section for more tips.")
|
||||||
.with_text_size(24)
|
.with_text_size(24.)
|
||||||
.with_font(FontHandle::default())
|
.with_font(FontHandle::default())
|
||||||
.add_child(ui);
|
.add_child(ui);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue