From a0cfc86f59230649bcbbfa22d01fe56a1493c008 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 24 Aug 2025 11:32:29 -0500 Subject: [PATCH] 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. --- src/widgets.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets.rs b/src/widgets.rs index 6b82c95..7ccd91e 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -11,7 +11,11 @@ pub fn spawn_cutter_machine_ui(mut commands: Commands) { machine_ui_base(), 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()), Pickable::default() ),