blob: 6210d8ade7273df9cb54629eabb2094e751d88f3 (
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
|
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors:hap
-->
<mamelayout version="2">
<!-- define elements -->
<element name="lcdw"><rect><color red="1" green="1" blue="1" /></rect></element>
<element name="lcdm"><rect><color red="0.59" green="0.60" blue="0.44" /></rect></element>
<element name="lcda"><rect><color red="0.17" green="0.15" blue="0.27" /></rect></element> <!-- blue tint -->
<element name="nothing" defstate="0"><rect><color alpha="0" /></rect></element>
<element name="text_p1"><text string="PADDLE:" align="2"><color red="0.1" green="0.1" blue="0.1" /></text></element>
<element name="text_p2" defstate="0">
<simplecounter maxstate="999" digits="3" align="1">
<color red="0.1" green="0.1" blue="0.1" />
</simplecounter>
</element>
<element name="bar" defstate="0">
<rect>
<bounds x="0" y="0" width="1" height="1" />
<color red="0.85" green="0.85" blue="0.85" />
</rect>
<rect>
<bounds state="0" x="0" y="0" width="0" height="1" />
<bounds state="255" x="0" y="0" width="1" height="1" />
<color red="0.9" green="0.9" blue="0.9" />
</rect>
</element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="0" right="18" top="0" bottom="18" />
<element ref="lcdw"><bounds x="0" y="0" width="18" height="18" /></element>
<screen index="0"><bounds x="1" y="1" width="16" height="16" /></screen>
<collection name="Screen Mesh">
<!-- draw the grid -->
<repeat count="17">
<param name="i" start="0.95" increment="1" />
<element ref="lcdw"><bounds x="~i~" y="0.5" width="0.1" height="17" /></element>
<element ref="lcdw"><bounds x="0.5" y="~i~" width="17" height="0.1" /></element>
</repeat>
</collection>
<element ref="lcdm" blend="multiply"><bounds x="0" y="0" width="18" height="18" /></element>
<element ref="lcda" blend="add"><bounds x="0" y="0" width="18" height="18" /></element>
<collection name="Paddle Position">
<!-- show live paddle position -->
<element ref="nothing" inputtag="PADDLE" inputmask="0x00" inputraw="yes"><bounds x="12" y="0" width="6" height="1" /></element> <!-- block clickable input -->
<element ref="bar" blend="multiply" inputtag="PADDLE" inputmask="0xff" inputraw="yes"><bounds x="12.75" y="0.12" width="4.2" height="0.75" /></element>
<element ref="text_p1" blend="add"><bounds x="10.5" y="0.1" width="5" height="0.75" /></element>
<element ref="text_p2" blend="add" inputtag="PADDLE" inputmask="0xff" inputraw="yes"><bounds x="15.7" y="0.1" width="2" height="0.75" /></element>
</collection>
</view>
</mamelayout>
|