Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: wrybread on February 12, 2018, 11:01:35 PM

Title: How to put cabinet artwork in layouts?
Post by: wrybread on February 12, 2018, 11:01:35 PM
I'm trying to put pictures of the arcade cabinets behind the list of games during scrolling. I can show the marquee with:

   local snap = fe.add_artwork( "marquee", 0, 0,  fe.layout.width,  fe.layout.height );

And snapshots with:

   local snap = fe.add_artwork( "snap", 0, 0,  fe.layout.width,  fe.layout.height );

But I can't figure out how to show the cabinets. I have a folder called "cabinets", but changing that keyword to cabinet doesn't work.

Any ideas?



Title: Re: How to put cabinet artwork in layouts?
Post by: keilmillerjr on February 13, 2018, 01:39:22 AM
You need to set up “cabinets” as artwork in the config file or with the tab menu.
Title: Re: How to put cabinet artwork in layouts?
Post by: wrybread on February 13, 2018, 01:48:37 AM
Sorry I should have mentioned, I'm writing my own plugin.

I tried changing the word "snap" to "cabinet" or "cabinets", but it's not working.
Title: Re: How to put cabinet artwork in layouts?
Post by: markc74 on February 13, 2018, 05:24:17 PM
I think what keilmillerjr is saying is that you need to set it up in the tab menu before you can reference it in your scripts.

When attract mode is running, press TAB, navigate to Emulators, and then MAME (assuming that's what you're using) and make sure you have the artwork setup for cabinets - see the attached screenshot for what I mean.
Title: Re: How to put cabinet artwork in layouts?
Post by: wrybread on February 22, 2018, 12:55:34 AM
Aha! Indeed that was it! Thank you.