Attract-Mode Support > Scripting

How to put cabinet artwork in layouts?

(1/1)

wrybread:
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?



keilmillerjr:
You need to set up “cabinets” as artwork in the config file or with the tab menu.

wrybread:
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.

markc74:
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.

wrybread:
Aha! Indeed that was it! Thank you.

Navigation

[0] Message Index

Go to full version