Author Topic: How to put cabinet artwork in layouts?  (Read 48 times)

wrybread

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
How to put cabinet artwork in layouts?
« 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?




keilmillerjr

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
Re: How to put cabinet artwork in layouts?
« Reply #1 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.

wrybread

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Re: How to put cabinet artwork in layouts?
« Reply #2 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.

markc74

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: How to put cabinet artwork in layouts?
« Reply #3 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.