Made monologue previewer feel a lot nicer

main
Elijah Voigt 4 months ago
parent d4eedab39c
commit cb20b0d6a6

@ -184,6 +184,7 @@ fn init_debug_ui(mut commands: Commands) {
justify_self: JustifySelf::Start, justify_self: JustifySelf::Start,
..default() ..default()
}, },
BackgroundColor(GREEN.into()),
MonologuesContainer, MonologuesContainer,
GlobalZIndex(i32::MAX - 1), GlobalZIndex(i32::MAX - 1),
DebuggingState::On, DebuggingState::On,
@ -191,9 +192,7 @@ fn init_debug_ui(mut commands: Commands) {
.with_children(|parent| { .with_children(|parent| {
parent.spawn(( parent.spawn((
Node { Node {
min_height: Val::Px(5.0), height: Val::Percent(100.0),
max_height: Val::Percent(90.0),
max_width: Val::Percent(40.0),
flex_direction: FlexDirection::Column, flex_direction: FlexDirection::Column,
padding: UiRect::all(Val::Px(10.0)), padding: UiRect::all(Val::Px(10.0)),
..default() ..default()
@ -203,9 +202,7 @@ fn init_debug_ui(mut commands: Commands) {
)); ));
parent.spawn(( parent.spawn((
Node { Node {
min_height: Val::Px(5.0), height: Val::Percent(100.0),
max_height: Val::Percent(90.0),
max_width: Val::Percent(60.0),
flex_direction: FlexDirection::Column, flex_direction: FlexDirection::Column,
padding: UiRect::all(Val::Px(10.0)), padding: UiRect::all(Val::Px(10.0)),
..default() ..default()

Loading…
Cancel
Save