Tested it and it's working very well but jameson_uk had a few pretty good points:
1) Depends on the skin, in the current patch there is no config option (do we need one?).
2) It becomes pretty useless (@pilehave: can you disable it when sorted other then alphabetically?)
3) It will display the first character.
4) the patch doesn't introduce a new control, just skin properties (#scrolling.up, #scrolling.down, #selecteditem.firstchar)
This is an addition of a really neat feature that xmbc already has, so we should definately include this for 1.2 beta...
![]()
As far as I can tell it should be possible to expose the sortmethod in this function from GUIListControl.cs:
Code:public void Sort(IComparer<GUIListItem> comparer) { try { _listItems.Sort(comparer); } catch (Exception) { } _refresh = true; }
There you can disable the scrollcode if it is not sorted by name (which is alphabetically). But I'm not sure of how it would be correct to do it![]()
I had a look at it (also asked in irc) and seems that it isn't possible in GUIListController since the plugin can freely decide which sort option it offers...
After a discussion on IRC (thx @ SilentException) I would propose to add a new property to the facade control (GUIFacadeViewControl), default being disabled, so the plugin author can choose to enable this if he feels that the current sort method would benefit from showing the scroll item...
As for the internal plugins, this would mean that myvideos, mymusic, etc. would need to be updated so they would show the items only when sorted alphabetically.
Hope this makes sense...
Austria