Center & Span the red rectangle to be a banner

Figured out how to place nodes in the grid. This will eventually become
the banner that says what the machine does.
This commit is contained in:
2025-08-24 11:32:29 -05:00
parent 79f66b2868
commit a0cfc86f59

View File

@@ -11,7 +11,11 @@ pub fn spawn_cutter_machine_ui(mut commands: Commands) {
machine_ui_base(), machine_ui_base(),
children![ children![
( (
Node::default(), // TODO: A real node with stuff in it (buttons, maybe?) // TODO: A real node with stuff in it (buttons, maybe?)
Node {
grid_column: GridPlacement::start_span(2, 3),
..default()
},
BackgroundColor(RED.into()), BackgroundColor(RED.into()),
Pickable::default() Pickable::default()
), ),