mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 07:35:19 +00:00
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:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
}),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user