Author Topic: [WIP] [Help] Theme For RPI GamingMediaCenter  (Read 6750 times)

zapoc

  • Newbie
  • *
  • Posts: 3
    • View Profile
[WIP] [Help] Theme For RPI GamingMediaCenter
« on: May 16, 2016, 06:31:56 PM »
Hi all!

Its 1080p Theme based on Verticool layout and inspirate of Velvet layout for my RPI :
« Last Edit: May 17, 2016, 05:13:26 AM by zapoc »

zapoc

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [WIP] [Help] Theme For RPI GamingMediaCenter
« Reply #1 on: May 17, 2016, 05:13:01 AM »
Hi all, i need Help :


How to make it so there is no artwork for games I can display a background content in my layout file. it's possible?


Comment faire pour que si il n'existe pas d'artwork pour un jeux je puisse afficher un background contenu dans mon dossier layout. c'est possible?

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 320
  • He who laughs lasts.
    • View Profile
Re: [WIP] [Help] Theme For RPI GamingMediaCenter
« Reply #2 on: May 17, 2016, 05:49:50 PM »
If you have no artwork for a specific game you could use the emulator name for a folder/path and any images in there will be chosen randomly.

___
From http://attractmode.org/docs/Readme.html
ARTWORK SELECTION ORDER:

From the artwork paths configured for the emulator (if any) and the previously scraped artworks (if any):

[Name].* (video, i.e. "pacman.mp4")
[CloneOf].* (video, i.e. "puckman.mp4")
[Name].* (image, i.e. "pacman.jpg")
[CloneOf].* (image, i.e. "puckman.png")
[Emulator].* (video, i.e. "mame.avi")
[Emulator].* (image, i.e. "mame.gif")
From the layout path for the current layout (layouts are located in the "layouts" subdirectory):

[Emulator]-[ArtLabel].* (video, i.e. "mame-marquee.mp4")
[Emulator]-[ArtLabel].* (image, i.e. "mame-marquee.png")
[ArtLabel].* (video, i.e. "marquee.avi")
[ArtLabel].* (image, i.e. "marquee.png")
If no files are found matching the above rules, then the artwork is not drawn.

If no file match is found, Attract-Mode will check for a subdirectory that meets the match criteria. If a subdirectory is found (for example a "pacman" directory in the configured artwork path) then Attract-Mode will then pick a random video or image from that directory.

zapoc

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [WIP] [Help] Theme For RPI GamingMediaCenter
« Reply #3 on: May 18, 2016, 01:51:21 PM »
Oïe thx bionictoothpick.

But i don't understand how to adapt this in the original layout (Verticool).

I try that for the background:

Code: [Select]
if (my_config["bg_image"]=="snap") {
 local getSnap = fe.get_art("snap");
 if (getSnap==""){
 local snapbg = fe.add_artwork("snes.png",0-(flw*0.1),0-(flh*0.1),flw*1.2,flh*1.2);
 }
 local bg=fe.add_artwork("snap",0-(flw*0.1),0-(flh*0.1),flw*1.2,flh*1.2);
 bg.video_flags=Vid.ImagesOnly;
 bg.preserve_aspect_ratio=false;
 bg.set_rgb(128,128,128);
}

but snes.png and "snap" artwork are loaded...