Add note about Sam's music

main
Elijah Voigt 1 year ago
parent 6c9bb27b8e
commit 6c8a289ad6

@ -31,7 +31,8 @@ impl Plugin for MenuPlugin {
setup_sets, setup_sets,
setup_alert, setup_alert,
), ),
); )
.add_systems(OnEnter(ViewState::Play), enable_continue);
} }
} }
@ -84,9 +85,13 @@ fn setup(mut commands: Commands, server: Res<AssetServer>) {
)); ));
parent parent
.spawn(button_builder(Node::default())) .spawn((
button_builder(Node::default()),
Visibility::Hidden,
ContinueButton,
))
.with_children(|parent| { .with_children(|parent| {
parent.spawn(Text("Play".to_string())); parent.spawn(Text("Continue".to_string()));
}) })
.observe(button_hover_on) .observe(button_hover_on)
.observe(button_hover_off) .observe(button_hover_off)
@ -330,7 +335,7 @@ fn setup_about(mut commands: Commands) {
}, },
)); ));
parent.spawn(( parent.spawn((
Text("This videogame version was developed by Elijah Voigt.".into()), Text("This videogame version was developed by Elijah Voigt with music by Sam Hall.".into()),
Node { Node {
margin: UiRect::all(Val::Px(5.0)), margin: UiRect::all(Val::Px(5.0)),
padding: UiRect::all(Val::Px(5.0)), padding: UiRect::all(Val::Px(5.0)),
@ -569,3 +574,10 @@ fn setup_alert(mut commands: Commands) {
fn ui_alert(trigger: Trigger<UiMessage>, mut query: Query<&mut Text, With<Alert>>) { fn ui_alert(trigger: Trigger<UiMessage>, mut query: Query<&mut Text, With<Alert>>) {
query.single_mut().0 = trigger.event().0.clone(); query.single_mut().0 = trigger.event().0.clone();
} }
#[derive(Component)]
struct ContinueButton;
fn enable_continue(mut it: Single<&mut Visibility, With<ContinueButton>>) {
**it = Visibility::Inherited;
}

@ -1,11 +1,7 @@
TODO: TODO:
* for testing, hotkeys h and enter for help and submit respectively
* there is a "new game" bug where I think SetNumber is not cleaned up properly
* new game should work
* A deck with face-down card(s)
* Make "set" button visually interesting when 3 cards selected * Make "set" button visually interesting when 3 cards selected
* Better shuffling * Make menus consistent
Later: Later:
* View all cards with some indication of in-set
* Make button(s) look pretty * Make button(s) look pretty
* for testing, hotkeys h and enter for help and submit respectively

Loading…
Cancel
Save