New working systems

-------------------
Sphinx Royal [hap, Sean Riddle]
This commit is contained in:
hap 2024-09-20 23:55:14 +02:00
parent 1ed97d6a3b
commit 8727bcc611
4 changed files with 839 additions and 36 deletions

290
src/mame/cxg/royal.cpp Normal file
View file

@ -0,0 +1,290 @@
// license:BSD-3-Clause
// copyright-holders:hap
// thanks-to:Sean Riddle
/*******************************************************************************
CXG Sphinx Royal (CXG-240)
NOTE: Turn the power switch off before exiting MAME, otherwise NVRAM won't save
properly. Only turn power off when it's the user's turn to move.
TODO:
- actually add nvram (needs to be added to hmcs400)
Hardware notes:
- HD614042S, 4MHz XTAL
- optional LCD panel(s), see below
- chessboard buttons, 16+4 LEDs, piezo
Royal has 2 LCD panels, Supra has 1 (D12 pin is low), Granada and others have 0.
The LCD panel has 4 7segs and 2 unused segments: an x in the middle, and a white
square under the first digit.
The 1992 versions by National Telecommunications System Ltd (Granada CXG-347,
Sierra, Seville) have a lower-speed 3.58MHz XTAL, but since none of them have
LCD panels, users won't notice the slower chess clocks.
Excluding other brands with the same product name, HD614042SJ02 MCU was used in:
- CXG Sphinx Royal (model 240)
- CXG Sphinx Supra (model 048)
- CXG Sphinx Granada (model 247/347)
- CXG Sphinx Seville (model 807)
- CXG Sphinx Sierra (model 647W)
- CXG Sphinx Alicante (model 328, suspected)
- Excalibur Chess Wizard (model 807E), Excalibur brand Sphinx Seville
- Excalibur Stiletto (model 328E/638E), Excalibur brand Sphinx Alicante (suspected)
*******************************************************************************/
#include "emu.h"
#include "cpu/hmcs400/hmcs400.h"
#include "machine/sensorboard.h"
#include "sound/dac.h"
#include "video/pwm.h"
#include "speaker.h"
// internal artwork
#include "cxg_royal.lh"
namespace {
class royal_state : public driver_device
{
public:
royal_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_board(*this, "board"),
m_led_pwm(*this, "led_pwm"),
m_lcd_pwm(*this, "lcd_pwm"),
m_dac(*this, "dac"),
m_inputs(*this, "IN.%u", 0),
m_out_digit(*this, "digit%u", 0U)
{ }
void royal(machine_config &config);
protected:
virtual void machine_start() override;
private:
// devices/pointers
required_device<hmcs400_cpu_device> m_maincpu;
required_device<sensorboard_device> m_board;
required_device<pwm_display_device> m_led_pwm;
required_device<pwm_display_device> m_lcd_pwm;
required_device<dac_1bit_device> m_dac;
required_ioport_array<2> m_inputs;
output_finder<8> m_out_digit;
u8 m_inp_mux = 0;
u8 m_lcd_com = 0;
u16 m_lcd_segs = 0;
u8 m_lcd_select = 0;
// I/O handlers
void update_lcd();
template<int N> void lcd_segs_w(u8 data);
void lcd_com_w(u8 data);
template<int N> u8 board_r();
template<int N> void input_w(u8 data);
void control_w(u16 data);
u16 input_r();
};
void royal_state::machine_start()
{
m_out_digit.resolve();
// register for savestates
save_item(NAME(m_inp_mux));
save_item(NAME(m_lcd_com));
save_item(NAME(m_lcd_segs));
save_item(NAME(m_lcd_select));
}
/*******************************************************************************
I/O
*******************************************************************************/
// LCD
void royal_state::update_lcd()
{
for (int i = 0; i < 2; i++)
{
// LCD common is analog (voltage level)
const u8 com = population_count_32(m_lcd_com >> (i * 2) & 3);
const u16 data = (com == 0) ? m_lcd_segs : (com == 2) ? ~m_lcd_segs : 0;
// 2 digits per common
for (int j = 0; j < 2; j++)
{
u8 digit = bitswap<8>(data >> (j * 8), 0,1,2,3,4,5,6,7);
m_lcd_pwm->write_row(m_lcd_select * 4 + i * 2 + j, digit);
}
}
}
template<int N>
void royal_state::lcd_segs_w(u8 data)
{
// R0x,R6x-R8x: LCD segment data
m_lcd_segs = (m_lcd_segs & ~(0xf << (N*4))) | (data << (N*4));
update_lcd();
}
void royal_state::lcd_com_w(u8 data)
{
// R50-R53: LCD common
m_lcd_com = data;
update_lcd();
}
// misc
template<int N>
u8 royal_state::board_r()
{
// R1x,R2x: read chessboard
u8 data = 0;
for (int i = 0; i < 8; i++)
if (BIT(m_inp_mux, i))
data |= m_board->read_rank(i);
return data >> (N * 4) & 0xf;
}
template<int N>
void royal_state::input_w(u8 data)
{
// R3x,R4x: input mux, LED data
m_inp_mux = (m_inp_mux & ~(0xf << (N*4))) | (data << (N*4));
m_led_pwm->write_mx(~m_inp_mux);
}
void royal_state::control_w(u16 data)
{
// D4,D5: LED select
// D6-D9: status LEDs (direct)
m_led_pwm->write_my(data >> 4 & 0x3f);
// D13: LCD panel select
m_lcd_select = BIT(data, 13);
update_lcd();
// D14: speaker out
m_dac->write(BIT(data, 14));
}
u16 royal_state::input_r()
{
u16 data = 0;
// D0,D1: read buttons
for (int i = 0; i < 2; i++)
if (m_inp_mux & m_inputs[i]->read())
data |= 1 << i;
// D10,D11: freq sel
// D12: 1/2 LCD panels
return data | 0x140c;
}
/*******************************************************************************
Input Ports
*******************************************************************************/
static INPUT_PORTS_START( royal )
PORT_START("IN.0")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED)
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("Pawn")
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Knight")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Bishop")
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("Rook")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Queen")
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("King")
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_UNUSED)
PORT_START("IN.1")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED)
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Take Back")
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_POWER_OFF)
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_NAME("New Game")
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_M) PORT_NAME("Move")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_L) PORT_NAME("Level")
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("Set-Up")
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_NAME("Sound")
INPUT_PORTS_END
/*******************************************************************************
Machine Configs
*******************************************************************************/
void royal_state::royal(machine_config &config)
{
// basic machine hardware
HD614042(config, m_maincpu, 4_MHz_XTAL);
m_maincpu->write_r<0>().set(FUNC(royal_state::lcd_segs_w<0>));
m_maincpu->read_r<1>().set(FUNC(royal_state::board_r<0>));
m_maincpu->read_r<2>().set(FUNC(royal_state::board_r<1>));
m_maincpu->write_r<3>().set(FUNC(royal_state::input_w<0>));
m_maincpu->write_r<4>().set(FUNC(royal_state::input_w<1>));
m_maincpu->write_r<5>().set(FUNC(royal_state::lcd_com_w));
m_maincpu->write_r<6>().set(FUNC(royal_state::lcd_segs_w<3>));
m_maincpu->write_r<7>().set(FUNC(royal_state::lcd_segs_w<2>));
m_maincpu->write_r<8>().set(FUNC(royal_state::lcd_segs_w<1>));
m_maincpu->write_d().set(FUNC(royal_state::control_w));
m_maincpu->read_d().set(FUNC(royal_state::input_r));
SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS);
m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess));
m_board->set_delay(attotime::from_msec(150));
//m_board->set_nvram_enable(true);
// video hardware
PWM_DISPLAY(config, m_lcd_pwm).set_size(8, 8);
m_lcd_pwm->set_segmask(0xff, 0x7f);
m_lcd_pwm->output_digit().set([this](offs_t offset, u64 data) { m_out_digit[offset] = data; });
PWM_DISPLAY(config, m_led_pwm).set_size(6, 8);
config.set_default_layout(layout_cxg_royal);
// sound hardware
SPEAKER(config, "speaker").front_center();
DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
}
/*******************************************************************************
ROM Definitions
*******************************************************************************/
ROM_START( sroyal )
ROM_REGION( 0x2000, "maincpu", 0 )
ROM_LOAD("1988_105_newcrest_hd614042sj02", 0x0000, 0x2000, CRC(47334ac9) SHA1(b4dc930e34926f1b33f6d247af45627c891202ff) )
ROM_END
} // anonymous namespace
/*******************************************************************************
Drivers
*******************************************************************************/
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
SYST( 1988, sroyal, 0, 0, royal, royal, royal_state, empty_init, "CXG Systems / Newcrest Technology / Intelligent Chess Software", "Sphinx Royal", MACHINE_SUPPORTS_SAVE )

View file

@ -0,0 +1,510 @@
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors:hap
-->
<mamelayout version="2">
<!-- define elements -->
<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
<element name="blue2"><rect><color red="0.4" green="0.5" blue="0.6" /></rect></element>
<element name="blackd"><disk><color red="0" green="0" blue="0" /></disk></element>
<element name="blued"><disk><color red="0.31" green="0.4" blue="0.48" /></disk></element>
<element name="blued2"><disk><color red="0.4" green="0.5" blue="0.6" /></disk></element>
<element name="led" defstate="0">
<disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk>
<disk state="0"><color red="0.1" green="0.01" blue="0.015" /></disk>
</element>
<element name="text_10"><text string="1" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_20"><text string="2" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_30"><text string="3" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_40"><text string="4" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_50"><text string="5" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_60"><text string="6" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_70"><text string="7" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_80"><text string="8" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_11"><text string="1" align="2"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_21"><text string="2" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_31"><text string="3" align="2"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_41"><text string="4" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_51"><text string="5" align="2"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_61"><text string="6" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_71"><text string="7" align="2"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_81"><text string="8" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_a0"><text string="A"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_b0"><text string="B"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_c0"><text string="C"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_d0"><text string="D"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_e0"><text string="E"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_f0"><text string="F"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_g0"><text string="G"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_h0"><text string="H"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_a1"><text string="A"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_b1"><text string="B"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_c1"><text string="C"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_d1"><text string="D"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_e1"><text string="E"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_f1"><text string="F"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_g1"><text string="G"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_h1"><text string="H"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<!-- sb board -->
<element name="cblack"><rect><color red="0.31" green="0.4" blue="0.48" /></rect></element>
<element name="cwhite"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>
<element name="hlbb" defstate="0">
<text string=" "><bounds x="0" y="0" width="1" height="1" /></text>
<disk state="1">
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
<color red="0" green="0" blue="0" />
</disk>
</element>
<element name="piece" defstate="0">
<image file="chess/wp.svg" state="1"/>
<image file="chess/wn.svg" state="2"/>
<image file="chess/wb.svg" state="3"/>
<image file="chess/wr.svg" state="4"/>
<image file="chess/wq.svg" state="5"/>
<image file="chess/wk.svg" state="6"/>
<image file="chess/bp.svg" state="7"/>
<image file="chess/bn.svg" state="8"/>
<image file="chess/bb.svg" state="9"/>
<image file="chess/br.svg" state="10"/>
<image file="chess/bq.svg" state="11"/>
<image file="chess/bk.svg" state="12"/>
<!-- selected pieces -->
<image file="chess/wp.svg" state="13"><color alpha="0.5" /></image>
<image file="chess/wn.svg" state="14"><color alpha="0.5" /></image>
<image file="chess/wb.svg" state="15"><color alpha="0.5" /></image>
<image file="chess/wr.svg" state="16"><color alpha="0.5" /></image>
<image file="chess/wq.svg" state="17"><color alpha="0.5" /></image>
<image file="chess/wk.svg" state="18"><color alpha="0.5" /></image>
<image file="chess/bp.svg" state="19"><color alpha="0.5" /></image>
<image file="chess/bn.svg" state="20"><color alpha="0.5" /></image>
<image file="chess/bb.svg" state="21"><color alpha="0.5" /></image>
<image file="chess/br.svg" state="22"><color alpha="0.5" /></image>
<image file="chess/bq.svg" state="23"><color alpha="0.5" /></image>
<image file="chess/bk.svg" state="24"><color alpha="0.5" /></image>
</element>
<group name="sb_board">
<bounds x="0" y="0" width="80" height="80" />
<!-- squares (avoid seams) -->
<element ref="cwhite"><bounds x="0" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="0" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="0" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="0" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="0" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="10" y="10" width="11" height="11" /></element>
<element ref="cblack"><bounds x="20" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="30" y="10" width="11" height="11" /></element>
<element ref="cblack"><bounds x="40" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="50" y="10" width="11" height="11" /></element>
<element ref="cblack"><bounds x="60" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="70" y="10" width="10" height="11" /></element>
<element ref="cwhite"><bounds x="0" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="20" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="20" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="20" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="20" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="10" y="30" width="11" height="11" /></element>
<element ref="cblack"><bounds x="20" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="30" y="30" width="11" height="11" /></element>
<element ref="cblack"><bounds x="40" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="50" y="30" width="11" height="11" /></element>
<element ref="cblack"><bounds x="60" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="70" y="30" width="10" height="11" /></element>
<element ref="cwhite"><bounds x="0" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="40" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="40" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="40" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="40" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="10" y="50" width="11" height="11" /></element>
<element ref="cblack"><bounds x="20" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="30" y="50" width="11" height="11" /></element>
<element ref="cblack"><bounds x="40" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="50" y="50" width="11" height="11" /></element>
<element ref="cblack"><bounds x="60" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="70" y="50" width="10" height="11" /></element>
<element ref="cwhite"><bounds x="0" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="60" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="60" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="60" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="60" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="10" y="70" width="11" height="10" /></element>
<element ref="cblack"><bounds x="20" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="30" y="70" width="11" height="10" /></element>
<element ref="cblack"><bounds x="40" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="50" y="70" width="11" height="10" /></element>
<element ref="cblack"><bounds x="60" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="70" y="70" width="10" height="10" /></element>
<!-- coords -->
<element ref="text_80"><bounds x="0.25" y="4.3" width="2" height="1.4" /></element>
<element ref="text_70"><bounds x="0.25" y="14.3" width="2" height="1.4" /></element>
<element ref="text_60"><bounds x="0.25" y="24.3" width="2" height="1.4" /></element>
<element ref="text_50"><bounds x="0.25" y="34.3" width="2" height="1.4" /></element>
<element ref="text_40"><bounds x="0.25" y="44.3" width="2" height="1.4" /></element>
<element ref="text_30"><bounds x="0.25" y="54.3" width="2" height="1.4" /></element>
<element ref="text_20"><bounds x="0.25" y="64.3" width="2" height="1.4" /></element>
<element ref="text_10"><bounds x="0.25" y="74.3" width="2" height="1.4" /></element>
<element ref="text_81"><bounds x="77.75" y="4.3" width="2" height="1.4" /></element>
<element ref="text_71"><bounds x="77.75" y="14.3" width="2" height="1.4" /></element>
<element ref="text_61"><bounds x="77.75" y="24.3" width="2" height="1.4" /></element>
<element ref="text_51"><bounds x="77.75" y="34.3" width="2" height="1.4" /></element>
<element ref="text_41"><bounds x="77.75" y="44.3" width="2" height="1.4" /></element>
<element ref="text_31"><bounds x="77.75" y="54.3" width="2" height="1.4" /></element>
<element ref="text_21"><bounds x="77.75" y="64.3" width="2" height="1.4" /></element>
<element ref="text_11"><bounds x="77.75" y="74.3" width="2" height="1.4" /></element>
<element ref="text_a0"><bounds x="4" y="0" width="2" height="1.4" /></element>
<element ref="text_b0"><bounds x="14" y="0" width="2" height="1.4" /></element>
<element ref="text_c0"><bounds x="24" y="0" width="2" height="1.4" /></element>
<element ref="text_d0"><bounds x="34" y="0" width="2" height="1.4" /></element>
<element ref="text_e0"><bounds x="44" y="0" width="2" height="1.4" /></element>
<element ref="text_f0"><bounds x="54" y="0" width="2" height="1.4" /></element>
<element ref="text_g0"><bounds x="64" y="0" width="2" height="1.4" /></element>
<element ref="text_h0"><bounds x="74" y="0" width="2" height="1.4" /></element>
<element ref="text_a1"><bounds x="4" y="78.55" width="2" height="1.4" /></element>
<element ref="text_b1"><bounds x="14" y="78.55" width="2" height="1.4" /></element>
<element ref="text_c1"><bounds x="24" y="78.55" width="2" height="1.4" /></element>
<element ref="text_d1"><bounds x="34" y="78.55" width="2" height="1.4" /></element>
<element ref="text_e1"><bounds x="44" y="78.55" width="2" height="1.4" /></element>
<element ref="text_f1"><bounds x="54" y="78.55" width="2" height="1.4" /></element>
<element ref="text_g1"><bounds x="64" y="78.55" width="2" height="1.4" /></element>
<element ref="text_h1"><bounds x="74" y="78.55" width="2" height="1.4" /></element>
<!-- sensors, pieces -->
<repeat count="8">
<param name="y" start="0" increment="10" />
<param name="i" start="8" increment="-1" />
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x01"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element name="piece_a~i~" ref="piece"><bounds x="0" y="~y~" width="10" height="10" /></element>
<element name="piece_b~i~" ref="piece"><bounds x="10" y="~y~" width="10" height="10" /></element>
<element name="piece_c~i~" ref="piece"><bounds x="20" y="~y~" width="10" height="10" /></element>
<element name="piece_d~i~" ref="piece"><bounds x="30" y="~y~" width="10" height="10" /></element>
<element name="piece_e~i~" ref="piece"><bounds x="40" y="~y~" width="10" height="10" /></element>
<element name="piece_f~i~" ref="piece"><bounds x="50" y="~y~" width="10" height="10" /></element>
<element name="piece_g~i~" ref="piece"><bounds x="60" y="~y~" width="10" height="10" /></element>
<element name="piece_h~i~" ref="piece"><bounds x="70" y="~y~" width="10" height="10" /></element>
</repeat>
</group>
<!-- sb ui -->
<element name="hlub" defstate="0">
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="text_uit1"><text string="S.BOARD"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uit2"><text string="INTERFACE"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uib1"><text string="BOARD:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uib2"><text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uib3"><text string="CLEAR"><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uis1"><text string="SPAWN:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uih1"><text string="HAND:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uih2"><text string="REMOVE"><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uiu1"><text string="UNDO:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uiu2a"><text string=" &lt;&lt;"><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uiu2b"><text string=" &lt; "><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uiu2c"><text string=" &gt;"><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uiu2d"><text string=" &gt;&gt;"><color red="0.01" green="0.01" blue="0.01" /></text></element>
<element name="text_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uiu3a" defstate="0">
<simplecounter maxstate="999" digits="1" align="2">
<color red="0.81" green="0.8" blue="0.79" />
</simplecounter>
</element>
<element name="text_uiu3c" defstate="0">
<simplecounter maxstate="999" digits="1" align="1">
<color red="0.81" green="0.8" blue="0.79" />
</simplecounter>
</element>
<group name="sb_ui">
<bounds x="0" y="0" width="10" height="80" />
<element ref="cblack"><bounds x="0" y="0" width="10" height="1" /></element>
<element ref="cblack"><bounds x="0" y="7" width="10" height="1" /></element>
<element ref="cblack"><bounds x="0" y="79" width="10" height="1" /></element>
<element ref="text_uit1"><bounds x="0" y="2" width="10" height="2" /></element>
<element ref="text_uit2"><bounds x="0" y="4" width="10" height="2" /></element>
<!-- board -->
<element ref="text_uib1"><bounds x="0" y="9" width="10" height="2" /></element>
<element ref="cwhite"><bounds x="1" y="11.5" width="8" height="2.5" /></element>
<element ref="cwhite"><bounds x="1" y="15" width="8" height="2.5" /></element>
<element ref="text_uib2"><bounds x="1.5" y="11.75" width="7" height="2" /></element>
<element ref="text_uib3"><bounds x="1.5" y="15.25" width="7" height="2" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x200"><bounds x="1" y="11.5" width="8" height="2.5" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x100"><bounds x="1" y="15" width="8" height="2.5" /><color alpha="0.25" /></element>
<!-- spawn -->
<element ref="text_uis1"><bounds x="0" y="20.5" width="10" height="2" /></element>
<element ref="cwhite"><bounds x="1" y="23" width="8" height="12" /></element>
<element ref="cwhite"><bounds x="1" y="36" width="8" height="12" /></element>
<element name="piece_ui1" ref="piece"><bounds x="1" y="23" width="4" height="4" /></element>
<element name="piece_ui2" ref="piece"><bounds x="1" y="27" width="4" height="4" /></element>
<element name="piece_ui3" ref="piece"><bounds x="1" y="31" width="4" height="4" /></element>
<element name="piece_ui4" ref="piece"><bounds x="5" y="23" width="4" height="4" /></element>
<element name="piece_ui5" ref="piece"><bounds x="5" y="27" width="4" height="4" /></element>
<element name="piece_ui6" ref="piece"><bounds x="5" y="31" width="4" height="4" /></element>
<element name="piece_ui7" ref="piece"><bounds x="1" y="36" width="4" height="4" /></element>
<element name="piece_ui8" ref="piece"><bounds x="1" y="40" width="4" height="4" /></element>
<element name="piece_ui9" ref="piece"><bounds x="1" y="44" width="4" height="4" /></element>
<element name="piece_ui10" ref="piece"><bounds x="5" y="36" width="4" height="4" /></element>
<element name="piece_ui11" ref="piece"><bounds x="5" y="40" width="4" height="4" /></element>
<element name="piece_ui12" ref="piece"><bounds x="5" y="44" width="4" height="4" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0001"><bounds x="1" y="23" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0002"><bounds x="1" y="27" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0004"><bounds x="1" y="31" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0008"><bounds x="5" y="23" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0010"><bounds x="5" y="27" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0020"><bounds x="5" y="31" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0040"><bounds x="1" y="36" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0080"><bounds x="1" y="40" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0100"><bounds x="1" y="44" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0200"><bounds x="5" y="36" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0400"><bounds x="5" y="40" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0800"><bounds x="5" y="44" width="4" height="4" /><color alpha="0.25" /></element>
<!-- hand -->
<element ref="text_uih1"><bounds x="0" y="51" width="10" height="2" /></element>
<element ref="cblack"><bounds x="1" y="53.5" width="8" height="6" /></element>
<element name="piece_ui0" ref="piece"><bounds x="2" y="53.5" width="6" height="6" /></element>
<element ref="cwhite"><bounds x="1" y="60.5" width="8" height="2.5" /></element>
<element ref="text_uih2"><bounds x="1.5" y="60.75" width="7" height="2" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x08"><bounds x="1" y="60.5" width="8" height="2.5" /><color alpha="0.25" /></element>
<!-- undo -->
<element ref="text_uiu1"><bounds x="0" y="66" width="10" height="2" /></element>
<element ref="cwhite"><bounds x="1" y="68.5" width="1.7" height="6" /></element>
<element ref="cwhite"><bounds x="3.1" y="68.5" width="1.7" height="6" /></element>
<element ref="cwhite"><bounds x="5.2" y="68.5" width="1.7" height="6" /></element>
<element ref="cwhite"><bounds x="7.3" y="68.5" width="1.7" height="6" /></element>
<element ref="text_uiu2a"><bounds x="1" y="69.5" width="1.7" height="4" /></element>
<element ref="text_uiu2b"><bounds x="3.1" y="69.5" width="1.7" height="4" /></element>
<element ref="text_uiu2c"><bounds x="5.2" y="69.5" width="1.7" height="4" /></element>
<element ref="text_uiu2d"><bounds x="7.3" y="69.5" width="1.7" height="4" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x10"><bounds x="1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x20"><bounds x="3.1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x40"><bounds x="5.2" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x80"><bounds x="7.3" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element name="count_ui0" ref="text_uiu3a"><bounds x="0" y="75" width="4" height="2" /></element>
<element name="count_ui1" ref="text_uiu3c"><bounds x="6" y="75" width="4" height="2" /></element>
<element ref="text_uiu3b"><bounds x="4" y="75" width="2" height="2" /></element>
</group>
<!-- lcd panel -->
<element name="white2"><rect><color red="0.85" green="0.85" blue="0.85" /></rect></element>
<element name="lcd_bg"><rect><color red="0.54" green="0.57" blue="0.58" /></rect></element>
<element name="digit" defstate="0">
<led7seg><color red="0.2" green="0.16" blue="0.16" /></led7seg>
</element>
<group name="lcd1">
<element ref="lcd_bg"><bounds x="-0.3" yc="0" width="5.0" height="1.6" /></element>
<element name="digit3" ref="digit"><bounds x="0" yc="0" width="1" height="1" /></element>
<element name="digit2" ref="digit"><bounds x="1" yc="0" width="1" height="1" /></element>
<element name="digit1" ref="digit"><bounds x="2.4" yc="0" width="1" height="1" /></element>
<element name="digit0" ref="digit"><bounds x="3.4" yc="0" width="1" height="1" /></element>
</group>
<group name="lcd2">
<element ref="lcd_bg"><bounds x="-0.3" yc="0" width="5.0" height="1.6" /></element>
<element name="digit7" ref="digit"><bounds x="0" yc="0" width="1" height="1" /></element>
<element name="digit6" ref="digit"><bounds x="1" yc="0" width="1" height="1" /></element>
<element name="digit5" ref="digit"><bounds x="2.4" yc="0" width="1" height="1" /></element>
<element name="digit4" ref="digit"><bounds x="3.4" yc="0" width="1" height="1" /></element>
</group>
<group name="lcds">
<bounds x="0" y="0" width="30" height="40" />
<element ref="white2"><bounds xc="4" yc="15" width="1.4" height="1.4" /></element>
<element ref="blackb"><bounds xc="10.8" yc="15" width="9.4" height="5.4" /></element>
<group ref="lcd1"><bounds xc="10.8" yc="15" width="8.8" height="4.8" /></group>
<element ref="white2"><bounds xc="4" yc="25" width="1.4" height="1.4" /></element>
<element ref="blue2"><bounds xc="4" yc="25" width="1.0" height="1.0" /></element>
<element ref="blackb"><bounds xc="10.8" yc="25" width="9.4" height="5.4" /></element>
<group ref="lcd2"><bounds xc="10.8" yc="25" width="8.8" height="4.8" /></group>
</group>
<!-- button panel -->
<element name="whitem"><rect><color red="0.59" green="0.50" blue="0.42" /></rect></element>
<element name="but" defstate="0">
<rect state="0"><bounds x="0" y="0" width="1" height="1" /><color red="0.72" green="0.72" blue="0.73" /></rect>
<rect state="1"><bounds x="0" y="0" width="1" height="1" /><color red="0.60" green="0.60" blue="0.61" /></rect>
</element>
<element name="butd" defstate="0">
<disk state="0"><bounds x="0" y="0" width="1" height="1" /><color red="0.72" green="0.72" blue="0.73" /></disk>
<disk state="1"><bounds x="0" y="0" width="1" height="1" /><color red="0.60" green="0.60" blue="0.61" /></disk>
</element>
<element name="text_l1"><text string="LEVEL" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_l2"><text string="SET-UP" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_l3"><text string="THINK" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_l4"><text string="THREAT" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r1"><text string="SOUND" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r2"><text string="SET-UP" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r3"><text string="LEVEL" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r4"><text string="MOVE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r5"><text string="TAKE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r5a"><text string="BACK" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r6"><text string="NEW" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_r6a"><text string="GAME" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_p1"><image file="chess/wk.svg"/></element>
<element name="text_p2"><image file="chess/wq.svg"/></element>
<element name="text_p3"><image file="chess/wr.svg"/></element>
<element name="text_p4"><image file="chess/wb.svg"/></element>
<element name="text_p5"><image file="chess/wn.svg"/></element>
<element name="text_p6"><image file="chess/wp.svg"/></element>
<group name="buttons">
<bounds x="0" y="0" width="30" height="80" />
<repeat count="6">
<param name="y" start="24.5" increment="4" />
<param name="y2" start="24.3" increment="4" />
<param name="i" start="1" increment="1" />
<param name="mask" start="0x40" rshift="1" />
<element ref="blackb"><bounds x="14.1" yc="~y2~" width="3" height="3" /></element>
<element ref="text_p~i~"><bounds x="14.1" yc="~y2~" width="3" height="3" /></element>
<element ref="whitem" blend="multiply"><bounds x="14.1" yc="~y2~" width="3" height="3" /></element>
<element ref="cblack" blend="add"><bounds x="14.1" yc="~y2~" width="3" height="3" /></element>
<element ref="but" inputtag="IN.0" inputmask="~mask~"><bounds x="6" yc="~y~" width="6" height="1.2" /></element>
</repeat>
<element ref="text_r1"><bounds x="14.8" yc="50" width="10" height="1.4" /></element>
<element ref="text_r2"><bounds x="14.8" yc="55" width="10" height="1.4" /></element>
<element ref="text_r3"><bounds x="14.8" yc="60" width="10" height="1.4" /></element>
<element ref="text_r4"><bounds x="14.8" yc="65" width="10" height="1.4" /></element>
<element ref="text_r5"><bounds x="14.8" yc="69.3" width="10" height="1.4" /></element>
<element ref="text_r5a"><bounds x="14.8" yc="70.7" width="10" height="1.4" /></element>
<element ref="text_r6"><bounds x="14.8" yc="74.3" width="10" height="1.4" /></element>
<element ref="text_r6a"><bounds x="14.8" yc="75.7" width="10" height="1.4" /></element>
<element ref="butd" inputtag="IN.1" inputmask="0x80"><bounds x="10" yc="50" width="4" height="4" /></element>
<element ref="butd" inputtag="IN.1" inputmask="0x40"><bounds x="10" yc="55" width="4" height="4" /></element>
<element ref="butd" inputtag="IN.1" inputmask="0x20"><bounds x="10" yc="60" width="4" height="4" /></element>
<element ref="butd" inputtag="IN.1" inputmask="0x10"><bounds x="10" yc="65" width="4" height="4" /></element>
<element ref="butd" inputtag="IN.1" inputmask="0x02"><bounds x="10" yc="70" width="4" height="4" /></element>
<element ref="butd" inputtag="IN.1" inputmask="0x08"><bounds x="10" yc="75" width="4" height="4" /></element>
<element ref="text_l1"><bounds x="5.5" yc="52.5" width="10" height="1.1" /></element>
<element ref="text_l2"><bounds x="5.5" yc="57.5" width="10" height="1.1" /></element>
<element ref="text_l3"><bounds x="5.5" yc="62.5" width="10" height="1.1" /></element>
<element ref="text_l4"><bounds x="5.5" yc="67.5" width="10" height="1.1" /></element>
<element name="2.a" ref="led"><bounds x="3.5" yc="52.5" width="1.5" height="1.5" /></element>
<element name="3.a" ref="led"><bounds x="3.5" yc="57.5" width="1.5" height="1.5" /></element>
<element name="5.a" ref="led"><bounds x="3.5" yc="62.5" width="1.5" height="1.5" /></element>
<element name="4.a" ref="led"><bounds x="3.5" yc="67.5" width="1.5" height="1.5" /></element>
</group>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="-7" right="115.3" top="6" bottom="94" />
<element ref="cblack"><bounds x="6" y="6" width="88" height="88" /></element>
<element ref="cwhite"><bounds x="9.7" y="9.7" width="80.6" height="80.6" /></element>
<group ref="sb_board"><bounds x="10" y="10" width="80" height="80" /></group>
<group ref="sb_ui"><bounds x="-5.5" y="10" width="10" height="80" /></group>
<element ref="blackd"><bounds xc="94.15" yc="20" width="5.2" height="5.2" /></element>
<element ref="blued2"><bounds xc="94.15" yc="20" width="4.6" height="4.6" /></element>
<element ref="blue2"><bounds x="94.3" y="6" width="21" height="28.85" /></element>
<element ref="blackd"><bounds xc="94.15" yc="80" width="5.2" height="5.2" /></element>
<element ref="blued"><bounds xc="94.15" yc="80" width="4.6" height="4.6" /></element>
<element ref="cblack"><bounds x="94.3" y="35.15" width="21" height="58.85" /></element>
<group ref="lcds"><bounds x="94.2" y="0" width="30" height="40" /></group>
<group ref="buttons"><bounds x="94.2" y="14.5" width="30" height="80" /></group>
<!-- chessboard leds -->
<repeat count="8">
<param name="y" start="15" increment="10" />
<param name="i" start="7" increment="-1" />
<element name="0.~i~" ref="led"><bounds x="7.1" yc="~y~" width="1.5" height="1.5" /></element>
</repeat>
<repeat count="8">
<param name="x" start="15" increment="10" />
<param name="i" start="0" increment="1" />
<element name="1.~i~" ref="led"><bounds xc="~x~" y="91.4" width="1.5" height="1.5" /></element>
</repeat>
</view>
</mamelayout>

View file

@ -12,23 +12,23 @@ authors:hap
<disk state="0"><color red="0.1" green="0.01" blue="0.015" /></disk>
</element>
<element name="text_1"><text string="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_2"><text string="2"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_3"><text string="3"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_4"><text string="4"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_5"><text string="5"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_6"><text string="6"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_7"><text string="7"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_8"><text string="8"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_1"><text string="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_2"><text string="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_3"><text string="3"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_4"><text string="4"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_5"><text string="5"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_6"><text string="6"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_7"><text string="7"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_8"><text string="8"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_a"><text string="A"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_b"><text string="B"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_c"><text string="C"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_d"><text string="D"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_e"><text string="E"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_f"><text string="F"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_g"><text string="G"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_h"><text string="H"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_a"><text string="A"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_b"><text string="B"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_c"><text string="C"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_d"><text string="D"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_e"><text string="E"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_f"><text string="F"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_g"><text string="G"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_h"><text string="H"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<!-- sb board -->
@ -293,7 +293,7 @@ authors:hap
<!-- buttons -->
<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
<element name="whitem"><rect><color red="0.54" green="0.45" blue="0.38" /></rect></element>
<element name="whitem"><rect><color red="0.59" green="0.50" blue="0.42" /></rect></element>
<element name="buttong" defstate="0">
<rect state="0"><bounds x="0" y="0" width="1" height="1" /><color red="0.6" green="0.6" blue="0.61" /></rect>
@ -308,26 +308,26 @@ authors:hap
<rect state="1"><bounds x="0" y="1.8" width="1" height="1" /><color red="0.96" green="0.42" blue="0.24" /></rect>
</element>
<element name="text_rl1"><text string="WHITE" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl2"><text string="BLACK" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl3"><text string="SET UP" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl4a"><text string="MULTI" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl4b"><text string="MOVE" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl5"><text string="CHECK" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl6"><text string="DRAW" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl7"><text string="MATE" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rl1"><text string="WHITE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl2"><text string="BLACK" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl3"><text string="SET UP" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl4a"><text string="MULTI" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl4b"><text string="MOVE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl5"><text string="CHECK" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl6"><text string="DRAW" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rl7"><text string="MATE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb1"><text string="NEW GAME" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb2"><text string="GO" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb3"><text string="STOP" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb4"><text string="COLOR" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb5"><text string="SET UP" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb6"><text string="MULTI MOVE" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb7"><text string="SOUND" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb8"><text string="TAKE BACK" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb9"><text string="PLAY" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb10"><text string="DISPLAY MOVE" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb11"><text string="LEVEL" align="1"><color red="0.85" green="0.85" blue="0.86" /></text></element>
<element name="text_rb1"><text string="NEW GAME" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb2"><text string="GO" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb3"><text string="STOP" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb4"><text string="COLOR" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb5"><text string="SET UP" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb6"><text string="MULTI MOVE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb7"><text string="SOUND" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb8"><text string="TAKE BACK" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb9"><text string="PLAY" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb10"><text string="DISPLAY MOVE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_rb11"><text string="LEVEL" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_p1"><image file="chess/wk.svg"/></element>
<element name="text_p2"><image file="chess/wq.svg"/></element>

View file

@ -16656,6 +16656,9 @@ sgalaxyb
@source:cxg/professor.cpp
scprof
@source:cxg/royal.cpp
sroyal
@source:cxg/senterprise.cpp
senterp
senterpc