Compare commits
2 commits
ca257d9e01
...
0246e80f93
Author | SHA1 | Date | |
---|---|---|---|
|
0246e80f93 | ||
|
cfe11d3777 |
|
@ -3,7 +3,7 @@ mod apply_mutations;
|
||||||
pub mod colors;
|
pub mod colors;
|
||||||
mod deferred_system;
|
mod deferred_system;
|
||||||
mod ecs_hooks;
|
mod ecs_hooks;
|
||||||
mod elements;
|
pub mod elements;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod events;
|
mod events;
|
||||||
#[cfg(feature = "hot_reload")]
|
#[cfg(feature = "hot_reload")]
|
||||||
|
|
|
@ -196,10 +196,10 @@ pub fn set_attribute(
|
||||||
("text_multiline_alignment", "right") if text.is_some() => {
|
("text_multiline_alignment", "right") if text.is_some() => {
|
||||||
text.unwrap().justify = JustifyText::Right;
|
text.unwrap().justify = JustifyText::Right;
|
||||||
}
|
}
|
||||||
("text_size", value) if text.is_some() => {
|
("font_size", value) if text.is_some() => {
|
||||||
text.unwrap().sections[0].style.font_size = parse_f32(value);
|
text.unwrap().sections[0].style.font_size = parse_f32(value);
|
||||||
}
|
}
|
||||||
("text_color", value) if text.is_some() => {
|
("color", value) if text.is_some() => {
|
||||||
text.unwrap().sections[0].style.color = parse_color(value);
|
text.unwrap().sections[0].style.color = parse_color(value);
|
||||||
}
|
}
|
||||||
("image_asset_path", value) if image.is_some() => {
|
("image_asset_path", value) if image.is_some() => {
|
||||||
|
|
Loading…
Reference in a new issue