summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/layout/mastmind.lay
blob: f732bd27c72d52a79945fe8c66e27c44b6137f5c (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors:hap
-->
<mamelayout version="2">

<!-- define elements -->

	<element name="mul"><rect><color red="0.5" green="0.4" blue="0.05" /></rect></element>

	<element name="text_1"><text string="1"></text></element>
	<element name="text_2"><text string="2"></text></element>
	<element name="text_3"><text string="3"></text></element>
	<element name="text_4"><text string="4"></text></element>
	<element name="text_5"><text string="5"></text></element>
	<element name="text_x"><text string="X"></text></element>

	<!-- flat checkmark icon, (C) Icons8, MIT license -->
	<element name="checkmark">
		<image><data><![CDATA[
			<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="48" height="48" viewBox="0 0 48 48">
				<polygon fill="#ffffff" points="40.6,12.1 17,35.7 7.4,26.1 4.6,29 17,41.3 43.4,14.9"/>
			</svg>
		]]></data></image>
	</element>

	<element name="digit" defstate="0">
		<led7seg><color red="0.2" green="1.0" blue="0.85" /></led7seg>
	</element>


<!-- build screen -->

	<view name="Internal Layout">

		<!-- labels (actually, it looks like some units didn't have them) -->
		<collection name="Labels">
			<element ref="text_1"><bounds x="20" y="0" width="10" height="10" /></element>
			<element ref="text_2"><bounds x="30" y="0" width="10" height="10" /></element>
			<element ref="text_3"><bounds x="40" y="0" width="10" height="10" /></element>
			<element ref="text_4"><bounds x="50" y="0" width="10" height="10" /></element>
			<element ref="text_5"><bounds x="60" y="0" width="10" height="10" /></element>
			<element ref="checkmark"><bounds xc="85" y="0.0" width="8.5" height="9.6" /></element>
			<element ref="text_x"><bounds x="90" y="0" width="10" height="10" /></element>

			<element ref="mul" blend="multiply"><bounds x="8" y="0" width="94" height="28" /></element>
		</collection>

		<!-- display -->
		<element               ref="digit"><bounds x="10" y="10" width="10" height="15" /></element> <!-- N/C -->
		<element name="digit0" ref="digit"><bounds x="20" y="10" width="10" height="15" /></element>
		<element name="digit1" ref="digit"><bounds x="30" y="10" width="10" height="15" /></element>
		<element name="digit2" ref="digit"><bounds x="40" y="10" width="10" height="15" /></element>
		<element name="digit3" ref="digit"><bounds x="50" y="10" width="10" height="15" /></element>
		<element name="digit4" ref="digit"><bounds x="60" y="10" width="10" height="15" /></element>
		<element               ref="digit"><bounds x="70" y="10" width="10" height="15" /></element> <!-- N/C -->
		<element name="digit5" ref="digit"><bounds x="80" y="10" width="10" height="15" /></element>
		<element name="digit6" ref="digit"><bounds x="90" y="10" width="10" height="15" /></element>

	</view>
</mamelayout>