Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: MAME .lay file that displays marquee and bezel in same lay file?  (Read 3786 times)

0 Members and 1 Guest are viewing this topic.

OldSkoolGamer

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:October 09, 2021, 10:17:58 am
Hi everyone,

I've been able to create my lay file to display the marquee image on the 2nd monitor. But I'm curious - is it possible to display the marquee on the 2nd monitor and the bezel/overlay image around the gameplay monitor as well in the same single .lay file?

I've been trying to research and create a lay file that can display both marquee and bezel in the same .lay file for my dual monitor cabinet but I've come up short in my attempts. Has anyone done this before and could provide me with their .lay file so I could see how its done and/or just update it to work with my cabinet setup?

I hope everyone is doing well :)

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: MAME .lay file that displays marquee and bezel in same lay file?
« Reply #1 on: October 07, 2021, 11:42:12 pm »
You can put as many views as you want into a single file. Just tell MAME which view to use with -view0 and -view1
(This is an older file version, as there are marquee elements now, but it still works)

Code: [Select]
<!-- puckman.lay -->
<mamelayout version="2">

<element name="bezel_pacman">
<image file="pacman.png" />
</element>

<element name="marquee_pacman">
<image file="pacman_artmarquee.png" />
</element>

<view name="Pacman Bezel">
<screen index="0">
<bounds left="987.5" top="850" right="3012.5" bottom="3550" />
</screen>
<bezel element="bezel_pacman">
<bounds left="0" top="0" right="4000" bottom="3659" />
</bezel>
</view>

<view name="Marquee Only">
<bezel element="marquee_pacman">
<bounds left="0" top="0" right="4000" bottom="1473" />
</bezel>
</view>
</mamelayout>

<!--
- Original Vector Artwork (Bezels) by Zorg, BYOAC
- Original Vector Artwork (Cocktail) by tbombaci
- HI-RES Raster Artwork for MAME 0.107 by Ad_Enuff, MAME COVERS
- Lay file adjusted by Mr. Do
-->

OldSkoolGamer

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:October 09, 2021, 10:17:58 am
Re: MAME .lay file that displays marquee and bezel in same lay file?
« Reply #2 on: October 09, 2021, 10:17:58 am »
Thank you so much for the time and help! My views I had setup weren't correct looking at this one you posted. I really appreciate this a great deal!

 :cheers: