MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4874
Loc: California
Send PM
Re: Artwork based on dipswitch setting?
01/18/20 11:08 PM


> A dipswitch is an input port. It already was(still is) possible to change an artwork
> element state based on the value of an input port.
>
> You'll need to add a dummy mask if you don't want the element to act as a clickable
> 'button'. And if the dipswitch is more than 1bit, you need to use inputraw="1".
>
> See ccmk5 for example, where I use a language selection input port that also changes
> the the labels in the artwork.


Cool! Think I got it... hit one more snag, though.

See attached sample for Guided Missile.

inputmask is set based on values in lines 1522-1525 of mw8080bw.cpp

Except that as currently setup, artwork displays 1300 when expecting 1000, and vice versa. If I flip the inputmask on those two, the artwork displays 1300 for both settings.

I'm guessing this is because two DIPLOCATIONS are involved in this one? What extra step do I need to take here?



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








Entire thread
Subject Posted by Posted on
* Artwork based on dipswitch setting? Mr. DoAdministrator 01/18/20 08:02 PM
. * Re: Artwork based on dipswitch setting? hap  01/18/20 08:38 PM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/18/20 11:08 PM
. * Re: Artwork based on dipswitch setting? hap  01/18/20 11:32 PM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/18/20 11:38 PM
. * Re: Artwork based on dipswitch setting? hap  01/19/20 12:03 PM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/19/20 07:18 PM
. * Re: Artwork based on dipswitch setting? hap  01/19/20 09:01 PM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/20/20 05:40 AM
. * Re: Artwork based on dipswitch setting? hap  01/20/20 11:25 AM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/20/20 05:41 PM
. * Re: Artwork based on dipswitch setting? Comboman  01/20/20 06:11 PM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/20/20 06:18 PM
. * Re: Artwork based on dipswitch setting? hap  01/20/20 05:56 PM
. * Re: Artwork based on dipswitch setting? Mr. DoAdministrator  01/20/20 06:42 PM
. * Re: Artwork based on dipswitch setting? hap  01/20/20 07:16 PM
. * Re: Artwork based on dipswitch setting? Comboman  01/21/20 05:23 PM
. * Re: Artwork based on dipswitch setting? hap  01/21/20 05:35 PM

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