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