UI infrastructure and simple "Help" dialog (#3)

Sets up some WIP infrastructure for building out the UI, and adds a simple popup
to show the navigation controls for the app.
This commit is contained in:
Danny McGee
2023-10-09 22:19:58 -04:00
committed by GitHub
parent 57d64f08f0
commit c84fd31387
40 changed files with 1608 additions and 590 deletions
+1
View File
@@ -30,6 +30,7 @@ pub fn init(viewport_size: ViewportSize) {
DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
resolution: viewport_size.into(),
title: "Storyteller Studio".into(),
..default()
}),
..default()
+1 -1
View File
@@ -30,8 +30,8 @@ fn layout(mut cmd: Commands) {
.with_text_alignment(TextAlignment::Right)
.with_style(Style {
position_type: PositionType::Absolute,
top: Val::Px(16.),
right: Val::Px(16.),
bottom: Val::Px(16.),
..default()
}),
));