Merge lp:~widelands-dev/widelands/save_dialog_improvements into lp:widelands
Proposed by
cghislai
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 6624 | ||||
Proposed branch: | lp:~widelands-dev/widelands/save_dialog_improvements | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
482 lines (+135/-38) 11 files modified
src/game_io/game_preload_data_packet.cc (+20/-7) src/logic/game.cc (+12/-6) src/logic/game.h (+2/-2) src/save_handler.cc (+5/-5) src/save_handler.h (+11/-8) src/ui_fsmenu/loadgame.cc (+17/-2) src/ui_fsmenu/loadgame.h (+3/-0) src/ui_fsmenu/loadreplay.cc (+26/-2) src/ui_fsmenu/loadreplay.h (+3/-0) src/wui/game_main_menu_save_game.cc (+33/-5) src/wui/game_main_menu_save_game.h (+3/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/save_dialog_improvements | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
cghislai (community) | Approve | ||
SirVer | Needs Fixing | ||
Review via email: mp+174566@code.launchpad.net |
Description of the change
I added extra info already preloaded in the various io dialogs : save game, load game and load replay.
I also added a field in the game SaveHandler to remember a loaded savegame filename. When opening the save dialog, the entries are parsed and the corresponding filename is selected. Otherwise, no selection is performed and the field is left blank.
To retrieve the localized string for the win condition, the scripts are loaded in the dialog constructors (or on each selection in for replays), and run on each selection. I am not sure if they are cached or not. Code has been ported from the launchSGP dialog.
To post a comment you must log in.
I did a review in r6620. There is some code duplication which should be factored into a method and a bunch of comments. As before just grep() for #cghislai to find all comments or look at the diff.