cgang: add simple internal artwork (nw)

This commit is contained in:
hap 2019-12-17 02:21:52 +01:00
parent 740e2df797
commit dfdf004a07
2 changed files with 296 additions and 28 deletions

View File

@ -8,11 +8,14 @@ Data East, they titled it "Cosmo Gang".
It is an electromechanical arcade lightgun game. There is no screen, feedback
is with motorized elements, lamps and 7segs, and of course sounds and music.
To shoot the targets in MAME, either enable -mouse and click on one of the
cosmogang lanes(left mouse button doubles as gun trigger by default).
Or, configure the gun aim inputs and share them with the trigger. For example
use Z,X,C,V,B for the gun aims, and "Z or X or C or V or B" for the trigger.
TODO:
- internal artwork
- game can't really be played within MAME's constraints (mechanical stuff,
- game can't be played properly within MAME's constraints (mechanical stuff,
and the lightguns linked to it)
- ppi2_b_r cabinet center sensors, doesn't seem to affect the game at all
-------------------------------------------------------------------------------
@ -63,6 +66,9 @@ Overall, the hardware has similarities with Wacky Gator, see wacky_gator.cpp.
#include "speaker.h"
// internal artwork
#include "cgang.lh" // clickable
namespace {
@ -70,8 +76,9 @@ namespace {
static constexpr int DOOR_MOTOR_LIMIT = 2000;
// length of each cosmogang lane, in motor steps
// at game start, one cosmo going forward takes around 6-7 seconds (compared to video recording)
static constexpr int CG_MOTOR_LIMIT = 850;
// At game start, one cosmo going forward takes around 7 seconds, and if the player does nothing
// at the 1st round, game is lost with around 10 seconds remaining (compared to video recording).
static constexpr int CG_MOTOR_LIMIT = 1000;
class cgang_state : public driver_device
@ -181,7 +188,7 @@ private:
int m_cg_motor_clk[5];
int m_cg_motor_pos[5];
int m_en_motor_pos[5];
int m_en_pos[5];
emu_timer *m_sol_filter[5];
TIMER_CALLBACK_MEMBER(output_sol) { m_en_sol[param >> 1] = param & 1; }
@ -214,7 +221,7 @@ void cgang_state::machine_start()
save_item(NAME(m_cg_motor_dir));
save_item(NAME(m_cg_motor_clk));
save_item(NAME(m_cg_motor_pos));
save_item(NAME(m_en_motor_pos));
save_item(NAME(m_en_pos));
}
void cgang_state::machine_reset()
@ -227,7 +234,7 @@ void cgang_state::machine_reset()
{
m_cg_motor_clk[i] = 0;
m_cg_motor_pos[i] = 0;
m_en_motor_pos[i] = CG_MOTOR_LIMIT;
m_en_pos[i] = CG_MOTOR_LIMIT;
m_en_sol[i] = 0;
}
@ -287,33 +294,33 @@ WRITE_LINE_MEMBER(cgang_state::motor_clock_w)
void cgang_state::cg_motor_tick(int i)
{
// note: the cosmogangs are stuck on the drive belts(5),
// and the energy crates can lock(or loosen) themselves from the belt
// and the energy crates can lock themselves into position
if (BIT(m_cg_motor_dir, i))
{
if (m_cg_motor_pos[i] > 0)
{
m_cg_motor_pos[i]--;
// pull energy crate
if (m_en_sol[i] && m_cg_motor_pos[i] == m_en_pos[i])
m_en_pos[i]--;
// 'pull' energy crate
if (m_en_sol[i])
m_en_motor_pos[i]--;
m_cg_motor_pos[i]--;
}
}
else
{
// 'push' energy crate
if (m_en_sol[i])
if (m_cg_motor_pos[i] < CG_MOTOR_LIMIT)
{
if (m_en_motor_pos[i] < CG_MOTOR_LIMIT)
{
m_en_motor_pos[i]++;
if (m_cg_motor_pos[i] < m_en_pos[i])
m_cg_motor_pos[i]++;
// push energy crate
else if (m_en_sol[i])
{
m_cg_motor_pos[i]++;
m_en_pos[i]++;
}
}
else if (m_cg_motor_pos[i] < m_en_motor_pos[i])
m_cg_motor_pos[i]++;
}
refresh_motor_output();
@ -335,7 +342,7 @@ void cgang_state::refresh_motor_output()
for (int i = 0; i < 5; i++)
{
m_cg_count[i] = int((m_cg_motor_pos[i] / float(CG_MOTOR_LIMIT)) * 100.0 + 0.5);
m_en_count[i] = int((m_en_motor_pos[i] / float(CG_MOTOR_LIMIT)) * 100.0 + 0.5);
m_en_count[i] = int((m_en_pos[i] / float(CG_MOTOR_LIMIT)) * 100.0 + 0.5);
}
m_door_count = int((m_door_motor_pos / float(DOOR_MOTOR_LIMIT)) * 100.0 + 0.5);
@ -350,7 +357,7 @@ READ8_MEMBER(cgang_state::ppi1_b_r)
// PB0-PB4: cabinet front limit (CR1INI-CR5INI)
for (int i = 0; i < 5; i++)
if (m_en_motor_pos[i] == CG_MOTOR_LIMIT)
if (m_en_pos[i] == CG_MOTOR_LIMIT)
data ^= 1 << i;
// PB5-PB7: cabinet back limit (HST1-HST3)
@ -372,7 +379,7 @@ READ8_MEMBER(cgang_state::ppi1_c_r)
// PC2-PC6: cosmogang-energy crate collision (CR1-CR5)
for (int i = 0; i < 5; i++)
if (m_cg_motor_pos[i] == m_en_motor_pos[i])
if (m_cg_motor_pos[i] == m_en_pos[i])
data ^= 1 << (i + 2);
// PC7: audiocpu mailbox status
@ -414,7 +421,9 @@ READ8_MEMBER(cgang_state::ppi2_b_r)
u8 data = 0x1f;
// PB0-PB4: cabinet center (G1POG-G5POG)
// how this is sensed?
for (int i = 0; i < 5; i++)
if (m_cg_motor_pos[i] < (CG_MOTOR_LIMIT / 8))
data ^= 1 << i;
return data;
}
@ -444,7 +453,7 @@ WRITE8_MEMBER(cgang_state::ppi3_a_w)
WRITE8_MEMBER(cgang_state::ppi3_b_w)
{
// PA0-PA4: cosmogang motor power
// PB0-PB4: cosmogang motor power
m_cg_motor_on = data & 0x1f;
// PB5: game over(winning) lamp
@ -792,7 +801,7 @@ void cgang_state::cgang(machine_config &config)
PWM_DISPLAY(config, m_digits).set_size(10, 7);
m_digits->set_segmask(0x3ff, 0x7f);
//config.set_default_layout(layout_cgang);
config.set_default_layout(layout_cgang);
/* sound hardware */
SPEAKER(config, "mono").front_center();
@ -835,4 +844,4 @@ ROM_END
******************************************************************************/
/* YEAR NAME PARENT MACHINE INPUT CLASS INIT MONITOR COMPANY, FULLNAME, FLAGS */
GAME( 1990, cgang, 0, cgang, cgang, cgang_state, empty_init, ROT0, "Namco (Data East license)", "Cosmo Gang (US)", MACHINE_SUPPORTS_SAVE | MACHINE_MECHANICAL | MACHINE_NOT_WORKING )
GAME( 1990, cgang, 0, cgang, cgang, cgang_state, empty_init, ROT0, "Namco (Data East license)", "Cosmo Gang (US)", MACHINE_SUPPORTS_SAVE | MACHINE_MECHANICAL | MACHINE_CLICKABLE_ARTWORK | MACHINE_NOT_WORKING )

259
src/mame/layout/cgang.lay Normal file
View File

@ -0,0 +1,259 @@
<?xml version="1.0"?>
<mamelayout version="2">
<element name="nothing" defstate="0">
<text string=" "/>
</element>
<element name="ani_white" defstate="0">
<text string=" "><bounds x="0" y="0" width="1" height="100" /></text>
<rect state="1"><bounds x="0" y="0" width="1" height="1" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="2"><bounds x="0" y="0" width="1" height="2" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="3"><bounds x="0" y="0" width="1" height="3" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="4"><bounds x="0" y="0" width="1" height="4" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="5"><bounds x="0" y="0" width="1" height="5" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="6"><bounds x="0" y="0" width="1" height="6" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="7"><bounds x="0" y="0" width="1" height="7" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="8"><bounds x="0" y="0" width="1" height="8" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="9"><bounds x="0" y="0" width="1" height="9" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="10"><bounds x="0" y="0" width="1" height="10" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="11"><bounds x="0" y="0" width="1" height="11" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="12"><bounds x="0" y="0" width="1" height="12" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="13"><bounds x="0" y="0" width="1" height="13" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="14"><bounds x="0" y="0" width="1" height="14" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="15"><bounds x="0" y="0" width="1" height="15" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="16"><bounds x="0" y="0" width="1" height="16" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="17"><bounds x="0" y="0" width="1" height="17" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="18"><bounds x="0" y="0" width="1" height="18" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="19"><bounds x="0" y="0" width="1" height="19" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="20"><bounds x="0" y="0" width="1" height="20" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="21"><bounds x="0" y="0" width="1" height="21" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="22"><bounds x="0" y="0" width="1" height="22" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="23"><bounds x="0" y="0" width="1" height="23" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="24"><bounds x="0" y="0" width="1" height="24" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="25"><bounds x="0" y="0" width="1" height="25" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="26"><bounds x="0" y="0" width="1" height="26" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="27"><bounds x="0" y="0" width="1" height="27" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="28"><bounds x="0" y="0" width="1" height="28" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="29"><bounds x="0" y="0" width="1" height="29" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="30"><bounds x="0" y="0" width="1" height="30" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="31"><bounds x="0" y="0" width="1" height="31" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="32"><bounds x="0" y="0" width="1" height="32" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="33"><bounds x="0" y="0" width="1" height="33" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="34"><bounds x="0" y="0" width="1" height="34" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="35"><bounds x="0" y="0" width="1" height="35" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="36"><bounds x="0" y="0" width="1" height="36" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="37"><bounds x="0" y="0" width="1" height="37" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="38"><bounds x="0" y="0" width="1" height="38" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="39"><bounds x="0" y="0" width="1" height="39" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="40"><bounds x="0" y="0" width="1" height="40" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="41"><bounds x="0" y="0" width="1" height="41" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="42"><bounds x="0" y="0" width="1" height="42" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="43"><bounds x="0" y="0" width="1" height="43" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="44"><bounds x="0" y="0" width="1" height="44" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="45"><bounds x="0" y="0" width="1" height="45" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="46"><bounds x="0" y="0" width="1" height="46" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="47"><bounds x="0" y="0" width="1" height="47" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="48"><bounds x="0" y="0" width="1" height="48" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="49"><bounds x="0" y="0" width="1" height="49" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="50"><bounds x="0" y="0" width="1" height="50" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="51"><bounds x="0" y="0" width="1" height="51" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="52"><bounds x="0" y="0" width="1" height="52" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="53"><bounds x="0" y="0" width="1" height="53" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="54"><bounds x="0" y="0" width="1" height="54" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="55"><bounds x="0" y="0" width="1" height="55" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="56"><bounds x="0" y="0" width="1" height="56" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="57"><bounds x="0" y="0" width="1" height="57" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="58"><bounds x="0" y="0" width="1" height="58" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="59"><bounds x="0" y="0" width="1" height="59" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="60"><bounds x="0" y="0" width="1" height="60" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="61"><bounds x="0" y="0" width="1" height="61" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="62"><bounds x="0" y="0" width="1" height="62" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="63"><bounds x="0" y="0" width="1" height="63" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="64"><bounds x="0" y="0" width="1" height="64" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="65"><bounds x="0" y="0" width="1" height="65" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="66"><bounds x="0" y="0" width="1" height="66" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="67"><bounds x="0" y="0" width="1" height="67" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="68"><bounds x="0" y="0" width="1" height="68" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="69"><bounds x="0" y="0" width="1" height="69" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="70"><bounds x="0" y="0" width="1" height="70" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="71"><bounds x="0" y="0" width="1" height="71" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="72"><bounds x="0" y="0" width="1" height="72" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="73"><bounds x="0" y="0" width="1" height="73" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="74"><bounds x="0" y="0" width="1" height="74" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="75"><bounds x="0" y="0" width="1" height="75" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="76"><bounds x="0" y="0" width="1" height="76" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="77"><bounds x="0" y="0" width="1" height="77" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="78"><bounds x="0" y="0" width="1" height="78" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="79"><bounds x="0" y="0" width="1" height="79" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="80"><bounds x="0" y="0" width="1" height="80" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="81"><bounds x="0" y="0" width="1" height="81" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="82"><bounds x="0" y="0" width="1" height="82" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="83"><bounds x="0" y="0" width="1" height="83" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="84"><bounds x="0" y="0" width="1" height="84" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="85"><bounds x="0" y="0" width="1" height="85" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="86"><bounds x="0" y="0" width="1" height="86" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="87"><bounds x="0" y="0" width="1" height="87" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="88"><bounds x="0" y="0" width="1" height="88" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="89"><bounds x="0" y="0" width="1" height="89" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="90"><bounds x="0" y="0" width="1" height="90" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="91"><bounds x="0" y="0" width="1" height="91" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="92"><bounds x="0" y="0" width="1" height="92" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="93"><bounds x="0" y="0" width="1" height="93" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="94"><bounds x="0" y="0" width="1" height="94" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="95"><bounds x="0" y="0" width="1" height="95" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="96"><bounds x="0" y="0" width="1" height="96" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="97"><bounds x="0" y="0" width="1" height="97" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="98"><bounds x="0" y="0" width="1" height="98" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="99"><bounds x="0" y="0" width="1" height="99" /><color red="1.0" green="1.0" blue="1.0" /></rect>
<rect state="100"><bounds x="0" y="0" width="1" height="100" /><color red="1.0" green="1.0" blue="1.0" /></rect>
</element>
<element name="ani_crate" defstate="0">
<text string=" "><bounds x="0" y="0" width="1" height="102" /></text>
<rect state="0"><bounds x="0" y="0" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="1"><bounds x="0" y="1" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="2"><bounds x="0" y="2" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="3"><bounds x="0" y="3" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="4"><bounds x="0" y="4" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="5"><bounds x="0" y="5" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="6"><bounds x="0" y="6" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="7"><bounds x="0" y="7" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="8"><bounds x="0" y="8" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="9"><bounds x="0" y="9" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="10"><bounds x="0" y="10" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="11"><bounds x="0" y="11" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="12"><bounds x="0" y="12" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="13"><bounds x="0" y="13" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="14"><bounds x="0" y="14" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="15"><bounds x="0" y="15" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="16"><bounds x="0" y="16" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="17"><bounds x="0" y="17" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="18"><bounds x="0" y="18" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="19"><bounds x="0" y="19" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="20"><bounds x="0" y="20" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="21"><bounds x="0" y="21" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="22"><bounds x="0" y="22" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="23"><bounds x="0" y="23" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="24"><bounds x="0" y="24" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="25"><bounds x="0" y="25" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="26"><bounds x="0" y="26" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="27"><bounds x="0" y="27" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="28"><bounds x="0" y="28" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="29"><bounds x="0" y="29" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="30"><bounds x="0" y="30" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="31"><bounds x="0" y="31" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="32"><bounds x="0" y="32" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="33"><bounds x="0" y="33" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="34"><bounds x="0" y="34" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="35"><bounds x="0" y="35" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="36"><bounds x="0" y="36" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="37"><bounds x="0" y="37" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="38"><bounds x="0" y="38" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="39"><bounds x="0" y="39" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="40"><bounds x="0" y="40" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="41"><bounds x="0" y="41" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="42"><bounds x="0" y="42" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="43"><bounds x="0" y="43" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="44"><bounds x="0" y="44" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="45"><bounds x="0" y="45" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="46"><bounds x="0" y="46" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="47"><bounds x="0" y="47" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="48"><bounds x="0" y="48" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="49"><bounds x="0" y="49" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="50"><bounds x="0" y="50" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="51"><bounds x="0" y="51" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="52"><bounds x="0" y="52" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="53"><bounds x="0" y="53" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="54"><bounds x="0" y="54" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="55"><bounds x="0" y="55" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="56"><bounds x="0" y="56" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="57"><bounds x="0" y="57" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="58"><bounds x="0" y="58" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="59"><bounds x="0" y="59" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="60"><bounds x="0" y="60" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="61"><bounds x="0" y="61" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="62"><bounds x="0" y="62" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="63"><bounds x="0" y="63" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="64"><bounds x="0" y="64" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="65"><bounds x="0" y="65" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="66"><bounds x="0" y="66" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="67"><bounds x="0" y="67" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="68"><bounds x="0" y="68" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="69"><bounds x="0" y="69" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="70"><bounds x="0" y="70" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="71"><bounds x="0" y="71" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="72"><bounds x="0" y="72" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="73"><bounds x="0" y="73" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="74"><bounds x="0" y="74" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="75"><bounds x="0" y="75" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="76"><bounds x="0" y="76" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="77"><bounds x="0" y="77" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="78"><bounds x="0" y="78" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="79"><bounds x="0" y="79" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="80"><bounds x="0" y="80" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="81"><bounds x="0" y="81" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="82"><bounds x="0" y="82" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="83"><bounds x="0" y="83" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="84"><bounds x="0" y="84" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="85"><bounds x="0" y="85" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="86"><bounds x="0" y="86" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="87"><bounds x="0" y="87" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="88"><bounds x="0" y="88" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="89"><bounds x="0" y="89" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="90"><bounds x="0" y="90" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="91"><bounds x="0" y="91" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="92"><bounds x="0" y="92" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="93"><bounds x="0" y="93" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="94"><bounds x="0" y="94" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="95"><bounds x="0" y="95" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="96"><bounds x="0" y="96" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="97"><bounds x="0" y="97" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="98"><bounds x="0" y="98" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="99"><bounds x="0" y="99" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
<rect state="100"><bounds x="0" y="100" width="1" height="2" /><color red="1.0" green="0.0" blue="0.0" /></rect>
</element>
<element name="digit" defstate="0">
<led7seg><color red="1.0" green="0.15" blue="0.08" /></led7seg>
</element>
<view name="Internal Layout">
<bounds left="0" right="50" top="0" bottom="35" />
<element name="digit9" ref="digit"><bounds x="0" y="0" width="4" height="6" /></element>
<element name="digit8" ref="digit"><bounds x="4" y="0" width="4" height="6" /></element>
<element name="digit7" ref="digit"><bounds x="10" y="0" width="4" height="6" /></element>
<element name="digit6" ref="digit"><bounds x="14" y="0" width="4" height="6" /></element>
<element name="digit5" ref="digit"><bounds x="18" y="0" width="4" height="6" /></element>
<element name="digit4" ref="digit"><bounds x="25" y="0" width="4" height="6" /></element>
<element name="digit3" ref="digit"><bounds x="29" y="0" width="4" height="6" /></element>
<element name="digit2" ref="digit"><bounds x="35" y="0" width="4" height="6" /></element>
<element name="digit1" ref="digit"><bounds x="39" y="0" width="4" height="6" /></element>
<element name="digit0" ref="digit"><bounds x="43" y="0" width="4" height="6" /></element>
<element ref="nothing" inputtag="FAKE1" inputmask="0x01"><bounds x="10" y="15" width="1" height="15" /></element>
<element ref="nothing" inputtag="FAKE1" inputmask="0x02"><bounds x="12" y="15" width="1" height="15" /></element>
<element ref="nothing" inputtag="FAKE1" inputmask="0x04"><bounds x="14" y="15" width="1" height="15" /></element>
<element ref="nothing" inputtag="FAKE1" inputmask="0x08"><bounds x="16" y="15" width="1" height="15" /></element>
<element ref="nothing" inputtag="FAKE1" inputmask="0x10"><bounds x="18" y="15" width="1" height="15" /></element>
<element name="door_count" ref="ani_white"><bounds x="10" y="13" width="9" height="2" /></element>
<element name="cg_count0" ref="ani_white"><bounds x="10" y="15" width="1" height="15" /></element>
<element name="cg_count1" ref="ani_white"><bounds x="12" y="15" width="1" height="15" /></element>
<element name="cg_count2" ref="ani_white"><bounds x="14" y="15" width="1" height="15" /></element>
<element name="cg_count3" ref="ani_white"><bounds x="16" y="15" width="1" height="15" /></element>
<element name="cg_count4" ref="ani_white"><bounds x="18" y="15" width="1" height="15" /></element>
<element name="en_count0" ref="ani_crate"><bounds x="10" y="15" width="1" height="15" /></element>
<element name="en_count1" ref="ani_crate"><bounds x="12" y="15" width="1" height="15" /></element>
<element name="en_count2" ref="ani_crate"><bounds x="14" y="15" width="1" height="15" /></element>
<element name="en_count3" ref="ani_crate"><bounds x="16" y="15" width="1" height="15" /></element>
<element name="en_count4" ref="ani_crate"><bounds x="18" y="15" width="1" height="15" /></element>
</view>
</mamelayout>