Main > Software Forum

Can you give mame a specific portion of the screen, and a marquee on the top?

<< < (2/4) > >>

Lilwolf:
I would also love to know.

But I think, in my case, they will always be the same... and I could programmatically create a layout file for every mame game...  use a default marquee if it's there... or use a the original if I have it.

Thanks for the ideas!


--- Quote from: Nocturnaloner on March 17, 2016, 02:18:14 pm ---

--- Quote from: lamprey on March 14, 2016, 12:47:09 pm ---
--- Quote from: 2600 on March 14, 2016, 10:37:46 am ---You should be able to do this using the MAME artwork system.

--- End quote ---
+1

That's what I've done on my system.

--- End quote ---


That's right, it slipped my mind that you could do it with a .lay file.   Are you making custom layouts for each game(!!) or did you come up with one layout that works for everything?

--- End quote ---

Howard_Casto:
mamehooker will do it as well.... you don't have to make a layout for each game.  A tutorial is on the site. 

nexusmtz:

--- Quote from: Howard_Casto on March 18, 2016, 11:58:46 am ---mamehooker will do it as well....

--- End quote ---

I know that mamehooker is a good choice for secondary monitors, but how would it go about sharing a single screen with MAME? I'd think that would require changes in MAME itself.

lamprey:

--- Quote from: Nocturnaloner on March 17, 2016, 02:18:14 pm ---

--- Quote from: lamprey on March 14, 2016, 12:47:09 pm ---
--- Quote from: 2600 on March 14, 2016, 10:37:46 am ---You should be able to do this using the MAME artwork system.

--- End quote ---
+1

That's what I've done on my system.

--- End quote ---


That's right, it slipped my mind that you could do it with a .lay file.   Are you making custom layouts for each game(!!) or did you come up with one layout that works for everything?

--- End quote ---
Custom for all.

I have a basic layout that I copy so it isn't too big of a deal. The most time consuming is converting the screen position within bezel artwork.

nexusmtz:

--- Quote from: lamprey on March 18, 2016, 01:53:17 pm ---...The most time consuming is converting the screen position within bezel artwork.

--- End quote ---

If you're modifying the values of the bezel and screen, you're probably making it harder than it has to be. Instead, just set the bounds of the view, and add the marquee.

[EDIT: OP wants to use a vertical screen. This math works OK on a horizontal screen, but not necessarily on a vertical, because the width of the bezel usually forces MAME to scale everything down on a vertical screen. When that happens, the marquee won't be at the top anymore.]

Let's say you want your bottom part (bezel and game screen) to be 70% of your screen, and the marquee to be 25% (with 5% in between), then, for a normal game where the bezel surrounds the game screen:

* The width of the view is the same as the width of the bezel
* The height of the view is the height of the bezel divided by .7
* The X of the view is 0
* The Y of the view is the height of the bezel minus the height of the view (you want a negative number)
* The X and Y of the marquee are the same as the X and Y of the view (you want the marquee's box to start at the top left)
* The width of the marquee is the same as the width of the bezel
* The height of the marquee is the height of the view times .25So, for Qbert, the view would be:

--- Code: ---<view name="Upright with Marquee">
<bounds x="0" y="-1510" width="4000" height="5034" />
<marquee element="marquee">
<bounds x="0" y="-1510" width="4000" height="1259" />
</marquee>
<screen index="0">
<bounds x="836" y="278" width="2250" height="3000" />
</screen>
<bezel element="bezel">
<bounds x="0" y="0" width="4000" height="3524" />
</bezel>
</view>

--- End code ---

Note that this does stretch the marquee. If you don't want that, you'll have to adjust the bounds of the marquee. Of course, that's just a little more math. If there's a way to force an element to keep aspect within given bounds, I haven't found it yet.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version