intellect02: add buttons to layout (nw)

This commit is contained in:
hap 2019-02-23 11:40:05 +01:00
parent d0cb917f3f
commit 6301445122
3 changed files with 74 additions and 5 deletions

View File

@ -7,7 +7,7 @@
<software name="chess">
<description>Chess</description>
<year>1983</year>
<year>1985</year>
<publisher>BREA Research Institute</publisher>
<part name="cart" interface="intellect02">
<dataarea name="rom" size="0x2000">

View File

@ -6,7 +6,8 @@
This is a Soviet electronic board game console, a dozen or so cartridge games were
made for it(can't say for certain how many released). PCB labels have prefix ДМП,
it's assumed to have been designed by НИИ БРЭА (SRI BREA). First shown in 1983.
it's assumed to have been designed by НИИ БРЭА (SRI BREA). First shown in 1983,
produced during around 1985-1992.
hardware notes:
- КР580ВМ80А CPU (i8080 clone), speed unknown
@ -46,7 +47,7 @@ TODO:
#include "softlist.h"
// internal artwork
#include "intellect02.lh"
#include "intellect02.lh" // clickable
namespace {
@ -311,4 +312,4 @@ ROM_END
******************************************************************************/
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
CONS( 1983, intel02, 0, 0, intel02, intel02, intel02_state, empty_init, "BREA Research Institute", "Intellect-02", MACHINE_SUPPORTS_SAVE )
CONS( 1985, intel02, 0, 0, intel02, intel02, intel02_state, empty_init, "BREA Research Institute", "Intellect-02", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )

View File

@ -3,6 +3,14 @@
<!-- define elements -->
<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
<element name="static_black2"><rect><color red="0.15" green="0.15" blue="0.15" /></rect></element>
<element name="button" defstate="0">
<rect state="0"><color red="0.3" green="0.3" blue="0.3" /></rect>
<rect state="1"><color red="0.45" green="0.45" blue="0.45" /></rect>
</element>
<element name="digit" defstate="0">
<led7seg><color red="0.15" green="1.0" blue="0.05" /></led7seg>
</element>
@ -16,11 +24,33 @@
<element name="text_l2"><text string="YOU WIN" align="1"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_l3"><text string="YOU LOSE" align="1"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b1"><text string="RESET"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b2"><text string="SELECT"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b3"><text string=" "><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b4"><text string="A1"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b5"><text string="B2"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b6"><text string="C3"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b7"><text string="D4"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b8"><text string="E5"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b9"><text string="INPUT"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b10"><text string="ERASE"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b11"><text string=" "><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b12"><text string="F6"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b13"><text string="G7"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b14"><text string="H8"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b15"><text string="9"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b16"><text string="0"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="7.5" right="41" top="7" bottom="19" />
<bounds left="7.5" right="43" top="7" bottom="30.2" />
<!-- display -->
<bezel element="static_black2"><bounds x="8.5" y="8" width="33.5" height="11.5" /></bezel>
<bezel element="static_black"><bounds x="8.1" y="7.6" width="33.5" height="11.5" /></bezel>
<bezel element="text_l1"><bounds x="21" y="7.9" width="20" height="1.5" /></bezel>
<bezel element="text_l2"><bounds x="8.5" y="7.9" width="8" height="1.5" /></bezel>
@ -34,5 +64,43 @@
<bezel name="digit2" element="digit"><bounds x="32" y="10" width="4" height="6" /></bezel>
<bezel name="digit3" element="digit"><bounds x="36" y="10" width="4" height="6" /></bezel>
<!-- buttons -->
<bezel element="text_b1"><bounds x="7.5" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b2"><bounds x="11.86" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b3"><bounds x="16.21" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b4"><bounds x="20.57" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b5"><bounds x="24.93" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b6"><bounds x="29.27" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b7"><bounds x="33.64" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b8"><bounds x="38" y="20.7" width="5" height="1.2" /></bezel>
<bezel element="text_b9"><bounds x="7.5" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b10"><bounds x="11.86" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b11"><bounds x="16.21" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b12"><bounds x="20.57" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b13"><bounds x="24.93" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b14"><bounds x="29.27" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b15"><bounds x="33.64" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="text_b16"><bounds x="38" y="25.4" width="5" height="1.2" /></bezel>
<bezel element="button" inputtag="RESET" inputmask="0x01"><bounds x="8.5" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.1" inputmask="0x04"><bounds x="12.86" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.x" inputmask="0x01"><bounds x="17.21" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x2000"><bounds x="21.57" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x1000"><bounds x="25.93" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x0800"><bounds x="30.27" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x0400"><bounds x="34.64" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x0200"><bounds x="39" y="22" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.1" inputmask="0x02"><bounds x="8.5" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.1" inputmask="0x08"><bounds x="12.86" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.x" inputmask="0x01"><bounds x="17.21" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x0100"><bounds x="21.57" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x0080"><bounds x="25.93" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.0" inputmask="0x0040"><bounds x="30.27" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.x" inputmask="0x01"><bounds x="34.64" y="26.7" width="3" height="2.5" /></bezel>
<bezel element="button" inputtag="IN.x" inputmask="0x01"><bounds x="39" y="26.7" width="3" height="2.5" /></bezel>
</view>
</mamelayout>