MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4875
Loc: California
Send PM
NeoGeo - Input question RE: Start Buttons & Artwork
07/04/19 11:35 PM


Example of the Start Button and a Player Button elements defined in a LAY file:

<element name="blue_button" defstate="0">
<image file="button_blue.png" state="0" />
<image file="button_blue_pressed.png" state="1" />
</element>
<element name="white_button" defstate="0">
<image file="button_white.png" state="0" />
<image file="button_white_pressed.png" state="1" />
</element>

Example of those elements in the View:

<!-- Player 2 Buttons -->
<cpanel element="blue_button" inputtag="edge:joy:JOY2" inputmask="0x80">
<bounds x="3626" y="4272" width="225" height="225" />
</cpanel>
<!-- Start Buttons -->
<cpanel element="white_button" inputtag="SYSTEM" inputmask="0x100">
<bounds x="150" y="3669" width="225" height="225" />
</cpanel>


So here's my problem:

-- The blue button (and all other Player buttons) behaves correctly
-- The start button is reversed. When viewing the artwork, the "pressed button" is shown, and the "unpressed" button is shown when the key is pressed.
-- If I change defstate="0" to defstate="1", nothing changes; it still behaves wrong.
-- Only if I make the change as shown below, does it display "correctly."

<element name="white_button" defstate="0">
<image file="button_white.png" state="1" />
<image file="button_white_pressed.png" state="0" />
</element>

-- So that works... but it seems incorrect that it works this way.
-- Is it supposed to be this way?
-- Same issue for anything under inputtag="SYSTEM" (1P Start, 2P Start, Select Game)

To test on your own, download artwork for mslug2, which has all of this defined in the artwork.

This is on 64-bit build of MAME 0.211



RELAX and just have fun. Remember, it's all about the games.








Entire thread
Subject Posted by Posted on
* NeoGeo - Input question RE: Start Buttons & Artwork Mr. DoAdministrator 07/04/19 11:35 PM
. * NEVERMIND: NeoGeo - Input question RE: Start Buttons & Artwork Mr. DoAdministrator  07/05/19 01:29 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 288 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 218