Skip to content
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

Fixes Save request for new game not appearing #21962

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

tmatale
Copy link

@tmatale tmatale commented May 3, 2024

Resolves #21959

Instead of directly linking to the new game menu, it will first ask the user if you want to save the game if necessary. The SaveBeforeNewGame functionality was already present.

static void ScenarioSelectCallback(const utf8* path)
{
WindowCloseByClass(WindowClass::EditorObjectSelection);
GameNotifyMapChange();
Copy link
Member

Choose a reason for hiding this comment

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

These callbacks exist for scripting purposes. Are we sure they can just be removed?

Copy link
Member

Choose a reason for hiding this comment

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

Quite sure they can’t.

Copy link
Author

Choose a reason for hiding this comment

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

The new callback it is calling is referenced here. The changes will call this instead of the callback in the TopToolbar. If this will still have an affect on scripting then I can cancel this PR but it looks like this callback is only referenced in the location I changed.

@Gymnasiast Gymnasiast added this to the After v0.4.11 milestone May 4, 2024
@AaronVanGeffen AaronVanGeffen removed this from the After v0.4.11 milestone May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Save this before...?" message does not appear when selecting "New Game"
3 participants