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

Achievement completed popup #42829

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

jbytheway
Copy link
Contributor

@jbytheway jbytheway commented Aug 9, 2020

Summary

SUMMARY: Interface "Optional popup window when completing achievements"

Purpose of change

Achievements are still not very obvious. In most games, getting an achievement comes with some kind of popup window. We should have something similar.

Describe the solution

Add such a window.

Add a new Interface option to select how often that popup occurs. By default it's every time you get an achievement for the first time (i.e. one you haven't had in a previous game). But you can also select always or never to have it.

At the same time, fixed a bug introduced in #42731 related to loading memorial files from games of a certain age which contain events but no game_start event.

Describe alternatives you've considered

Would have been nice to have a popup with a title, but I didn't want to make this more complex by adding messy UI code.

I would like a better way to wrap the help text at the bottom of the window (see screenshot below). For now I just hardcoded a newline, but I'd rather it be wrapped to the width of the achievement description. I could have written code to do that, but it seemed like it would be too much code for a very small improvement.

Testing

In-game testing under the default setting.

Additional context

This is a followup to #42731. With this change, I think the achievements system has achieved a minimal complete status where players should not be too confused by it. This is the last feature I'm hoping to get squeezed in before release, despite the feature freeze.

achievement-popup

Games of a certain age will have a json memorial file containing no
game_start event.  Currently such files cause a debugmsg, but they
shouldn't.  Handle that case differently.
Show a popup window when achievements are completed.  By default this is
shown only when someone gets an achievement that they have not completed
in any previous game.  But there is an option to either always or never
show such popups.
@ghost
Copy link

ghost commented Aug 9, 2020

Is there a way to make it pop up somewhere on the edge of the screen? Not in the middle. That's how other games usually display achievements.

@jbytheway
Copy link
Contributor Author

It's easy to put it at the top, since we already have code for that, but I think it's better to have it in the middle because the player needs to dismiss it. In other games where it appears at the edge of the screen it will go away by itself, but I didn't think a timed popup like that was a good choice for Cata's interface style.

@ZhilkinSerg ZhilkinSerg merged commit b171a69 into CleverRaven:master Aug 10, 2020
@jbytheway jbytheway deleted the achievement_completed_popup branch August 10, 2020 01:59
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.

2 participants