Compare commits
2 Commits
9bb15b7511
...
9fb374059a
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fb374059a | |||
| cf9b415bb7 |
@@ -42,7 +42,11 @@ impl CuttingMachine {
|
|||||||
BackgroundColor(DARK_GRAY.into()),
|
BackgroundColor(DARK_GRAY.into()),
|
||||||
Pickable::default(),
|
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()),
|
BackgroundColor(DARK_GRAY.into()),
|
||||||
Pickable::default(),
|
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.
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ impl BigRedButton {
|
|||||||
TextColor(WHITE.into()),
|
TextColor(WHITE.into()),
|
||||||
TextShadow::default(),
|
TextShadow::default(),
|
||||||
],
|
],
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Re-color the button when a pointer passes over it
|
/// Re-color the button when a pointer passes over it
|
||||||
|
|||||||
Reference in New Issue
Block a user