Page MenuHomeWildfire Games

Move the game loading out of the SavegameLoader
Needs ReviewPublic

Authored by phosit on Sat, Sep 16, 2:45 PM.

Details

Reviewers
Freagarach
Summary

The SavegameLoader should not know that it has to start a game afterwards.
Note: Now if there's an Error in Engine.StartSavedGame(gameId); the Dialog is still closed.

This simplifies D4770.

Test Plan

Load a game from the from the main menu and the campain page.
Also test other ways the dialog can be closed (cancel, saveing of a game).

Event Timeline

phosit created this revision.Sat, Sep 16, 2:45 PM

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

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

There is duplication but i didn't know where to put the function. Propably "gui/common/functions_global_object.js"

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8379/display/redirect

phosit requested review of this revision.Sat, Sep 16, 3:03 PM
phosit updated this revision to Diff 22276.Sun, Sep 17, 5:56 PM
phosit edited the summary of this revision. (Show Details)

Make it a member function in CampaignMenu.

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

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

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8391/display/redirect

phosit updated this revision to Diff 22280.Mon, Sep 18, 6:47 PM
  • Add forgoten .bind(this)
  • Inline pData

Based on a review by elexis.

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

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

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8393/display/redirect

phosit updated this revision to Diff 22315.Sun, Sep 24, 3:51 PM

Use .bind instead of arrow functions more often.
Correct a indent mistake.

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

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

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8418/display/redirect