use bevy::prelude::*; use crate::client::colors; pub fn ui_plugin(app: &mut App) { app.add_systems(Startup, setup_ui); } fn setup_ui(mut commands: Commands) { commands.spawn(( Node { width: Val::Percent(100.0), height: Val::Percent(100.0), ..Default::default() }, children![( Node { position_type: PositionType::Absolute, margin: UiRect::AUTO.with_bottom(Val::Px(0.0)), width: Val::Percent(50.0), height: Val::Px(128.0), ..Default::default() }, BackgroundColor(colors::MANTLE), children![( )] ), ( Node { position_type: PositionType::Absolute, margin: UiRect::AUTO.with_left(Val::Px(0.0)), width: Val::Px(20.0), height: Val::Percent(100.0), ..Default::default() }, BackgroundColor(colors::MANTLE), )], )); }