Lacro59 / playnite-successstory-plugin

This plugin shows the game achievements in Playnite.
https://playnite.link
MIT License
184 stars 34 forks source link

Feature Request for Sorting Achievements by Unlock Date in Fullscreen Mode #538

Closed Mike-Aniki closed 4 weeks ago

Mike-Aniki commented 1 month ago

Hello,

I’m a Fullscreen theme developer, and I have integrated your excellent SuccessStory plugin into several of my themes. I’m really pleased with how the plugin allows users to navigate and view their achievements, both unlocked and locked.

However, unlike the Desktop version, the achievements are not sorted by unlock date in Fullscreen mode. Currently, they appear in a random order, which can make it harder for users who prefer to see their most recently unlocked achievements first.

To give you a glimpse of how the SuccessStory plugin is integrated into my Fullscreen themes, I’ve attached some screenshots of the trophy view. As you can see, the achievements are currently displayed without any specific sorting. Adding a sort by unlock date would greatly enhance the readability and user experience.

I would like to know if it’s possible to implement the same unlock date sorting in Fullscreen mode, similar to what’s already done in the Desktop version.

Here’s an excerpt from the code-behind you use for the Desktop version, which performs the sorting :

ListviewGames.SortingDefaultDataName = PluginDatabase.PluginSettings.Settings.NameSorting;
ListviewGames.SortingSortDirection = (PluginDatabase.PluginSettings.Settings.IsAsc) ? ListSortDirection.Ascending : ListSortDirection.Descending;
ListviewGames.Sorting();

I would like to know if there’s a method or option to apply a similar unlock date sorting in the Fullscreen view.

Context: In my themes, unlocked and locked achievements are displayed in a ListView through the following binding :

<ListView x:Name="AchievementList" ItemsSource="{PluginSettings Plugin=SuccessStory, Path=ListAchievements}">

I don’t have access to the code-behind in Fullscreen mode, which limits the sorting manipulations I can perform directly in the XAML. This is why I’m asking if it’s possible to add or expose a way to sort achievements by unlock date in this mode.

If it’s possible, a feature that allows setting the achievements to be sorted by unlock date (with descending order by default) in Fullscreen mode would be highly appreciated. I believe this feature would significantly enhance the user experience in Fullscreen mode, where chronological sorting is often preferred for achievement management.

Thank you in advance for your response and for your work on this plugin !

unknown_2024 10 04-21 42