Previous 199869 Revisions Next

r18819 Friday 2nd November, 2012 at 21:52:34 UTC by Wilbert Pol
(MESS) merlin.c: Clickable artwork (nw)
[src/mess/layout]merlin.lay

trunk/src/mess/layout/merlin.lay
r18818r18819
66         <color red="0.0" green="0.0" blue="0.0" />
77      </rect>
88   </element>
9
910   <element name="led" defstate="0">
1011      <rect state="0">
1112         <color red="0.2" green="0" blue="0" />
r18818r18819
1314      <rect state="1">
1415         <color red="0.9" green="0" blue="0" />
1516      </rect>
17   </element>
1618
19   <element name="0" defstate="0">
20      <rect>
21         <bounds x="2" y="2" width="48" height="48"/>
22         <color red="0.1" green="0.1" blue="0.1" />
23      </rect>
24      <rect state="0">
25         <bounds x="0" y="0" width="48" height="48"/>
26         <color red="0.25" green="0.25" blue="0.25" />
27      </rect>
28      <text string="0" state="0">
29         <bounds x="8" y="24" width="40" height="20"/>
30         <color red="1.0" green="1.0" blue="1.0" />
31      </text>
32      <rect state="1">
33         <bounds x="2" y="2" width="48" height="48"/>
34         <color red="0.25" green="0.25" blue="0.25" />
35      </rect>
36      <text string="0" state="1">
37         <bounds x="10" y="26" width="40" height="20"/>
38         <color red="1.0" green="1.0" blue="1.0" />
39      </text>
1740   </element>
1841
42   <element name="1" defstate="0">
43      <rect>
44         <bounds x="2" y="2" width="48" height="48"/>
45         <color red="0.1" green="0.1" blue="0.1" />
46      </rect>
47      <rect state="0">
48         <bounds x="0" y="0" width="48" height="48"/>
49         <color red="0.25" green="0.25" blue="0.25" />
50      </rect>
51      <text string="1" state="0">
52         <bounds x="8" y="24" width="40" height="20"/>
53         <color red="1.0" green="1.0" blue="1.0" />
54      </text>
55      <rect state="1">
56         <bounds x="2" y="2" width="48" height="48"/>
57         <color red="0.25" green="0.25" blue="0.25" />
58      </rect>
59      <text string="1" state="1">
60         <bounds x="10" y="26" width="40" height="20"/>
61         <color red="1.0" green="1.0" blue="1.0" />
62      </text>
63   </element>
64
65   <element name="2" defstate="0">
66      <rect>
67         <bounds x="2" y="2" width="48" height="48"/>
68         <color red="0.1" green="0.1" blue="0.1" />
69      </rect>
70      <rect state="0">
71         <bounds x="0" y="0" width="48" height="48"/>
72         <color red="0.25" green="0.25" blue="0.25" />
73      </rect>
74      <text string="2" state="0">
75         <bounds x="8" y="24" width="40" height="20"/>
76         <color red="1.0" green="1.0" blue="1.0" />
77      </text>
78      <rect state="1">
79         <bounds x="2" y="2" width="48" height="48"/>
80         <color red="0.25" green="0.25" blue="0.25" />
81      </rect>
82      <text string="2" state="1">
83         <bounds x="10" y="26" width="40" height="20"/>
84         <color red="1.0" green="1.0" blue="1.0" />
85      </text>
86   </element>
87
88   <element name="3" defstate="0">
89      <rect>
90         <bounds x="2" y="2" width="48" height="48"/>
91         <color red="0.1" green="0.1" blue="0.1" />
92      </rect>
93      <rect state="0">
94         <bounds x="0" y="0" width="48" height="48"/>
95         <color red="0.25" green="0.25" blue="0.25" />
96      </rect>
97      <text string="3" state="0">
98         <bounds x="8" y="24" width="40" height="20"/>
99         <color red="1.0" green="1.0" blue="1.0" />
100      </text>
101      <rect state="1">
102         <bounds x="2" y="2" width="48" height="48"/>
103         <color red="0.25" green="0.25" blue="0.25" />
104      </rect>
105      <text string="3" state="1">
106         <bounds x="10" y="26" width="40" height="20"/>
107         <color red="1.0" green="1.0" blue="1.0" />
108      </text>
109   </element>
110
111   <element name="4" defstate="0">
112      <rect>
113         <bounds x="2" y="2" width="48" height="48"/>
114         <color red="0.1" green="0.1" blue="0.1" />
115      </rect>
116      <rect state="0">
117         <bounds x="0" y="0" width="48" height="48"/>
118         <color red="0.25" green="0.25" blue="0.25" />
119      </rect>
120      <text string="4" state="0">
121         <bounds x="8" y="24" width="40" height="20"/>
122         <color red="1.0" green="1.0" blue="1.0" />
123      </text>
124      <rect state="1">
125         <bounds x="2" y="2" width="48" height="48"/>
126         <color red="0.25" green="0.25" blue="0.25" />
127      </rect>
128      <text string="4" state="1">
129         <bounds x="10" y="26" width="40" height="20"/>
130         <color red="1.0" green="1.0" blue="1.0" />
131      </text>
132   </element>
133
134   <element name="5" defstate="0">
135      <rect>
136         <bounds x="2" y="2" width="48" height="48"/>
137         <color red="0.1" green="0.1" blue="0.1" />
138      </rect>
139      <rect state="0">
140         <bounds x="0" y="0" width="48" height="48"/>
141         <color red="0.25" green="0.25" blue="0.25" />
142      </rect>
143      <text string="5" state="0">
144         <bounds x="8" y="24" width="40" height="20"/>
145         <color red="1.0" green="1.0" blue="1.0" />
146      </text>
147      <rect state="1">
148         <bounds x="2" y="2" width="48" height="48"/>
149         <color red="0.25" green="0.25" blue="0.25" />
150      </rect>
151      <text string="5" state="1">
152         <bounds x="10" y="26" width="40" height="20"/>
153         <color red="1.0" green="1.0" blue="1.0" />
154      </text>
155   </element>
156
157   <element name="6" defstate="0">
158      <rect>
159         <bounds x="2" y="2" width="48" height="48"/>
160         <color red="0.1" green="0.1" blue="0.1" />
161      </rect>
162      <rect state="0">
163         <bounds x="0" y="0" width="48" height="48"/>
164         <color red="0.25" green="0.25" blue="0.25" />
165      </rect>
166      <text string="6" state="0">
167         <bounds x="8" y="24" width="40" height="20"/>
168         <color red="1.0" green="1.0" blue="1.0" />
169      </text>
170      <rect state="1">
171         <bounds x="2" y="2" width="48" height="48"/>
172         <color red="0.25" green="0.25" blue="0.25" />
173      </rect>
174      <text string="6" state="1">
175         <bounds x="10" y="26" width="40" height="20"/>
176         <color red="1.0" green="1.0" blue="1.0" />
177      </text>
178   </element>
179
180   <element name="7" defstate="0">
181      <rect>
182         <bounds x="2" y="2" width="48" height="48"/>
183         <color red="0.1" green="0.1" blue="0.1" />
184      </rect>
185      <rect state="0">
186         <bounds x="0" y="0" width="48" height="48"/>
187         <color red="0.25" green="0.25" blue="0.25" />
188      </rect>
189      <text string="7" state="0">
190         <bounds x="8" y="24" width="40" height="20"/>
191         <color red="1.0" green="1.0" blue="1.0" />
192      </text>
193      <rect state="1">
194         <bounds x="2" y="2" width="48" height="48"/>
195         <color red="0.25" green="0.25" blue="0.25" />
196      </rect>
197      <text string="7" state="1">
198         <bounds x="10" y="26" width="40" height="20"/>
199         <color red="1.0" green="1.0" blue="1.0" />
200      </text>
201   </element>
202
203   <element name="8" defstate="0">
204      <rect>
205         <bounds x="2" y="2" width="48" height="48"/>
206         <color red="0.1" green="0.1" blue="0.1" />
207      </rect>
208      <rect state="0">
209         <bounds x="0" y="0" width="48" height="48"/>
210         <color red="0.25" green="0.25" blue="0.25" />
211      </rect>
212      <text string="8" state="0">
213         <bounds x="8" y="24" width="40" height="20"/>
214         <color red="1.0" green="1.0" blue="1.0" />
215      </text>
216      <rect state="1">
217         <bounds x="2" y="2" width="48" height="48"/>
218         <color red="0.25" green="0.25" blue="0.25" />
219      </rect>
220      <text string="8" state="1">
221         <bounds x="10" y="26" width="40" height="20"/>
222         <color red="1.0" green="1.0" blue="1.0" />
223      </text>
224   </element>
225
226   <element name="9" defstate="0">
227      <rect>
228         <bounds x="2" y="2" width="48" height="48"/>
229         <color red="0.1" green="0.1" blue="0.1" />
230      </rect>
231      <rect state="0">
232         <bounds x="0" y="0" width="48" height="48"/>
233         <color red="0.25" green="0.25" blue="0.25" />
234      </rect>
235      <text string="9" state="0">
236         <bounds x="8" y="24" width="40" height="20"/>
237         <color red="1.0" green="1.0" blue="1.0" />
238      </text>
239      <rect state="1">
240         <bounds x="2" y="2" width="48" height="48"/>
241         <color red="0.25" green="0.25" blue="0.25" />
242      </rect>
243      <text string="9" state="1">
244         <bounds x="10" y="26" width="40" height="20"/>
245         <color red="1.0" green="1.0" blue="1.0" />
246      </text>
247   </element>
248
249   <element name="10" defstate="0">
250      <rect>
251         <bounds x="2" y="2" width="48" height="48"/>
252         <color red="0.1" green="0.1" blue="0.1" />
253      </rect>
254      <rect state="0">
255         <bounds x="0" y="0" width="48" height="48"/>
256         <color red="0.25" green="0.25" blue="0.25" />
257      </rect>
258      <text string="10" state="0">
259         <bounds x="8" y="24" width="40" height="20"/>
260         <color red="1.0" green="1.0" blue="1.0" />
261      </text>
262      <rect state="1">
263         <bounds x="2" y="2" width="48" height="48"/>
264         <color red="0.25" green="0.25" blue="0.25" />
265      </rect>
266      <text string="10" state="1">
267         <bounds x="10" y="26" width="40" height="20"/>
268         <color red="1.0" green="1.0" blue="1.0" />
269      </text>
270   </element>
271
272   <element name="new_game" defstate="0">
273        <rect>
274            <bounds x="2" y="2" width="48" height="48"/>
275            <color red="0.1" green="0.1" blue="0.1" />
276        </rect>
277        <rect state="0">
278            <bounds x="0" y="0" width="48" height="48"/>
279            <color red="0.25" green="0.25" blue="0.25" />
280        </rect>
281        <text string="NEW GAME" state="0">
282            <bounds x="8" y="24" width="40" height="20"/>
283            <color red="1.0" green="1.0" blue="1.0" />
284        </text>
285        <rect state="1">
286            <bounds x="2" y="2" width="48" height="48"/>
287            <color red="0.25" green="0.25" blue="0.25" />
288        </rect>
289        <text string="NEW GAME" state="1">
290            <bounds x="10" y="26" width="40" height="20"/>
291            <color red="1.0" green="1.0" blue="1.0" />
292        </text>
293   </element>
294
295   <element name="same_game" defstate="0">
296        <rect>
297            <bounds x="2" y="2" width="48" height="48"/>
298            <color red="0.1" green="0.1" blue="0.1" />
299        </rect>
300        <rect state="0">
301            <bounds x="0" y="0" width="48" height="48"/>
302            <color red="0.25" green="0.25" blue="0.25" />
303        </rect>
304        <text string="SAME GAME" state="0">
305            <bounds x="8" y="24" width="40" height="20"/>
306            <color red="1.0" green="1.0" blue="1.0" />
307        </text>
308        <rect state="1">
309            <bounds x="2" y="2" width="48" height="48"/>
310            <color red="0.25" green="0.25" blue="0.25" />
311        </rect>
312        <text string="SAME GAME" state="1">
313            <bounds x="10" y="26" width="40" height="20"/>
314            <color red="1.0" green="1.0" blue="1.0" />
315        </text>
316   </element>
317
318   <element name="hit_me" defstate="0">
319        <rect>
320            <bounds x="2" y="2" width="48" height="48"/>
321            <color red="0.1" green="0.1" blue="0.1" />
322        </rect>
323        <rect state="0">
324            <bounds x="0" y="0" width="48" height="48"/>
325            <color red="0.25" green="0.25" blue="0.25" />
326        </rect>
327        <text string="HIT ME" state="0">
328            <bounds x="8" y="24" width="40" height="20"/>
329            <color red="1.0" green="1.0" blue="1.0" />
330        </text>
331        <rect state="1">
332            <bounds x="2" y="2" width="48" height="48"/>
333            <color red="0.25" green="0.25" blue="0.25" />
334        </rect>
335        <text string="HIT ME" state="1">
336            <bounds x="10" y="26" width="40" height="20"/>
337            <color red="1.0" green="1.0" blue="1.0" />
338        </text>
339   </element>
340
341   <element name="comp_turn" defstate="0">
342        <rect>
343            <bounds x="2" y="2" width="48" height="48"/>
344            <color red="0.1" green="0.1" blue="0.1" />
345        </rect>
346        <rect state="0">
347            <bounds x="0" y="0" width="48" height="48"/>
348            <color red="0.25" green="0.25" blue="0.25" />
349        </rect>
350        <text string="COMP TURN" state="0">
351            <bounds x="8" y="24" width="40" height="20"/>
352            <color red="1.0" green="1.0" blue="1.0" />
353        </text>
354        <rect state="1">
355            <bounds x="2" y="2" width="48" height="48"/>
356            <color red="0.25" green="0.25" blue="0.25" />
357        </rect>
358        <text string="COMP TURN" state="1">
359            <bounds x="10" y="26" width="40" height="20"/>
360            <color red="1.0" green="1.0" blue="1.0" />
361        </text>
362   </element>
363
19364   <view name="Default Layout">
20365
21366      <!-- Black background -->
22367      <bezel element="background">
23         <bounds left="0" top="0" right="200" bottom="200" />
368         <bounds left="0" top="0" right="200" bottom="250" />
24369      </bezel>
25370
371      <!-- LEDs and number buttons -->
372
26373      <bezel name="led_0" element="led">
27374         <bounds x="100" y="20" width="20" height="10" />
28375      </bezel>
376      <bezel element="0" inputtag="O0" inputmask="0x01">
377         <bounds x="100" y="32" width="20" height="10" />
378      </bezel>
29379
30380      <bezel name="led_1" element="led">
31381         <bounds x="50" y="50" width="20" height="10" />
32382      </bezel>
383      <bezel element="1" inputtag="O1" inputmask="0x01">
384         <bounds x="50" y="62" width="20" height="10" />
385      </bezel>
386
33387      <bezel name="led_2" element="led">
34388         <bounds x="100" y="50" width="20" height="10" />
35389      </bezel>
390      <bezel element="2" inputtag="O3" inputmask="0x01">
391         <bounds x="100" y="62" width="20" height="10" />
392      </bezel>
393
36394      <bezel name="led_3" element="led">
37395         <bounds x="150" y="50" width="20" height="10" />
38396      </bezel>
397      <bezel element="3" inputtag="O2" inputmask="0x01">
398         <bounds x="150" y="62" width="20" height="10" />
399      </bezel>
39400
401
40402      <bezel name="led_4" element="led">
41403         <bounds x="50" y="80" width="20" height="10" />
42404      </bezel>
405      <bezel element="4" inputtag="O0" inputmask="0x02">
406         <bounds x="50" y="92" width="20" height="10" />
407      </bezel>
408
43409      <bezel name="led_5" element="led">
44410         <bounds x="100" y="80" width="20" height="10" />
45411      </bezel>
412      <bezel element="5" inputtag="O1" inputmask="0x02">
413         <bounds x="100" y="92" width="20" height="10" />
414      </bezel>
415
46416      <bezel name="led_6" element="led">
47417         <bounds x="150" y="80" width="20" height="10" />
48418      </bezel>
419      <bezel element="6" inputtag="O3" inputmask="0x02">
420         <bounds x="150" y="92" width="20" height="10" />
421      </bezel>
49422
423
50424      <bezel name="led_7" element="led">
51425         <bounds x="50" y="110" width="20" height="10" />
52426      </bezel>
427      <bezel element="7" inputtag="O2" inputmask="0x02">
428         <bounds x="50" y="122" width="20" height="10" />
429      </bezel>
53430      <bezel name="led_8" element="led">
54431         <bounds x="100" y="110" width="20" height="10" />
55432      </bezel>
433      <bezel element="8" inputtag="O0" inputmask="0x04">
434         <bounds x="100" y="122" width="20" height="10" />
435      </bezel>
56436      <bezel name="led_9" element="led">
57437         <bounds x="150" y="110" width="20" height="10" />
58438      </bezel>
439      <bezel element="9" inputtag="O1" inputmask="0x04">
440         <bounds x="150" y="122" width="20" height="10" />
441      </bezel>
59442
443
60444      <bezel name="led_10" element="led">
61445         <bounds x="100" y="140" width="20" height="10" />
62446      </bezel>
447      <bezel element="10" inputtag="O3" inputmask="0x04">
448         <bounds x="100" y="152" width="20" height="10" />
449      </bezel>
63450
451
452      <!-- Other buttons -->
453
454      <bezel element="new_game" inputtag="O3" inputmask="0x08">
455         <bounds x="75" y="170" width="30" height="30" />
456      </bezel>
457      <bezel element="same_game" inputtag="O2" inputmask="0x04">
458         <bounds x="125" y="170" width="30" height="30" />
459      </bezel>
460
461      <bezel element="hit_me" inputtag="O2" inputmask="0x08">
462         <bounds x="75" y="210" width="30" height="30" />
463      </bezel>
464      <bezel element="comp_turn" inputtag="O1" inputmask="0x08">
465         <bounds x="125" y="210" width="30" height="30" />
466      </bezel>
64467   </view>
65468</mamelayout>

Previous 199869 Revisions Next


© 1997-2024 The MAME Team