feat: add dynamic collections, manual ordering and game details list
- Add dynamic collections filled by rules: condition blocks combined with AND/OR, a rule builder with live preview, and automatic updates when games change, on startup and after library updates - Add manual game ordering by drag and drop, context menu and Alt+arrow keys - Show the selected game's collections below the description in the game details view, as a theme element or inserted automatically - Add settings to turn off the automatic list and to hide dynamic collections from it - Add "Open in Collections" to the collection window opened from game details - Migrate collections.json step by step using SchemaVersion, keeping a copy of the old file - Add developer and theme integration docs - Bump version to 1.1.0
This commit is contained in:
1 parent
72e35002f7
commit
690a79b014
41 files changed
+3739
-52
No files matched your search
@@ -0,0 +1,40 @@
|
||||
# Theme integration
|
||||
|
||||
For theme authors. Everything here is optional: Game Collections works in themes that do none of it.
|
||||
|
||||
## Collections list
|
||||
|
||||
Shows the collections of the selected game, each with its poster. Clicking one opens it. The list collapses itself when
|
||||
the game is in no collection or no single game is selected.
|
||||
|
||||
By default, the extension inserts the list below the game description in any theme that keeps Playnite's standard
|
||||
description or notes section. To choose the position yourself, add this anywhere in a game details view:
|
||||
|
||||
```xml
|
||||
<ContentControl x:Name="GameCollections_CollectionsControl" />
|
||||
```
|
||||
|
||||
When your theme has this element, the extension doesn't insert a second list, and your list stays visible even if the
|
||||
user turns off **Show collections in details view**. The list shown there includes dynamic collections unless the user
|
||||
turns off **Display dynamic collections in details view**.
|
||||
|
||||
## Settings available to themes
|
||||
|
||||
Bind to these with `PluginSettings`:
|
||||
|
||||
| Path | Type | Meaning |
|
||||
|---|---|---|
|
||||
| `IsDetailsControlVisible` | `bool` | The list currently has collections to show. Use it to hide a surrounding header or panel. |
|
||||
| `ShowDynamicCollectionsInDetails` | `bool` | The user's choice for listing dynamic collections. |
|
||||
| `AddDetailsListToAnyTheme` | `bool` | The user's choice for inserting the list automatically. |
|
||||
|
||||
```xml
|
||||
<Border Visibility="{PluginSettings Plugin=GameCollections, Path=IsDetailsControlVisible, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
<ContentControl x:Name="GameCollections_CollectionsControl" />
|
||||
</Border>
|
||||
```
|
||||
|
||||
## Compatibility
|
||||
|
||||
Keep the element name and these setting names stable across themes: they're treated as public, and any future
|
||||
changes or new integration points will be listed in this file.
|
||||
Reference in new issue
Block a user