Page MenuHomeWildfire Games

Make messageBox return a promise
Needs ReviewPublic

Authored by phosit on Wed, May 29, 5:51 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Split from D5271

Ofthen the messageBox is only used for confirmation like: "Do you really want to overwrite the savegame?"
For example with this patch the code paths of "overwrite savegame" and "make new savegame" can be combined.

In some cases there is nothing done when one button is pressed. That is changed to an early return.

Test Plan

Test different messageBoxes.

Event Timeline

phosit created this revision.Wed, May 29, 5:51 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/9447/display/redirect

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7778/display/redirect

The credentieals is a good example what this diff tries to achieve.
Removing replays too, but more complex.

phosit published this revision for review.Wed, May 29, 6:42 PM