eMixedNiteMC icon indicating copy to clipboard operation
eMixedNiteMC copied to clipboard

Integrate Duplicate Hider's conditional/contextual Play Button

Open Jordyn11 opened this issue 2 years ago • 3 comments

Requesting that the conditional play button is implemented into the theme allowing for the play button to display available sources for games where duplicate hider has hidden duplicates. The DH_Night Theme has implemented this as an worked example.

Screenshot from Dupe Hider Github here: image

Further details can be found via the following xml example from Dupe Hider Github: https://github.com/felixkmh/DuplicateHider/blob/master/UiIntegrationExamples/UiIntegrationDetailsViewExample/DetailsViewGameOverview.xaml

The specific use case I am looking to solve is to be able utilise duplicate hider to manage mame roms without having manually merge duplicates as this would allow duplicte hider to do the heavy lifting and then use the play button to select a specific version.

Jordyn11 avatar Feb 14 '23 09:02 Jordyn11

Put some time into this in version 3.6 but could not find a way to make it look like I wanted. Unable to set CornerRadius on the ContentControl of this extention. Will put more time into this on next update!

MCC321-QC avatar Oct 14 '24 15:10 MCC321-QC

Put some time into this in version 3.6 but could not find a way to make it look like I wanted. Unable to set CornerRadius on the ContentControl of this extention. Will put more time into this on next update!

Nps. Appreciate the update and the efforts and happy to see you returning to the best theme on Playnite!

Jordyn11 avatar Oct 14 '24 20:10 Jordyn11

So I retried to integrate the "PlayButtonExt" control from Duplicate Hider like seen here and I got further with the integration but I ran into a problem. I was not able to fix it and it kind ruin everything even if it works, so I reverted the changes and this will have to wait again for another update, I may need to get help from the community for this one because I tried to integrate this in another theme and it worked perfectly so the problem come from eMixedNiteMC. Anyway Ive put way too much time on this (almost all night) so I will post the changes I made before reverting it so you guys can use the files and maybe help me find the solution.

Here is the problem DuplicateHider PlayButton

Files to put in ..\Playnite\Themes\Desktop\eMixedNiteMC\Views : DetailsViewGameOverview.xaml GridViewGameOverview.xaml

File to put in ..\Playnite\Themes\Desktop\eMixedNiteMC\DefaultControls : Expander.xaml

MCC321-QC avatar Oct 20 '24 10:10 MCC321-QC