summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/layout/mchess.lay
blob: 2f23cb9d8485e8144dd7400d28389f453f46b958 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors:hap
-->
<mamelayout version="2">

<!-- define elements -->

	<element name="white"><rect><color red="0.65" green="0.65" blue="0.65" /></rect></element>
	<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
	<element name="cb_mask"><rect><color red="0.9" green="0.87" blue="0.9" /></rect></element>
	<element name="cb_overlay"><rect><color red="0.65" green="0.70" blue="0.65" /></rect></element>
	<element name="red"><rect><color red="0.75" green="0.15" blue="0.2" /></rect></element>
	<element name="blue"><rect><color red="0.15" green="0.2" blue="0.75" /></rect></element>
	<element name="blueb"><rect><color red="0.07" green="0.01" blue="0.25" /></rect></element>
	<element name="blueb2"><rect><color red="0.12" green="0.03" blue="0.4" /></rect></element>

	<element name="redd">
		<rect><color red="0.5" green="0.1" blue="0.15" /></rect>
		<text string="Δ"><color red="0.4" green="0.08" blue="0.1" /></text>
	</element>

	<element name="hl" defstate="0">
		<text string=" "><color red="0.0" green="0.0" blue="0.0" /></text>
		<rect state="1"><color red="0.0" green="0.0" blue="0.0" /></rect>
	</element>

	<element name="cb_border">
		<rect>
			<bounds x="0" y="0" width="1" height="1" />
			<color red="0.8" green="0.2" blue="0.25" />
		</rect>
		<rect>
			<bounds x="0.026" y="0.026" width="0.945" height="0.945" />
			<color red="0" green="0" blue="0" />
		</rect>
	</element>

	<element name="text_switch" defstate="0">
		<text string="SAVE: OFF" align="1" state="0"><color red="0.8" green="0.8" blue="0.8" /></text>
		<text string="SAVE: ON" align="1" state="1"><color red="0.8" green="0.8" blue="0.8" /></text>
	</element>

	<element name="text_l0"><text string="MOVE"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l1"><text string="COLOR"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l2"><text string="LEVEL"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l3"><text string="P.VS.M."><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l4"><text string="CLEAR"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l5a"><text string="ENTER"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l5b"><text string="POS."><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l6"><text string="M.VS.M."><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l7a"><text string="TAKE"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l7b"><text string="BACK"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l8a"><text string="ENTER"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l8b"><text string="MOVE"><color red="0.8" green="0.8" blue="0.8" /></text></element>
	<element name="text_l9"><text string="P.VS.P."><color red="0.8" green="0.8" blue="0.8" /></text></element>

<!-- groups -->

	<group name="display">
		<element ref="cb_border"><bounds left="-3" right="83" top="-3" bottom="91.434" /></element>
		<screen index="0"><bounds left="0" right="80" top="0" bottom="88.434" /></screen>
		<element ref="cb_overlay" blend="multiply"><bounds left="0" right="80" top="0" bottom="88.434" /></element>
		<element ref="blackb"><bounds left="79.9" right="80.1" top="-0.1" bottom="88.6" /></element>
		<element ref="blackb"><bounds left="-0.1" right="80.1" top="88.1" bottom="88.534" /></element>
		<element ref="blackb"><bounds x="-0.1" y="79.4" width="80.2" height="0.8" /></element>

		<repeat count="4">
			<param name="left" start="0" increment="20" />
			<param name="right" start="10" increment="20" />
			<repeat count="4">
				<param name="top" start="9.96" increment="19.92" />
				<param name="bottom" start="19.92" increment="19.92" />
				<element ref="cb_mask" blend="multiply"><bounds left="~left~" right="~right~" top="~top~" bottom="~bottom~" /></element>
			</repeat>
		</repeat>
		<repeat count="4">
			<param name="left" start="70" increment="-20" />
			<param name="right" start="80" increment="-20" />
			<repeat count="4">
				<param name="top" start="0" increment="19.92" />
				<param name="bottom" start="9.96" increment="19.92" />
				<element ref="cb_mask" blend="multiply"><bounds left="~left~" right="~right~" top="~top~" bottom="~bottom~" /></element>
			</repeat>
		</repeat>
	</group>

	<group name="buttons">
		<bounds x="6.1" y="6.1" width="87.8" height="45.8" />

		<element ref="white"><bounds x="6.1" y="6.1" width="87.8" height="45.8" /></element>
		<element ref="blackb"><bounds x="6.9" y="6.9" width="44.2" height="44.2" /></element>
		<element ref="blackb"><bounds x="51.9" y="6.9" width="27.2" height="13.8" /></element>
		<element ref="blackb"><bounds x="51.9" y="21.5" width="27.2" height="29.6" /></element>
		<element ref="blackb"><bounds x="79.9" y="6.9" width="13.2" height="44.2" /></element>

		<element ref="redd"><bounds x="10" y="24" width="7" height="10" /><orientation rotate="270" /></element>
		<element ref="redd"><bounds x="41" y="24" width="7" height="10" /><orientation rotate="90" /></element>
		<element ref="redd"><bounds x="24" y="10" width="10" height="7" /></element>
		<element ref="redd"><bounds x="24" y="41" width="10" height="7" /><orientation rotate="180" /></element>

		<element ref="text_l0"><bounds x="23.5" y="25.5" width="11" height="2.7" /></element>
		<element ref="red"><bounds x="25.5" y="29" width="7" height="5" /></element>

		<element ref="text_l1"><bounds x="53" y="10.3" width="11" height="2.7" /></element>
		<element ref="text_l2"><bounds x="67" y="10.3" width="11" height="2.7" /></element>
		<element ref="text_l3"><bounds x="81" y="10.3" width="11" height="2.7" /></element>
		<element ref="text_l4"><bounds x="53" y="25.5" width="11" height="2.7" /></element>
		<element ref="text_l5a"><bounds x="67" y="23.0" width="11" height="2.7" /></element>
		<element ref="text_l5b"><bounds x="67" y="25.5" width="11" height="2.7" /></element>
		<element ref="text_l6"><bounds x="81" y="25.5" width="11" height="2.7" /></element>
		<element ref="text_l7a"><bounds x="53" y="38.2" width="11" height="2.7" /></element>
		<element ref="text_l7b"><bounds x="53" y="40.7" width="11" height="2.7" /></element>
		<element ref="text_l8a"><bounds x="67" y="38.2" width="11" height="2.7" /></element>
		<element ref="text_l8b"><bounds x="67" y="40.7" width="11" height="2.7" /></element>
		<element ref="text_l9"><bounds x="81" y="40.7" width="11" height="2.7" /></element>

		<element ref="blue"><bounds x="55" y="13.8" width="7" height="5" /></element>
		<element ref="blue"><bounds x="69" y="13.8" width="7" height="5" /></element>
		<element ref="blue"><bounds x="83" y="13.8" width="7" height="5" /></element>
		<element ref="blue"><bounds x="55" y="29.0" width="7" height="5" /></element>
		<element ref="blue"><bounds x="69" y="29.0" width="7" height="5" /></element>
		<element ref="blue"><bounds x="83" y="29.0" width="7" height="5" /></element>
		<element ref="blue"><bounds x="55" y="44.2" width="7" height="5" /></element>
		<element ref="blue"><bounds x="69" y="44.2" width="7" height="5" /></element>
		<element ref="blue"><bounds x="83" y="44.2" width="7" height="5" /></element>

		<element ref="hl" inputtag="IN.1" inputmask="0x08"><bounds x="10" y="24" width="7" height="10" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.1" inputmask="0x04"><bounds x="41" y="24" width="7" height="10" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.1" inputmask="0x10"><bounds x="24" y="10" width="10" height="7" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.1" inputmask="0x80"><bounds x="24" y="41" width="10" height="7" /><color alpha="0.25" /></element>

		<element ref="hl" inputtag="IN.1" inputmask="0x02"><bounds x="25.5" y="29" width="7" height="5" /><color alpha="0.25" /></element>

		<element ref="hl" inputtag="IN.2" inputmask="0x10"><bounds x="55" y="13.8" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x10"><bounds x="69" y="13.8" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x08"><bounds x="83" y="13.8" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.2" inputmask="0x08"><bounds x="55" y="29.0" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.2" inputmask="0x04"><bounds x="69" y="29.0" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x04"><bounds x="83" y="29.0" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.2" inputmask="0x80"><bounds x="55" y="44.2" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.2" inputmask="0x02"><bounds x="69" y="44.2" width="7" height="5" /><color alpha="0.25" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x02"><bounds x="83" y="44.2" width="7" height="5" /><color alpha="0.25" /></element>
	</group>


<!-- build screen -->

	<view name="Internal Layout (Full)">
		<bounds left="-1" right="182.5" top="-1" bottom="96" />
		<group ref="display"><bounds x="0" y="0" width="86" height="94.434" /></group>

		<element ref="blueb2"><bounds x="88" y="0" width="95" height="53" /></element>
		<element ref="blueb"><bounds x="88" y="44" width="95" height="53" /></element>
		<element ref="blackb"><bounds x="91" y="47" width="95" height="53" /></element>
		<group ref="buttons"><bounds x="93" y="48.634" width="87.8" height="45.8" /></group>

		<element ref="blackb"><bounds x="170" y="-1" width="20" height="4" /></element>
		<element ref="text_switch" inputtag="IN.3" inputmask="0x01"><bounds x="171" y="0" width="13" height="2.7" /></element>
	</view>

	<view name="Internal Layout (Screen)">
		<group ref="display"><bounds x="0" y="0" width="86" height="94.434" /></group>
	</view>

</mamelayout>