I can see where you're going with this, and it's an interesting idea I could apply to After Burner as well. Maybe it's late and I'm tired, but the first thing I'm noticing is this section:
local in0 = file.device:ioport("IN0") local in1 = file.device:ioport("IN1")
Which covers the lit and unlit sticks, but it seems to be missing the line for the LED. If you're using separate images for the LED itself, you'd need a "local in2" line assigned to it and referenced thereafter in the LUA calls.
So the question then becomes, is there an ioport name assigned to the LED?
This would be instantly solvable if anyone knew a syntax/format to say "IF [led state] = 1 THEN [display stick_led image] ELSE [hide stick_led image]" or some equivalent in the LUA section.
----------------------
I have officially retired from sucking at everything I do. Life is much easier now.
My MAME/MESS artwork files: https://drive.google.com/open?id=1ABxeKgNIrKlIsyck7dx4V241NFQDWAF4
Related screen shots: https://drive.google.com/open?id=1U5IbvbVzYW97PuOOQuocvZFE_YJz7WIn
Edited by Nightvoice (05/03/23 01:48 AM)
|