Skip to content

Returns to the scenario menu after winning a game #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 18, 2022

Conversation

TristanCacqueray
Copy link
Collaborator

This change slightly improves the navigation by saving
the menu position so that the user gets back to the next
tutorial or challenge after winning a game.

This change slightly improves the navigation by saving
the menu position so that the user gets back to the next
tutorial or challenge after winning a game.
Copy link
Member

@xsebek xsebek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels great to be back in the menu where I just was 👍

Maybe I am missing something, but how do I quit the game fastest now?
It used to be CtrlQ then -> and Enter and then finally CtrlQ again in the menu, but now I have to press it as many times as I am deep in scenario hierarchy.

@TristanCacqueray
Copy link
Collaborator Author

@xsebek b933c11 should restore that workflow, e.g. CtrlQ now quit the game from any menu.

@xsebek
Copy link
Member

xsebek commented Jun 18, 2022

@TristanCacqueray you can tick the checkbox in #356 after you merge this, sadly it did not get its own issue. 😉

@TristanCacqueray TristanCacqueray added the merge me Trigger the merge process of the Pull request. label Jun 18, 2022
@mergify mergify bot merged commit 59da903 into swarm-game:main Jun 18, 2022
@TristanCacqueray
Copy link
Collaborator Author

Oops, I merged too soon. When starting the game with the -s argument, then the exit dialog no longer exit the game.

TristanCacqueray added a commit that referenced this pull request Jun 18, 2022
This change fixes an issue introduced with #422 when the game
is started directly using the `-s` command line argument.
The new behavior is to halt the game when no previous menu
is set.
@xsebek
Copy link
Member

xsebek commented Jun 18, 2022

@TristanCacqueray yes, but that was the old behaviour, so I don't blame you for not changing that in this PR 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants