Darknior / RVGM-BT-Theme

RVGM Theme for Batocera
GNU General Public License v3.0
35 stars 18 forks source link

Feature Question/Request: ViewDetailed.xml and Front/Back cover behaviour #42

Open 89carrot opened 2 years ago

89carrot commented 2 years ago

Good Day, I would like to thank you for such and excellent theme! It really captures the spirit of retro gaming and it's my #1 favourite theme.

I had a few questions around ViewDetailed.xml as I use this view:

Would there be a way for the theme to look for 3d front cover art in a particular folder and use it as the front cover? And if it doesn't exist it could default back to the 2d front cover?

Also, how can I change the duration of the front and back covers cycling? I notice it switches to the back cover after 5 seconds and it doesn't switch back to the front unless I switch to another game and back.

Thank you

89carrot commented 2 years ago

For item 2 I found a workaround using this type of code, but wondering if there is a better way to just repeat the cycling in the code?

        <storyboard event="activateNext">        
            <animation property="opacity" from="0" to="1" begin="5000" duration="20" mode="linear"/>
            <animation property="opacity" from="1" to="0" begin="10000" duration="20" mode="linear"/>
            <animation property="opacity" from="0" to="1" begin="15000" duration="20" mode="linear"/>
        </storyboard>
        <storyboard event="activatePrev">        
            <animation property="opacity" from="0" to="1" begin="5000" duration="20" mode="linear"/>
            <animation property="opacity" from="1" to="0" begin="10000" duration="20" mode="linear"/>
            <animation property="opacity" from="0" to="1" begin="15000" duration="20" mode="linear"/>

So it's just item 1 I'm mostly interested in finding a solution to use 3d front covers if they exist and default to 2d if not found.

Thanks

Darknior commented 2 years ago

Thanks a lot for your message :)

For the BACK COVER i switch after 5 sec and i don't revert to let user read the back cover, but why not, it is possible to modify it with a loop animation to change it every 5 sec. But note that i show him in front of front cover, and not hide the front coder, because if the back cover not exist you will see nothing every 5 sec. The only way is to make it in front of it.

For the 3D boxart, we can add it too, like the back cover, you must add it where i go to search the 2D cover, and if it not found one it will take the other, you can watch how it works on all other images, there is an order. And your 3D covers must be in your gamelist with an other name. Or you can too, andd an option in the theme to let the user choose 2D cover or 3D cover.

For exemple in your gamelist you can use "mix" for 3D covers

89carrot commented 2 years ago

Thanks for your prompt reply!

That is good to know how the Back Cover element works. Yes that would be great if there was an option to change every 5 and 10 seconds.

For 3D boxart, yes I could make sure to have a separate folder and tag that the gamelist.xml reads for 3D boxart (such as "mix" or "3d" etc. So it's possible that you could add an option to look for 3D boxart and use that if found? Or are you saying that the 2D and 3D art needs to be in the same folder? That might be tough because I believe the same name,

Thanks

Darknior commented 2 years ago

It is possible to add an option for the two features. But for now like you have seen i'm working to add all the missing systems ... if you can try to code them it will help me. If not you will must stand some time, that i do it myself :(

89carrot commented 2 years ago

I will see if I can code them.

I am stuck on the 3d boxart though. It won't load. my tag is "3dbox" and I'm just replacing "boxback" in viewdetailed.xml

Is there somewhere else in the config that I need to set "3dbox" as a supported tag? Or does ES not recognize that as a tag in gamelist.xml?

Thanks

Darknior commented 2 years ago

like I've write you , use mix or a REAL TAG that EXIST in ES !!!! If you invent something it will not read it ;)

https://github.com/batocera-linux/batocera-emulationstation/blob/master/es-app/src/MetaData.cpp

There are all listed there 👍

"boxart" can be a good idea ? "mix" is more used to mixed images in one and i want to let it available for users that use it

89carrot commented 2 years ago

That's perfect - I could not find the supported tags anywhere! I'll see what I can come up with.

Thanks again for your help!