mirror of
https://github.com/holub/mame
synced 2025-05-30 09:33:05 +03:00
Lamps/layout for crazybon
This commit is contained in:
parent
ed5150561a
commit
2408abf04a
@ -121,6 +121,7 @@
|
||||
#include "goldstar.lh"
|
||||
#include "cherryb3.lh"
|
||||
#include "lucky8.lh"
|
||||
#include "crazybon.lh"
|
||||
#include "bingowng.lh"
|
||||
|
||||
|
||||
@ -642,6 +643,30 @@ static ADDRESS_MAP_START( cm_portmap, AS_IO, 8, goldstar_state )
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
WRITE8_MEMBER(goldstar_state::pkrmast_lamps_w)
|
||||
{
|
||||
/* bits
|
||||
7654 3210
|
||||
---- --x- Start
|
||||
---- x--- Bet
|
||||
---x ---- Stop All / Take Score
|
||||
--x- ---- Double Up
|
||||
-x-- ---- Small / Info
|
||||
x--- ---- Big
|
||||
---- -x-x Unused in Crazy Bonus
|
||||
*/
|
||||
|
||||
output_set_lamp_value(0, (data >> 1) & 1); /* Start */
|
||||
output_set_lamp_value(1, (data >> 3) & 1); /* Bet */
|
||||
output_set_lamp_value(2, (data >> 4) & 1); /* Stop All / Take Score */
|
||||
output_set_lamp_value(3, (data >> 5) & 1); /* Double Up */
|
||||
output_set_lamp_value(4, (data >> 6) & 1); /* Small / Info */
|
||||
output_set_lamp_value(5, (data >> 7) & 1); /* Big */
|
||||
|
||||
if (data & 0x05)
|
||||
popmessage("lamps: %02X", data);
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( pkrmast_portmap, AS_IO, 8, goldstar_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
|
||||
@ -655,6 +680,7 @@ static ADDRESS_MAP_START( pkrmast_portmap, AS_IO, 8, goldstar_state )
|
||||
|
||||
AM_RANGE(0x20, 0x20) AM_READ_PORT("DSW3-0")
|
||||
AM_RANGE(0x21, 0x21) AM_READ_PORT("DSW3-1")
|
||||
AM_RANGE(0x22, 0x22) AM_WRITE(pkrmast_lamps_w)
|
||||
|
||||
AM_RANGE(0x25, 0x25) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0x26, 0x26) AM_READ_PORT("DSW2")
|
||||
@ -14030,7 +14056,7 @@ GAME( 199?, goldfrui, goldstar, goldfrui, goldstar, driver_device, 0,
|
||||
GAME( 2001, super9, goldstar, super9, goldstar, goldstar_state, super9, ROT0, "Playmark", "Super Nove (Playmark)", GAME_NOT_WORKING ) // need to decode gfx and see the program loops/reset...
|
||||
GAME( 2001, wcherry, 0, wcherry, chrygld, goldstar_state, wcherry, ROT0, "bootleg", "Win Cherry (ver 0.16 - 19990219)", GAME_NOT_WORKING )
|
||||
GAME( 199?, star100, 0, star100, star100, driver_device, 0, ROT0, "Sang Ho", "Ming Xing 100 (Star 100)", GAME_IMPERFECT_COLORS )
|
||||
GAME( 1997, crazybon, 0, pkrmast, crazybon, goldstar_state, cmv4, ROT0, "bootleg (Crazy Co.)", "Crazy Bonus 2002", GAME_IMPERFECT_COLORS )
|
||||
GAMEL( 1997, crazybon, 0, pkrmast, crazybon, goldstar_state, cmv4, ROT0, "bootleg (Crazy Co.)", "Crazy Bonus 2002", GAME_IMPERFECT_COLORS, layout_crazybon )
|
||||
|
||||
|
||||
// are these really dyna, or bootlegs?
|
||||
|
@ -65,6 +65,7 @@ public:
|
||||
DECLARE_WRITE8_MEMBER(goldstar_lamps_w);
|
||||
DECLARE_WRITE8_MEMBER(cb3_lamps_w);
|
||||
DECLARE_WRITE8_MEMBER(cm_outport1_w);
|
||||
DECLARE_WRITE8_MEMBER(pkrmast_lamps_w);
|
||||
DECLARE_WRITE8_MEMBER(lucky8_outport_w);
|
||||
DECLARE_WRITE8_MEMBER(magodds_outb850_w);
|
||||
DECLARE_WRITE8_MEMBER(magodds_outb860_w);
|
||||
|
254
src/mame/layout/crazybon.lay
Normal file
254
src/mame/layout/crazybon.lay
Normal file
@ -0,0 +1,254 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<!--
|
||||
Crazy Bonus 2002 control panel
|
||||
May or may not match arrangement/colour of real control panel
|
||||
Written by Vas Crabb.
|
||||
-->
|
||||
|
||||
<!-- define button-lamps -->
|
||||
|
||||
<element name="stop" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="1.0" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.15" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<text string="STOP">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.1" width="1" height="0.4" />
|
||||
</text>
|
||||
<text string="TAKE">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.5" width="1" height="0.4" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="big" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="1.0" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.15" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<text string="BIG">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.3" width="1" height="0.4" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="small" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="1.0" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.15" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<text string="SMALL">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.1" width="1" height="0.4" />
|
||||
</text>
|
||||
<text string="INFO">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.5" width="1" height="0.4" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="dup" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="1.0" green="0.5" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.15" green="0.075" blue="0.0" />
|
||||
</rect>
|
||||
<text string="DOUBLE">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.3" width="1" height="0.4" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="start" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="0.0" green="1.0" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.0" green="0.15" blue="0.0" />
|
||||
</rect>
|
||||
<text string="START">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.3" width="1" height="0.4" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="bet" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="1.0" green="0.0" blue="1.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.15" green="0.0" blue="0.15" />
|
||||
</rect>
|
||||
<text string="BET">
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
<bounds x="0" y="0.3" width="1" height="0.4" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
|
||||
<!-- define basic elements -->
|
||||
|
||||
<element name="cpanel">
|
||||
<rect>
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="stop_b" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="0.7" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.1" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="bet_b" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="0.7" green="0.0" blue="0.7" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.1" green="0.0" blue="0.1" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="dup_b" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="0.7" green="0.35" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.1" green="0.05" blue="0.0" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="start_b" defstate="0">
|
||||
<rect state="1">
|
||||
<color red="0.0" green="0.7" blue="0.0" />
|
||||
</rect>
|
||||
<rect state="0">
|
||||
<color red="0.0" green="0.1" blue="0.0" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
|
||||
|
||||
<!-- define cpanel degradee elements -->
|
||||
|
||||
|
||||
<element name="cpanel1">
|
||||
<rect>
|
||||
<color red="0.20" green="0.20" blue="0.20" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="cpanel2">
|
||||
<rect>
|
||||
<color red="0.15" green="0.15" blue="0.15" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="cpanel3">
|
||||
<rect>
|
||||
<color red="0.10" green="0.10" blue="0.10" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="cpanel4">
|
||||
<rect>
|
||||
<color red="0.05" green="0.05" blue="0.05" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
|
||||
<!-- define background -->
|
||||
|
||||
<view name="Button Lamps">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
|
||||
<bezel element="cpanel">
|
||||
<bounds left="0" right="4" top="3" bottom="3.40" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="cpanel1">
|
||||
<bounds left="0" right="4" top="3.01" bottom="3.39" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="cpanel2">
|
||||
<bounds left="0" right="4" top="3.02" bottom="3.38" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="cpanel3">
|
||||
<bounds left="0" right="4" top="3.03" bottom="3.37" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="cpanel4">
|
||||
<bounds left="0" right="4" top="3.04" bottom="3.36" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="cpanel">
|
||||
<bounds left="0" right="4" top="3.05" bottom="3.35" />
|
||||
</bezel>
|
||||
|
||||
|
||||
<!-- define lamps -->
|
||||
|
||||
<bezel name="lamp0" element="start_b">
|
||||
<bounds x="3.45" y="3.08" width="0.50" height="0.24" />
|
||||
</bezel>
|
||||
<bezel name="lamp0" element="start">
|
||||
<bounds x="3.47" y="3.10" width="0.46" height="0.20" />
|
||||
</bezel>
|
||||
|
||||
|
||||
<bezel name="lamp1" element="bet_b">
|
||||
<bounds x="0.05" y="3.08" width="0.40" height="0.24" />
|
||||
</bezel>
|
||||
<bezel name="lamp1" element="bet">
|
||||
<bounds x="0.07" y="3.10" width="0.36" height="0.20" />
|
||||
</bezel>
|
||||
|
||||
|
||||
<bezel name="lamp2" element="stop_b">
|
||||
<bounds x="1.4" y="3.08" width="0.50" height="0.24" />
|
||||
</bezel>
|
||||
<bezel name="lamp2" element="stop">
|
||||
<bounds x="1.42" y="3.10" width="0.46" height="0.20" />
|
||||
</bezel>
|
||||
|
||||
|
||||
<bezel name="lamp3" element="dup_b">
|
||||
<bounds x="0.65" y="3.08" width="0.50" height="0.24" />
|
||||
</bezel>
|
||||
<bezel name="lamp3" element="dup">
|
||||
<bounds x="0.67" y="3.10" width="0.46" height="0.20" />
|
||||
</bezel>
|
||||
|
||||
|
||||
<bezel name="lamp4" element="stop_b">
|
||||
<bounds x="2.7" y="3.08" width="0.50" height="0.24" />
|
||||
</bezel>
|
||||
<bezel name="lamp4" element="small">
|
||||
<bounds x="2.72" y="3.10" width="0.46" height="0.20" />
|
||||
</bezel>
|
||||
|
||||
|
||||
<bezel name="lamp5" element="stop_b">
|
||||
<bounds x="2.05" y="3.08" width="0.50" height="0.24" />
|
||||
</bezel>
|
||||
<bezel name="lamp5" element="big">
|
||||
<bounds x="2.07" y="3.10" width="0.46" height="0.20" />
|
||||
</bezel>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
@ -2674,6 +2674,7 @@ $(DRIVERS)/lbeach.o: $(LAYOUT)/lbeach.lh
|
||||
$(DRIVERS)/goldstar.o: $(LAYOUT)/goldstar.lh \
|
||||
$(LAYOUT)/cherryb3.lh \
|
||||
$(LAYOUT)/lucky8.lh \
|
||||
$(LAYOUT)/crazybon.lh \
|
||||
$(LAYOUT)/bingowng.lh
|
||||
|
||||
$(DRIVERS)/grchamp.o: $(LAYOUT)/grchamp.lh
|
||||
|
Loading…
Reference in New Issue
Block a user