mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
hh_cop400: added lchicken internal layout (nw)
This commit is contained in:
parent
55fa96ac70
commit
435e0bd4d6
@ -25,7 +25,7 @@
|
||||
#include "funjacks.lh" // clickable
|
||||
#include "funrlgl.lh"
|
||||
#include "h2hbaskb.lh"
|
||||
//#include "lchicken.lh"
|
||||
#include "lchicken.lh"
|
||||
#include "lightfgt.lh" // clickable
|
||||
#include "mdallas.lh"
|
||||
#include "qkracer.lh"
|
||||
@ -727,8 +727,7 @@ static MACHINE_CONFIG_START( lchicken, lchicken_state )
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("chicken_motor", lchicken_state, motor_sim_tick, attotime::from_msec(6000/0x100)) // ~6sec for a full rotation
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_cop400_state, display_decay_tick, attotime::from_msec(1))
|
||||
//MCFG_DEFAULT_LAYOUT(layout_lchicken)
|
||||
MCFG_DEFAULT_LAYOUT(layout_hh_cop400_test)
|
||||
MCFG_DEFAULT_LAYOUT(layout_lchicken)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
111
src/mame/layout/lchicken.lay
Normal file
111
src/mame/layout/lchicken.lay
Normal file
@ -0,0 +1,111 @@
|
||||
<?xml version="1.0"?>
|
||||
<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_white"><rect><color red="0.9" green="0.9" blue="0.9" /></rect></element>
|
||||
<element name="static_white2"><rect><color red="0.7" green="0.7" blue="0.7" /></rect></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" />
|
||||
|
||||
<bezel element="static_white2"><bounds x="0" y="9.75" width="17" height="17.5" /></bezel>
|
||||
<bezel element="static_orange"><bounds x="0" y="10" width="17" height="17" /></bezel>
|
||||
<bezel name="0.2" element="led1"><bounds x="0" y="10" width="5" height="5" /></bezel>
|
||||
<bezel name="0.1" element="led2"><bounds x="6" y="10" width="5" height="5" /></bezel>
|
||||
<bezel name="0.0" element="led3"><bounds x="12" y="10" width="5" height="5" /></bezel>
|
||||
<bezel name="1.2" element="led4"><bounds x="0" y="16" width="5" height="5" /></bezel>
|
||||
<bezel name="1.1" element="led5"><bounds x="6" y="16" width="5" height="5" /></bezel>
|
||||
<bezel name="1.0" element="led6"><bounds x="12" y="16" width="5" height="5" /></bezel>
|
||||
<bezel name="2.2" element="led7"><bounds x="0" y="22" width="5" height="5" /></bezel>
|
||||
<bezel name="2.1" element="led8"><bounds x="6" y="22" width="5" height="5" /></bezel>
|
||||
<bezel name="2.0" element="led9"><bounds x="12" y="22" width="5" height="5" /></bezel>
|
||||
|
||||
<bezel element="text_chicken"><bounds x="0" y="28" width="4.5" height="1" /></bezel>
|
||||
<bezel element="text_player"><bounds x="0" y="29.5" width="4.5" height="1" /></bezel>
|
||||
<bezel name="0.3" element="led"><bounds x="5" y="28" width="1" height="1" /></bezel>
|
||||
<bezel name="1.3" element="led"><bounds x="5" y="29.5" width="1" height="1" /></bezel>
|
||||
|
||||
<!-- motor status info -->
|
||||
|
||||
<bezel element="text_m1"><bounds x="5.3" y="8" width="6" height="1" /></bezel>
|
||||
<bezel name="motor_pos" element="counter"><bounds x="10.46" y="8" width="3" height="1" /></bezel>
|
||||
<bezel element="text_m2"><bounds x="11.4" y="8" width="2" height="1" /></bezel>
|
||||
<bezel name="motor_on" element="mask">
|
||||
<bounds x="5" y="7.5" width="10" height="2" />
|
||||
<color alpha="0.7" />
|
||||
</bezel>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
Loading…
Reference in New Issue
Block a user