diff options
Diffstat (limited to 'src/mame/layout/speedrs.lay')
-rw-r--r-- | src/mame/layout/speedrs.lay | 99 |
1 files changed, 57 insertions, 42 deletions
diff --git a/src/mame/layout/speedrs.lay b/src/mame/layout/speedrs.lay index 7860a780e54..2a1beb08763 100644 --- a/src/mame/layout/speedrs.lay +++ b/src/mame/layout/speedrs.lay @@ -3,6 +3,9 @@ license:CC0 --> <mamelayout version="2"> + +<!-- define elements --> + <element name="shifter" defstate="0"> <rect> <bounds left="0" right="32" top="0" bottom="64" /> @@ -53,20 +56,10 @@ license:CC0 <element name="black"><rect><color red="0" green="0" blue="0" /></rect></element> - <view name="Shifter-R"> - <bounds left="0" right="640" top="0" bottom="480" /> - <screen index="0"> - <bounds x="0" y="0" width="738.46" height="480" /> - </screen> - <element ref="black"> - <bounds x="640" y="0" width="100" height="480" /> - </element> - <element ref="shifter" inputtag="IN.2" inputmask="0x02"> - <bounds x="606" y="414" width="32" height="64" /> - <color alpha="0.6" /> - </element> - </view> - <view name="Shifter-L"> + +<!-- build screen --> + + <view name="Shifter"> <bounds left="0" right="640" top="0" bottom="480" /> <screen index="0"> <bounds x="0" y="0" width="738.46" height="480" /> @@ -74,33 +67,55 @@ license:CC0 <element ref="black"> <bounds x="640" y="0" width="100" height="480" /> </element> - <element ref="shifter" inputtag="IN.2" inputmask="0x02"> - <bounds x="2" y="414" width="32" height="64" /> - <color alpha="0.6" /> - </element> - </view> - <view name="Widescreen Shifter-R"> - <bounds left="0" right="682" top="0" bottom="480" /> - <screen index="0"> - <bounds x="0" y="0" width="738.46" height="480" /> - </screen> - <element ref="black"> - <bounds x="640" y="0" width="100" height="480" /> - </element> - <element ref="shifter" inputtag="IN.2" inputmask="0x02"> - <bounds x="648" y="414" width="32" height="64" /> - </element> - </view> - <view name="Widescreen Shifter-L"> - <bounds left="-42" right="640" top="0" bottom="480" /> - <screen index="0"> - <bounds x="0" y="0" width="738.46" height="480" /> - </screen> - <element ref="black"> - <bounds x="640" y="0" width="100" height="480" /> - </element> - <element ref="shifter" inputtag="IN.2" inputmask="0x02"> - <bounds x="-40" y="414" width="32" height="64" /> - </element> + + <!-- shifter options --> + <collection name="Shifter-R Overlay" visible="yes"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="606" y="414" width="32" height="64" /> + <color alpha="0.6" /> + </element> + <collection name="Opaque Shifter" visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="606" y="414" width="32" height="64" /> + </element> + </collection> + </collection> + + <collection name="Shifter-R Off-screen" visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="648" y="414" width="32" height="64" /> + <color alpha="0.6" /> + </element> + <collection name="Opaque Shifter " visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="648" y="414" width="32" height="64" /> + </element> + </collection> + </collection> + + <collection name="Shifter-L Overlay" visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="2" y="414" width="32" height="64" /> + <color alpha="0.6" /> + </element> + <collection name="Opaque Shifter " visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="2" y="414" width="32" height="64" /> + </element> + </collection> + </collection> + + <collection name="Shifter-L Off-screen" visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="-40" y="414" width="32" height="64" /> + <color alpha="0.6" /> + </element> + <collection name="Opaque Shifter " visible="no"> + <element ref="shifter" inputtag="IN.2" inputmask="0x02"> + <bounds x="-40" y="414" width="32" height="64" /> + </element> + </collection> + </collection> </view> + </mamelayout> |