|
|
|
|
@ -43,6 +43,7 @@ pub(crate) fn setup_cards(mut commands: Commands, deck: Res<Deck>) {
|
|
|
|
|
.spawn((new_this, this_card, t))
|
|
|
|
|
.observe(debug::set_debug_card)
|
|
|
|
|
.observe(debug::hide_debug_card)
|
|
|
|
|
.observe(play::reset_rotation)
|
|
|
|
|
.observe(play::toggle_selected);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -62,7 +63,17 @@ pub(crate) fn setup_camera(mut commands: Commands) {
|
|
|
|
|
pub(crate) struct CheckSet;
|
|
|
|
|
|
|
|
|
|
pub(crate) fn setup_set_check_button(mut commands: Commands) {
|
|
|
|
|
commands.spawn(Node::default()).with_children(|parent| {
|
|
|
|
|
commands
|
|
|
|
|
.spawn((
|
|
|
|
|
Node {
|
|
|
|
|
width: Val::Percent(100.0),
|
|
|
|
|
flex_direction: FlexDirection::Column,
|
|
|
|
|
align_items: AlignItems::Center,
|
|
|
|
|
..default()
|
|
|
|
|
},
|
|
|
|
|
BackgroundColor(Color::BLACK.with_alpha(0.8).into()),
|
|
|
|
|
))
|
|
|
|
|
.with_children(|parent| {
|
|
|
|
|
parent
|
|
|
|
|
.spawn((Button, CheckSet, BackgroundColor(TEAL.into())))
|
|
|
|
|
.with_children(|parent| {
|
|
|
|
|
|