Author Topic: Some idea for theme design, anyone can teach me the coding? Thanks  (Read 13380 times)

kent79

  • Hero Member
  • *****
  • Posts: 859
    • View Profile
Hi All,

I have idea to add into reflectSpin and simpleCools theme, but don't know how coding. Anyone can help me? Thank you so much.   

In current layouts, preview video area is shown game's video. But when game's video is empty. It will show black screen. My question is, can we make it to show snap picture while game's video is empty? Anyone can write the code to do this? Thanks.

1. Check video exist or not
2. If exist, show video
3. If not exist , show snap
   
« Last Edit: October 30, 2015, 09:35:50 AM by kent79 »

kayser

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
Re: Some idea for theme design, anyone can teach me the coding? Thanks
« Reply #1 on: October 30, 2015, 11:03:42 AM »
i think if you give the path of videos and snaps in the config, when as no video will show a snap..

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Some idea for theme design, anyone can teach me the coding? Thanks
« Reply #2 on: October 31, 2015, 06:48:34 AM »
Kent79-

SNAPS > This has already been covered in the readme. If your media folder for like say mame doesn't have a video for a particular game then just drop a snap image with matching name in it.

Attract-Mode gives preference to videos over images when checking for artwork matches. If no video or image match is found, Attract-Mode will then check for a subdirectory that meets the match criteria. If a subdirectory is located (i.e. a "pacman" directory in the configured artwork path) then Attract-Mode will then pick a random video or image from that directory (with a preference for videos).

kent79

  • Hero Member
  • *****
  • Posts: 859
    • View Profile
Re: Some idea for theme design, anyone can teach me the coding? Thanks
« Reply #3 on: October 31, 2015, 06:25:04 PM »
Thank you all reply.  :)