summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatarGravatar Robbbert <robbbert@users.noreply.github.com>2012-09-11 10:52:06 +0000
committerGravatarGravatar Robbbert <robbbert@users.noreply.github.com>2012-09-11 10:52:06 +0000
commit531acfd487ca28710dd97639d8dbc1c6b3bf831b (patch)
tree5fce137c4b19baf79285a0715e4a1bd087113f1e
parentc757183caedaf18745269fc77a08df05ef1e94e4 (diff)
rotation: preliminary layout
-rw-r--r--.gitattributes1
-rw-r--r--src/mame/drivers/g627.c4
-rw-r--r--src/mame/layout/g627.lay160
-rw-r--r--src/mame/mame.mak2
4 files changed, 167 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index a3a1a7920c2..8b9e4cf3ba6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4295,6 +4295,7 @@ src/mame/layout/finallap.lay svneol=native#text/plain
src/mame/layout/firebeat.lay svneol=native#text/plain
src/mame/layout/flicker.lay svneol=native#text/plain
src/mame/layout/fortecrd.lay svneol=native#text/plain
+src/mame/layout/g627.lay svneol=native#text/plain
src/mame/layout/galaxi.lay -text svneol=native#plain/text
src/mame/layout/gamball.lay svneol=native#text/plain
src/mame/layout/geebee.lay svneol=native#text/plain
diff --git a/src/mame/drivers/g627.c b/src/mame/drivers/g627.c
index 2f23085a7bd..b8cf858453f 100644
--- a/src/mame/drivers/g627.c
+++ b/src/mame/drivers/g627.c
@@ -30,6 +30,7 @@ ToDo:
#include "cpu/z80/z80.h"
#include "machine/i8155.h"
#include "sound/astrocde.h"
+#include "g627.lh"
class g627_state : public driver_device
@@ -125,6 +126,9 @@ static MACHINE_CONFIG_START( g627, g627_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("astrocade", ASTROCADE, 14138000/8) // 0066-117XX audio chip
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+
+ /* Video */
+ MCFG_DEFAULT_LAYOUT(layout_g627)
MACHINE_CONFIG_END
/*-------------------------------------------------------------------
diff --git a/src/mame/layout/g627.lay b/src/mame/layout/g627.lay
new file mode 100644
index 00000000000..470c4124a28
--- /dev/null
+++ b/src/mame/layout/g627.lay
@@ -0,0 +1,160 @@
+<!-- g627.lay -->
+
+<!-- 2012-09-11: Initial version. [Robbbert] -->
+
+<mamelayout version="2">
+
+ <element name="digit" defstate="0">
+ <led7seg>
+ <color red="1.0" green="0.0" blue="0.0" />
+ </led7seg>
+ </element>
+
+ <element name="background">
+ <rect>
+ <bounds left="0" top="0" right="1" bottom="1" />
+ <color red="0.0" green="0.0" blue="0.0" />
+ </rect>
+ </element>
+ <element name="P0"><text string="Balls"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+ <element name="P1"><text string="Credits"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+ <element name="P3"><text string="Player 1"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+ <element name="P4"><text string="Player 2"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+ <element name="P5"><text string="Player 3"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+ <element name="P6"><text string="Player 4"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+ <element name="P7"><text string="High Score"><color red="1.0" green="1.0" blue="1.0" /></text></element>
+
+ <view name="Default Layout">
+
+ <!-- Background -->
+ <backdrop element="background">
+ <bounds left="0" top="20" right="274" bottom="394" />
+ </backdrop>
+
+ <!-- LEDs -->
+
+ <!-- Player 1 Score -->
+
+ <bezel name="digit5" element="digit">
+ <bounds left="10" top="45" right="44" bottom="84" />
+ </bezel>
+ <bezel name="digit4" element="digit">
+ <bounds left="54" top="45" right="88" bottom="84" />
+ </bezel>
+ <bezel name="digit3" element="digit">
+ <bounds left="98" top="45" right="132" bottom="84" />
+ </bezel>
+ <bezel name="digit2" element="digit">
+ <bounds left="142" top="45" right="176" bottom="84" />
+ </bezel>
+ <bezel name="digit1" element="digit">
+ <bounds left="186" top="45" right="220" bottom="84" />
+ </bezel>
+ <bezel name="digit0" element="digit">
+ <bounds left="230" top="45" right="264" bottom="84" />
+ </bezel>
+
+ <!-- Player 2 Score -->
+ <bezel name="digit15" element="digit">
+ <bounds left="10" top="105" right="44" bottom="144" />
+ </bezel>
+ <bezel name="digit14" element="digit">
+ <bounds left="54" top="105" right="88" bottom="144" />
+ </bezel>
+ <bezel name="digit13" element="digit">
+ <bounds left="98" top="105" right="132" bottom="144" />
+ </bezel>
+ <bezel name="digit12" element="digit">
+ <bounds left="142" top="105" right="176" bottom="144" />
+ </bezel>
+ <bezel name="digit11" element="digit">
+ <bounds left="186" top="105" right="220" bottom="144" />
+ </bezel>
+ <bezel name="digit10" element="digit">
+ <bounds left="230" top="105" right="264" bottom="144" />
+ </bezel>
+
+ <!-- Player 3 Score -->
+ <bezel name="digit25" element="digit">
+ <bounds left="10" top="165" right="44" bottom="204" />
+ </bezel>
+ <bezel name="digit24" element="digit">
+ <bounds left="54" top="165" right="88" bottom="204" />
+ </bezel>
+ <bezel name="digit23" element="digit">
+ <bounds left="98" top="165" right="132" bottom="204" />
+ </bezel>
+ <bezel name="digit22" element="digit">
+ <bounds left="142" top="165" right="176" bottom="204" />
+ </bezel>
+ <bezel name="digit21" element="digit">
+ <bounds left="186" top="165" right="220" bottom="204" />
+ </bezel>
+ <bezel name="digit20" element="digit">
+ <bounds left="230" top="165" right="264" bottom="204" />
+ </bezel>
+
+ <!-- Player 4 Score -->
+ <bezel name="digit35" element="digit">
+ <bounds left="10" top="225" right="44" bottom="264" />
+ </bezel>
+ <bezel name="digit34" element="digit">
+ <bounds left="54" top="225" right="88" bottom="264" />
+ </bezel>
+ <bezel name="digit33" element="digit">
+ <bounds left="98" top="225" right="132" bottom="264" />
+ </bezel>
+ <bezel name="digit32" element="digit">
+ <bounds left="142" top="225" right="176" bottom="264" />
+ </bezel>
+ <bezel name="digit31" element="digit">
+ <bounds left="186" top="225" right="220" bottom="264" />
+ </bezel>
+ <bezel name="digit30" element="digit">
+ <bounds left="230" top="225" right="264" bottom="264" />
+ </bezel>
+
+ <!-- High Score -->
+ <bezel name="digit45" element="digit">
+ <bounds left="10" top="285" right="44" bottom="324" />
+ </bezel>
+ <bezel name="digit44" element="digit">
+ <bounds left="54" top="285" right="88" bottom="324" />
+ </bezel>
+ <bezel name="digit43" element="digit">
+ <bounds left="98" top="285" right="132" bottom="324" />
+ </bezel>
+ <bezel name="digit42" element="digit">
+ <bounds left="142" top="285" right="176" bottom="324" />
+ </bezel>
+ <bezel name="digit41" element="digit">
+ <bounds left="186" top="285" right="220" bottom="324" />
+ </bezel>
+ <bezel name="digit40" element="digit">
+ <bounds left="230" top="285" right="264" bottom="324" />
+ </bezel>
+
+ <!-- Credits -->
+ <bezel name="digit55" element="digit">
+ <bounds left="10" top="345" right="44" bottom="384" />
+ </bezel>
+ <bezel name="digit54" element="digit">
+ <bounds left="54" top="345" right="88" bottom="384" />
+ </bezel>
+
+ <!-- Match / Balls Left -->
+ <bezel name="digit51" element="digit">
+ <bounds left="186" top="345" right="220" bottom="384" />
+ </bezel>
+ <bezel name="digit50" element="digit">
+ <bounds left="230" top="345" right="264" bottom="384" />
+ </bezel>
+ <bezel element="P0"><bounds left="200" right="258" top="330" bottom="342" /></bezel>
+ <bezel element="P1"><bounds left="30" right="88" top="330" bottom="342" /></bezel>
+ <bezel element="P3"><bounds left="100" right="180" top="30" bottom="42" /></bezel>
+ <bezel element="P4"><bounds left="100" right="180" top="90" bottom="102" /></bezel>
+ <bezel element="P5"><bounds left="100" right="180" top="150" bottom="162" /></bezel>
+ <bezel element="P6"><bounds left="100" right="180" top="210" bottom="222" /></bezel>
+ <bezel element="P7"><bounds left="100" right="180" top="270" bottom="282" /></bezel>
+ </view>
+</mamelayout>
diff --git a/src/mame/mame.mak b/src/mame/mame.mak
index 5ce3321cfdb..0bf4b79e290 100644
--- a/src/mame/mame.mak
+++ b/src/mame/mame.mak
@@ -2049,6 +2049,8 @@ $(DRIVERS)/funworld.o: $(LAYOUT)/jollycrd.lh \
$(LAYOUT)/novoplay.lh \
$(LAYOUT)/royalcrd.lh
+$(DRIVERS)/g627.o: $(LAYOUT)/g627.lh
+
$(DRIVERS)/galaxi.o: $(LAYOUT)/galaxi.lh
$(DRIVERS)/gatron.o: $(LAYOUT)/poker41.lh \