summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-04-13 14:59:26 +0200
committer hap <happppp@users.noreply.github.com>2021-04-13 14:59:37 +0200
commit7d3ac13046dbb98826a6d223edd79d0c65bfe1e0 (patch)
treeeffa351e3a3bdfe781f287df620e9bd0ef1ad25b
parent2fb222dd20cf5addb6e8e66e01125c0f73048232 (diff)
outrun.lay: use <collection> for shifter
-rw-r--r--src/mame/layout/buggyboy.lay16
-rw-r--r--src/mame/layout/outrun.lay87
2 files changed, 65 insertions, 38 deletions
diff --git a/src/mame/layout/buggyboy.lay b/src/mame/layout/buggyboy.lay
index 8c7296c16f3..68a8a664813 100644
--- a/src/mame/layout/buggyboy.lay
+++ b/src/mame/layout/buggyboy.lay
@@ -74,7 +74,7 @@ license:CC0
<bounds x="1886" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque" visible="no">
+ <collection name="Opaque Shifter" visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="1886" y="414" width="32" height="64" />
</element>
@@ -86,7 +86,7 @@ license:CC0
<bounds x="1928" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque " visible="no">
+ <collection name="Opaque Shifter " visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="1928" y="414" width="32" height="64" />
</element>
@@ -98,7 +98,7 @@ license:CC0
<bounds x="2" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque " visible="no">
+ <collection name="Opaque Shifter " visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="2" y="414" width="32" height="64" />
</element>
@@ -110,7 +110,7 @@ license:CC0
<bounds x="-40" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque " visible="no">
+ <collection name="Opaque Shifter " visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="-40" y="414" width="32" height="64" />
</element>
@@ -129,7 +129,7 @@ license:CC0
<bounds x="606" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque" visible="no">
+ <collection name="Opaque Shifter" visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="606" y="414" width="32" height="64" />
</element>
@@ -141,7 +141,7 @@ license:CC0
<bounds x="648" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque " visible="no">
+ <collection name="Opaque Shifter " visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="648" y="414" width="32" height="64" />
</element>
@@ -153,7 +153,7 @@ license:CC0
<bounds x="2" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque " visible="no">
+ <collection name="Opaque Shifter " visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="2" y="414" width="32" height="64" />
</element>
@@ -165,7 +165,7 @@ license:CC0
<bounds x="-40" y="414" width="32" height="64" />
<color alpha="0.6" />
</element>
- <collection name="* Opaque " visible="no">
+ <collection name="Opaque Shifter " visible="no">
<element ref="shifter" inputtag="soundbrd:PPI_PORTA" inputmask="0x40">
<bounds x="-40" y="414" width="32" height="64" />
</element>
diff --git a/src/mame/layout/outrun.lay b/src/mame/layout/outrun.lay
index a44fafdb3cb..f02ddb3a4b0 100644
--- a/src/mame/layout/outrun.lay
+++ b/src/mame/layout/outrun.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" />
@@ -51,38 +54,62 @@ license:CC0
</disk>
</element>
- <view name="Shifter-R">
- <screen index="0">
- <bounds x="0" y="0" width="640" height="480" />
- </screen>
- <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
- <bounds x="606" y="414" width="32" height="64" />
- <color alpha="0.6" />
- </element>
- </view>
- <view name="Shifter-L">
- <screen index="0">
- <bounds x="0" y="0" width="640" height="480" />
- </screen>
- <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
- <bounds x="2" y="414" width="32" height="64" />
- <color alpha="0.6" />
- </element>
- </view>
- <view name="Widescreen Shifter-R">
- <screen index="0">
- <bounds x="0" y="0" width="640" height="480" />
- </screen>
- <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
- <bounds x="648" y="414" width="32" height="64" />
- </element>
- </view>
- <view name="Widescreen Shifter-L">
+
+<!-- build screen -->
+
+ <view name="Shifter">
<screen index="0">
<bounds x="0" y="0" width="640" height="480" />
</screen>
- <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
- <bounds x="-40" y="414" width="32" height="64" />
- </element>
+
+ <!-- shifter options -->
+ <collection name="Shifter-R Overlay" visible="yes">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="606" y="414" width="32" height="64" />
+ <color alpha="0.6" />
+ </element>
+ <collection name="Opaque Shifter" visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="606" y="414" width="32" height="64" />
+ </element>
+ </collection>
+ </collection>
+
+ <collection name="Shifter-R Off-screen" visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="648" y="414" width="32" height="64" />
+ <color alpha="0.6" />
+ </element>
+ <collection name="Opaque Shifter " visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="648" y="414" width="32" height="64" />
+ </element>
+ </collection>
+ </collection>
+
+ <collection name="Shifter-L Overlay" visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="2" y="414" width="32" height="64" />
+ <color alpha="0.6" />
+ </element>
+ <collection name="Opaque Shifter " visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="2" y="414" width="32" height="64" />
+ </element>
+ </collection>
+ </collection>
+
+ <collection name="Shifter-L Off-screen" visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="-40" y="414" width="32" height="64" />
+ <color alpha="0.6" />
+ </element>
+ <collection name="Opaque Shifter " visible="no">
+ <element ref="shifter" inputtag="SERVICE" inputmask="0x10">
+ <bounds x="-40" y="414" width="32" height="64" />
+ </element>
+ </collection>
+ </collection>
+
</view>
</mamelayout>