From cf9b415bb785fd2286bedd4be2ae9a214f3937c1 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 26 Aug 2025 13:17:03 -0500 Subject: [PATCH] Update BigRedButton usage sites, add callback note --- src/widgets/machines.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/widgets/machines.rs b/src/widgets/machines.rs index 60486ad..fcd29a9 100644 --- a/src/widgets/machines.rs +++ b/src/widgets/machines.rs @@ -42,7 +42,11 @@ impl CuttingMachine { BackgroundColor(DARK_GRAY.into()), Pickable::default(), )) - .with_children(|cmds| BigRedButton::spawn_big_red_button(cmds, "CUT")); + .with_children(|cmds| { + let _button_cmds = cmds.spawn(BigRedButton::bundle("CUT")); + // TODO: Attach on-press observer so this machine can do something + // in response to that button being pressed + }); }); } } @@ -82,7 +86,10 @@ impl RotatingMachine { BackgroundColor(DARK_GRAY.into()), Pickable::default(), )) - .with_children(|cmds| BigRedButton::spawn_big_red_button(cmds, "TURN")); + .with_children(|cmds| { + let button_cmds = cmds.spawn(BigRedButton::bundle("TURN")); + // TODO: Attach on-press observer to the button. + }); }); } }