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