summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/layout/cqback.lay
blob: 59fd60673aa3b02a91c1621e982acb7fcb8abe38 (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
<?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="static_white"><rect><color red="0.8" green="0.8" blue="0.8" /></rect></element>
	<element name="static_green"><rect><color red="0.1" green="0.5" blue="0.2" /></rect></element>
	<element name="static_orange"><rect><color red="0.8" green="0.25" blue="0.1" /></rect></element>

	<element name="text_down"><text string="DOWN"><color red="0.8" green="0.25" blue="0.1" /></text></element>
	<element name="text_home"><text string="HOME"><color red="0.8" green="0.25" blue="0.1" /></text></element>
	<element name="text_yards"><text string="YARDS TO GO"><color red="0.8" green="0.25" blue="0.1" /></text></element>
	<element name="text_time"><text string="TIME REMAINING"><color red="0.8" green="0.25" blue="0.1" /></text></element>
	<element name="text_field"><text string="FIELD POS."><color red="0.8" green="0.25" blue="0.1" /></text></element>
	<element name="text_visitor"><text string="VISITOR"><color red="0.8" green="0.25" blue="0.1" /></text></element>

	<element name="text_p1">
		<rect><color red="0.06" green="0.3" blue="0.12" /></rect>
		<text state="1" string=""></text>
		<text string="PL SEL:">
			<bounds x="0.0" y="0.17" width="1.0" height="0.6" />
			<color red="0.7" green="0.7" blue="0.8" />
		</text>
	</element>
	<element name="text_p2" defstate="0">
		<rect><color red="0.06" green="0.3" blue="0.12" /></rect>
		<text state="0" string="RUN/KICK">
			<bounds x="0.0" y="0.17" width="1.0" height="0.6" />
			<color red="0.82" green="0.82" blue="0.82" />
		</text>
		<text state="1" string="PASS">
			<bounds x="0.0" y="0.17" width="1.0" height="0.6" />
			<color red="0.82" green="0.82" blue="0.82" />
		</text>
	</element>

	<element name="digit" defstate="0">
		<led7seg><color red="0.5" green="0.05" blue="0.075" /></led7seg>
	</element>
	<element name="seg" defstate="0">
		<rect state="0"><color red="0.1" green="0.01" blue="0.015" /></rect>
		<rect state="1"><color red="0.5" green="0.05" blue="0.075" /></rect>
		<rect state="2"><color red="1.0" green="0.1" blue="0.15" /></rect>
	</element>


<!-- build screen -->

	<view name="Internal Layout">
		<bounds left="-9" right="393" top="-130" bottom="156" />
		<element ref="static_black">
			<bounds left="-9" right="393" top="-130" bottom="156" />
		</element>

		<!-- bezel -->
		<element ref="static_white"><bounds left="-9" right="393" top="-130" bottom="-60" /></element>
		<element ref="static_green"><bounds left="-9" right="393" top="111" bottom="156" /></element>

		<element ref="text_down"><bounds x="-5" y="-126" width="86" height="19" /></element>
		<element ref="text_yards"><bounds x="107" y="-126" width="170" height="19" /></element>
		<element ref="text_field"><bounds x="301" y="-126" width="90" height="19" /></element>

		<element ref="text_home"><bounds x="-5" y="-92" width="86" height="19" /></element>
		<element ref="text_time"><bounds x="107" y="-92" width="170" height="19" /></element>
		<element ref="text_visitor"><bounds x="301" y="-92" width="90" height="19" /></element>

		<element ref="text_p1" inputtag="IN.1" inputmask="0x01"><bounds x="301" y="130" width="40" height="16" /></element>
		<element ref="text_p2" inputtag="IN.1" inputmask="0x01"><bounds x="339" y="130" width="50" height="16" /></element>

		<element ref="static_orange"><bounds left="-9" right="393" top="-102" bottom="-96" /></element>
		<element ref="static_white"><bounds left="-9" right="393" top="-61" bottom="-51" /></element>
		<element ref="static_green"><bounds left="-9" right="393" top="-67" bottom="-61" /></element>
		<element ref="static_white"><bounds left="-9" right="393" top="110" bottom="120" /></element>

		<element ref="static_white"><bounds x="-9" y="-52" width="4" height="163" /></element>
		<element ref="static_white"><bounds x="37" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="81" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="125" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="169" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="213" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="257" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="301" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="345" y="-52" width="2" height="163" /></element>
		<element ref="static_white"><bounds x="389" y="-52" width="4" height="163" /></element>

		<element ref="static_white"><bounds x="36" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="36" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="36" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="80" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="80" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="80" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="124" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="124" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="124" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="168" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="168" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="168" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="212" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="212" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="212" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="256" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="256" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="256" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="300" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="300" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="300" y="56" width="4" height="1" /></element>

		<element ref="static_white"><bounds x="344" y="2" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="344" y="29" width="4" height="1" /></element>
		<element ref="static_white"><bounds x="344" y="56" width="4" height="1" /></element>

		<!-- leds -->
		<repeat count="9">
			<param name="xd" start="3" increment="44" />
			<param name="xs" start="7" increment="44" />
			<param name="i" start="0" increment="1" />

			<element name="digit~i~" ref="digit"><bounds x="~xd~" y="-15.5" width="24" height="32" /></element>
			<element name="multi~i~.2" ref="digit" blend="add"><bounds x="~xd~" y="-15.5" width="24" height="32" /></element>
			<element name="~i~.8" ref="seg"><bounds x="~xs~" y="42.5" width="15" height="3" /></element>
			<element name="~i~.9" ref="seg"><bounds x="~xs~" y="71.5" width="15" height="3" /></element>
		</repeat>

	</view>
</mamelayout>