[PATCH] Sorting buttons -- IN PROGRESS
Moderator: Committer
[PATCH] Sorting buttons -- IN PROGRESS
I'm trying to make some buttons to sort the sidepanel planets by Population, Farming, etc. and I have an idea how to do it, but because it changes the interface I thought I should consult with others about the position of the buttons in the sidepanel. Please give your opinion in the replies. Also, if this is already in progress somewhere else or has been done already, let me know.
EDIT So far, all new code is in the SidePanel.cpp
EDIT So far, all new code is in the SidePanel.cpp
Last edited by iksi99 on Tue Jul 03, 2012 1:38 pm, edited 1 time in total.
Ilija Anastasijević - iksi99
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [PATCH] Sorting buttons -- IN PROGRESS
Something like this, with droplists to select a sorting method, and a better-centred resource summary...
- Attachments
-
- Current Layout (left) and Mockup (right)
- SidePanel_Sort_Show.png (114.5 KiB) Viewed 1704 times
Re: [PATCH] Sorting buttons -- IN PROGRESS
OK, will do.Geoff the Medio wrote:Something like this, with droplists to select a sorting method, and a better-centred resource summary...
Ilija Anastasijević - iksi99
- eleazar
- Design & Graphics Lead Emeritus
- Posts: 3858
- Joined: Sat Sep 23, 2006 7:09 pm
- Location: USA — midwest
Re: [PATCH] Sorting buttons -- IN PROGRESS
I'm not sure sorting is desirable in the side panel. It is a very short list, so sorting adds little, and destroys the spatial recognition part.
We definitely need a sortable planet list, but IMHO it should be for all known planets, not just the ones in a single system.
Filtering the sidepanel, maybe by "All", "Yours", and "Inhabited" might be useful in the side panel, maybe reducing the filtered-out planets to a minimized view.
We definitely need a sortable planet list, but IMHO it should be for all known planets, not just the ones in a single system.
Filtering the sidepanel, maybe by "All", "Yours", and "Inhabited" might be useful in the side panel, maybe reducing the filtered-out planets to a minimized view.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [PATCH] Sorting buttons -- IN PROGRESS
Whether filtering / collapsing some, or sorting, is better, I'm not sure, but I vaguely recall sorting being requested a few times... But some sort of display adjustment on the list would be good, as it's annoying to have to scroll down to the single populated planet in a system with 8 or so planets.eleazar wrote:I'm not sure sorting is desirable in the side panel. It is a very short list, so sorting adds little, and destroys the spatial recognition part.
- eleazar
- Design & Graphics Lead Emeritus
- Posts: 3858
- Joined: Sat Sep 23, 2006 7:09 pm
- Location: USA — midwest
Re: [PATCH] Sorting buttons -- IN PROGRESS
Ah, that's a very legitimate complaint. I'd forgotten about that with my nice big screen.Geoff the Medio wrote:...But some sort of display adjustment on the list would be good, as it's annoying to have to scroll down to the single populated planet in a system with 8 or so planets.
But if that is the core issue, i think it would best be solved by making the sidebar remember its scroll position for each system. It is always nice to find things where you left them.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [PATCH] Sorting buttons -- IN PROGRESS
It's also easy to miss a planet that's scroll off when looking through systems that haven't previously been scrolled through. Having sorting or hiding options so the important ones are on the top / less important ones shrunk would avoid this and be more usable.eleazar wrote:But if that is the core issue, i think it would best be solved by making the sidebar remember its scroll position for each system. It is always nice to find things where you left them.
- eleazar
- Design & Graphics Lead Emeritus
- Posts: 3858
- Joined: Sat Sep 23, 2006 7:09 pm
- Location: USA — midwest
Re: [PATCH] Sorting buttons -- IN PROGRESS
By what criterion can you sort/hide planets that won't increase the incidence of not seeing planets you would probably wish you had seen? A player too lazy to scroll down the list is not going to change his filter mode frequently enough to avoid missing even more significant planets.Geoff the Medio wrote:It's also easy to miss a planet that's scroll off when looking through systems that haven't previously been scrolled through. Having sorting or hiding options so the important ones are on the top / less important ones shrunk would avoid this and be more usable.eleazar wrote:But if that is the core issue, i think it would best be solved by making the sidebar remember its scroll position for each system. It is always nice to find things where you left them.
For the issue of it sometimes being non-obvious that there are more planets off the screen, the direct solution is to increase the visibility of the scrollbar, such as pictured here:
As for a compressed sidebar to take up less space and help you focus on more relevant planets, i present this concepts. (i forgot to do the control buttons).
Basically, i imagine you could toggle between minimizing "None", "Uninhabited", or "Not Yours". It would also be nice for instance on the production screen, where planets that you can't build anything on could automatically all be minimized.
EDIT: FYI, in this example, the compressed planets take up 50% as much vertical space.
Re: [PATCH] Sorting buttons -- IN PROGRESS
Like the compressed sidebar. Brilliant!
Re: [PATCH] Sorting buttons -- IN PROGRESS
I think the best solution is to implement a bit of everything. Agreed?
Ilija Anastasijević - iksi99
- eleazar
- Design & Graphics Lead Emeritus
- Posts: 3858
- Joined: Sat Sep 23, 2006 7:09 pm
- Location: USA — midwest
Re: [PATCH] Sorting buttons -- IN PROGRESS
That's too vague to agree with.iksi99 wrote:I think the best solution is to implement a bit of everything. Agreed?
What problem specifically are you trying to address?
Re: [PATCH] Sorting buttons -- IN PROGRESS
Well, some form of sorting and/or filtering was requested on the tracker page on Sourceforge. So, it's a feature request.eleazar wrote:That's too vague to agree with.iksi99 wrote:I think the best solution is to implement a bit of everything. Agreed?
What problem specifically are you trying to address?
Ilija Anastasijević - iksi99
Re: [PATCH] Sorting buttons -- IN PROGRESS
I think I'll start working tomorrow. It'll be a droplist used for filtering. Also, can someone tell me how does the PlanetPanelContainer sort planets? I can't find the code anywhere!
Ilija Anastasijević - iksi99
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [PATCH] Sorting buttons -- IN PROGRESS
It doesn't; when SetPlanets is called, it iterates over the vector of planet ids passed in, and fills its internal vector of PlanetPanels in the order of the passed-in ids.iksi99 wrote:I...how does the PlanetPanelContainer sort planets? I can't find the code anywhere!
Re: [PATCH] Sorting buttons -- IN PROGRESS
I'm not at all fond of the idea of actually removing planets from the sidepanel view. A filter is fine, but it should, IMO, reduce the size of the panels for planets that don't match the filter condition, as in eleazar's mockup.
Warning: Antarans in dimensional portal are closer than they appear.