Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#4413 closed enhancement (fixed)

[PATCH] Add columns to load window and remove a path

Reported by: Vladislav Belov Owned by: Vladislav Belov
Priority: Should Have Milestone: Alpha 22
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

The load menu could be improved by replacing list by olist, and removing a path to each map.

Attachments (4)

4413_load.patch (6.7 KB ) - added by Vladislav Belov 7 years ago.
Adds olist and removes a path
load.png (276.2 KB ) - added by Vladislav Belov 7 years ago.
load2.png (438.5 KB ) - added by Vladislav Belov 7 years ago.
4413_load.2.patch (8.9 KB ) - added by Vladislav Belov 7 years ago.
Adds olist, checkbox and removes paths

Download all attachments as: .zip

Change History (19)

by Vladislav Belov, 7 years ago

Attachment: 4413_load.patch added

Adds olist and removes a path

comment:1 by Vladislav Belov, 7 years ago

Keywords: patch rfc added
Milestone: BacklogWork In Progress
Owner: set to Vladislav Belov
Status: newassigned
Summary: Add columns to load window and remove a path[PATCH] Add columns to load window and remove a path

by Vladislav Belov, 7 years ago

Attachment: load.png added

comment:2 by Vladislav Belov, 7 years ago

Before / After / After (empty list):

http://trac.wildfiregames.com/raw-attachment/ticket/4413/load.png

Last edited 7 years ago by Vladislav Belov (previous) (diff)

comment:3 by Vladislav Belov, 7 years ago

Probably add/remove other information, any suggestions are welcome.

Last edited 7 years ago by Vladislav Belov (previous) (diff)

comment:4 by Vladislav Belov, 7 years ago

I will add few clears later, if there won't any suggestion.

comment:5 by elexis, 7 years ago

The brackets are not needed around the date. Filters may or may not be added (mimo didn't like them in the replay menu, but I find them practical to find games. Not sure if the use case is equally applicable). A compatibility that is disabled by default would be useful though. That map title is translated? Screenshot and code look good at first glance.

in reply to:  5 comment:6 by Vladislav Belov, 7 years ago

Replying to elexis:

The brackets are not needed around the date.

Ok.

Filters may or may not be added (mimo didn't like them in the replay menu, but I find them practical to find games. Not sure if the use case is equally applicable). A compatibility that is disabled by default would be useful though.

I'm thinking about compatibility too, I'm not sure that filters would be useful as for replays, because the number of saves is less.

That map title is translated?

Yes.

by Vladislav Belov, 7 years ago

Attachment: load2.png added

comment:7 by Vladislav Belov, 7 years ago

OList with the filter checkbox (is disabled by default - all saves are visible):

http://trac.wildfiregames.com/raw-attachment/ticket/4413/load2.png

by Vladislav Belov, 7 years ago

Attachment: 4413_load.2.patch added

Adds olist, checkbox and removes paths

comment:8 by mimo, 7 years ago

As i was mentionned before as not being in favor of such changes, I'd like to say that i find the load_2.png layout nice and i'm fine with such a patch :-)

comment:9 by elexis, 7 years ago

(Only meant the new filters in the replay menu)

in reply to:  9 comment:10 by mimo, 7 years ago

Replying to elexis:

(Only meant the new filters in the replay menu)

sure, np, i just wanted to make it clear that i've no objection against this patch.

comment:11 by Imarok, 7 years ago

l8: why not just engineInfo && hasSameSavegameVersion(metadata, engineInfo) && hasSameEngineVersion(metadata, engineInfo) && hasSameMods(metadata, engineInfo)?

in reply to:  11 comment:12 by Vladislav Belov, 7 years ago

Replying to Imarok:

l8: why not just engineInfo && hasSameSavegameVersion(metadata, engineInfo) && hasSameEngineVersion(metadata, engineInfo) && hasSameMods(metadata, engineInfo)?

Good point.

Last edited 7 years ago by Vladislav Belov (previous) (diff)

comment:13 by elexis, 7 years ago

Keywords: rfc removed
Milestone: Work In ProgressAlpha 22

Thanks for the improvement!

Fixed by r19351:

Add sortable columns to the loading screen and a compatibility filter for saved games.

Replace the unexplained orange and red colorization and replace it with the greyout equal to the replay menu, as the difference between compatibility types is explained when trying to load the game. Rename the ambiguous generateLabel to generateSavegameLabel.

Patch By: Vladislav Differential Revision: ​https://code.wildfiregames.com/D246

comment:14 by elexis, 7 years ago

Resolution: fixed
Status: assignedclosed

comment:15 by elexis, 5 years ago

In 22923:

Unify loadgame and savegame dialog following rP13579, refs #2030.

This way the save dialog gains the sortable list and details section feature from rP19351 / D246 by removing a folder of code, refs #4413.
Fixes a style warning about the old dialog using a style for an 'olist' type for a 'list' type, refs rP22792 / D2232.

Subsequently move the gui/common/ helper file to the page code, meaning it's not loaded for every GUI page needlessly anymore.
Fix map preview aspect ratio.
Use object-oriented code for the moved savegame code, refs #5387, but conserve the rest of the code to limit the changes for auditability.

Differential Revision: https://code.wildfiregames.com/D2290
Tested on: Jenkins

Note: See TracTickets for help on using tickets.