summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/layout/hh_hmcs40_test.lay
blob: 61312da09954335e746c8592ed92dee047a77cac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors:hap
-->
<mamelayout version="2">

<!-- define elements -->

	<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>

	<element name="led" defstate="0">
		<disk state="0"><color red="0.0" green="0.0" blue="0.0" /></disk>
		<disk state="1"><color red="0.5" green="1.0" blue="1.0" /></disk>
	</element>


<!-- build screen -->

	<view name="Test Layout">
		<bounds left="0" right="40" top="0" bottom="16" />
		<element ref="static_black">
			<bounds left="0" right="40" top="0" bottom="16" />
		</element>

		<!-- max 16*40 matrix -->
		<repeat count="16">
			<param name="y" start="0" increment="1" />

			<repeat count="40">
				<param name="x" start="0" increment="1" />
				<element name="~y~.~x~" ref="led"><bounds x="~x~" y="~y~" width="0.5" height="0.5" /></element>
			</repeat>
		</repeat>

	</view>
</mamelayout>