MAMEWorld >> MAME Artwork: Official
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM
State masks
09/15/20 07:31 PM Attachment: 705p3prg.zip 31 KB (10 downloads)


MAME now supports state masks, so components can be conditionally drawn depending on selected bits of the element state. Here’s an example using it to show 7-segment displays with external artwork, without needing hundreds of images for all possible states. This also shows alpha blending within an element.

Start the 705p3prg system, hit button 1 to make it start counting, go into video options, and switch views. You can use the built-in 7-segment digits, or two different styles using external images.

This example has active-high outputs, so it only needs statemask attributes. You handle active-low outputs with statemask="0x02" state="0" etc.







Entire thread
Subject Posted by Posted on
* New features: state masks and parameter animation Vas Crabb 09/15/20 07:24 PM
. * Anti-aliased disk components Vas Crabb  10/13/20 06:01 PM
. * Element clipping bug fixed Vas Crabb  10/14/20 12:29 PM
. * Re: Element clipping bug fixed Mr. DoAdministrator  10/14/20 01:02 PM
. * Re: Element clipping bug fixed gregf  10/15/20 01:47 AM
. * SVG support in external artwork Vas Crabb  10/07/20 05:15 PM
. * Re: SVG support in external artwork RaspBear  10/09/20 07:33 AM
. * Re: SVG support in external artwork MooglyGuy  10/09/20 11:55 AM
. * Re: SVG support in external artwork RaspBear  10/09/20 08:59 PM
. * Re: SVG support in external artwork Nightvoice  10/07/20 11:40 PM
. * Re: SVG support in external artwork MooglyGuy  10/07/20 05:30 PM
. * Re: New features: state masks and parameter animation nbla000  09/16/20 09:14 AM
. * Re: New features: state masks and parameter animation Mr. DoAdministrator  09/16/20 02:24 PM
. * Re: New features: state masks and parameter animation nbla000  09/21/20 04:47 PM
. * Re: New features: state masks and parameter animation nbla000  09/16/20 03:17 PM
. * Re: New features: state masks and parameter animation Nightvoice  09/15/20 08:54 PM
. * Parameter animation Vas Crabb  09/15/20 07:39 PM
. * Re: Parameter animation Comboman  09/18/20 03:25 PM
. * Re: Parameter animation Nightvoice  09/18/20 05:25 PM
. * Re: Parameter animation Mr. DoAdministrator  09/15/20 10:46 PM
. * State masks Vas Crabb  09/15/20 07:31 PM

Extra information Permissions
Moderator:  Mr. Do 
0 registered and 141 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1416