Added button and animatations

This commit is contained in:
Nicola Guerrera
2023-02-27 16:11:28 +01:00
parent 9969571546
commit fe32d7ebbf
4 changed files with 137 additions and 52 deletions

View File

@@ -95,7 +95,8 @@ impl App {
text_align: Alignment::XCenter | Alignment::YCenter,
..Default::default()
};
let protostar = ProtoStar::create_from_desktop_file(parent, position, desktop_file.clone()).ok()?;
let protostar =
ProtoStar::create_from_desktop_file(parent, position, desktop_file.clone()).ok()?;
let text = Text::create(
protostar.content_parent(),
Transform::from_position_rotation(