summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/layout/lchicken.lay
blob: 1af7e595f24549fa75103a0f3d0abc79232e2a8a (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
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors:hap
-->
<mamelayout version="2">

<!-- define elements -->

	<element name="static_orange"><rect><color red="0.9" green="0.3" blue="0.2" /></rect></element>
	<element name="static_white2"><rect><color red="0.7" green="0.7" blue="0.7" /></rect></element>

	<element name="hl" defstate="0">
		<text string=" ">
			<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
			<color red="0.0" green="0.0" blue="0.0" />
		</text>
		<disk state="1">
			<bounds x="0.07" y="0.07" width="0.86" height="0.86" />
			<color red="0.0" green="0.0" blue="0.0" />
		</disk>
	</element>

	<element name="led" defstate="0">
		<disk state="0"><color red="0.2" green="0.04" blue="0.05" /></disk>
		<disk state="1"><color red="1.0" green="0.2" blue="0.23" /></disk>
	</element>

	<element name="led1" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="1"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="1"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led2" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="2"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="2"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led3" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="3"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="3"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led4" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="4"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="4"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led5" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="5"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="5"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led6" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="6"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="6"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led7" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="7"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="7"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led8" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="8"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="8"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>
	<element name="led9" defstate="0">
		<rect><bounds x="0" y="0" width="1" height="1"/><color red="0.9" green="0.9" blue="0.9" /></rect>
		<text state="0" string="9"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="0.15" green="0.15" blue="0.15" /></text>
		<text state="1" string="9"><bounds x="0.15" y="0.12" width="0.7" height="0.7"/><color red="1.0" green="0.2" blue="0.23" /></text>
	</element>

	<element name="text_chicken"><text string="CHICKEN" align="2"><color red="0.7" green="0.7" blue="0.7" /></text></element>
	<element name="text_player"><text string="PLAYER" align="2"><color red="0.7" green="0.7" blue="0.7" /></text></element>

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

	<element name="text_m1"><text string="(motor pos: 0." align="1"><color red="0.7" green="0.7" blue="0.7" /></text></element>
	<element name="text_m2"><text string=")" align="1"><color red="0.7" green="0.7" blue="0.7" /></text></element>
	<element name="counter" defstate="0">
		<simplecounter maxstate="99" digits="2" align="1">
			<color red="0.7" green="0.7" blue="0.7" />
		</simplecounter>
	</element>


<!-- build screen -->

	<view name="Internal Layout">
		<bounds left="0.01" right="16.99" top="7.4" bottom="31" />

		<element ref="static_white2"><bounds x="0" y="9.75" width="17" height="17.5" /></element>
		<element ref="static_orange"><bounds x="0" y="10" width="17" height="17" /></element>
		<element name="0.2" ref="led1"><bounds x="0"  y="10" width="5" height="5" /></element>
		<element name="0.1" ref="led2"><bounds x="6"  y="10" width="5" height="5" /></element>
		<element name="0.0" ref="led3"><bounds x="12" y="10" width="5" height="5" /></element>
		<element name="1.2" ref="led4"><bounds x="0"  y="16" width="5" height="5" /></element>
		<element name="1.1" ref="led5"><bounds x="6"  y="16" width="5" height="5" /></element>
		<element name="1.0" ref="led6"><bounds x="12" y="16" width="5" height="5" /></element>
		<element name="2.2" ref="led7"><bounds x="0"  y="22" width="5" height="5" /></element>
		<element name="2.1" ref="led8"><bounds x="6"  y="22" width="5" height="5" /></element>
		<element name="2.0" ref="led9"><bounds x="12" y="22" width="5" height="5" /></element>

		<element ref="text_chicken"><bounds x="0" y="28" width="4.5" height="1" /></element>
		<element ref="text_player"><bounds x="0" y="29.5" width="4.5" height="1" /></element>
		<element name="0.3" ref="led"><bounds x="5" y="28" width="1" height="1" /></element>
		<element name="1.3" ref="led"><bounds x="5" y="29.5" width="1" height="1" /></element>

		<!-- in reality the keypad is under the led panel, but here just put it on top of the led panel -->
		<element ref="hl" inputtag="IN.2" inputmask="0x01"><bounds x="0"  y="10" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.1" inputmask="0x01"><bounds x="6"  y="10" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x01"><bounds x="12" y="10" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.2" inputmask="0x02"><bounds x="0"  y="16" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.1" inputmask="0x02"><bounds x="6"  y="16" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x02"><bounds x="12" y="16" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.2" inputmask="0x04"><bounds x="0"  y="22" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.1" inputmask="0x04"><bounds x="6"  y="22" width="5" height="5" /><color alpha="0.15" /></element>
		<element ref="hl" inputtag="IN.0" inputmask="0x04"><bounds x="12" y="22" width="5" height="5" /><color alpha="0.15" /></element>

		<!-- motor status info -->
		<element ref="text_m1"><bounds x="5.3" y="8" width="6" height="1" /></element>
		<element name="motor_pos" ref="counter"><bounds x="10.46" y="8" width="3" height="1" /></element>
		<element ref="text_m2"><bounds x="11.4" y="8" width="2" height="1" /></element>
		<element name="motor_on" ref="mask">
			<bounds x="5" y="7.5" width="10" height="2" />
			<color alpha="0.7" />
		</element>

	</view>
</mamelayout>