mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
New working clones
------------------ Super Enterprise (model 210.C) [hap, Berger]
This commit is contained in:
parent
f28fe7db31
commit
1c67206a4e
@ -134,7 +134,7 @@ void lc7580_device::clk_w(int state)
|
||||
state = (state) ? 1 : 0;
|
||||
|
||||
// clock shift register
|
||||
if (!state && m_clk)
|
||||
if (state && !m_clk)
|
||||
m_shift = m_shift >> 1 | u64(m_data) << 55;
|
||||
|
||||
m_clk = state;
|
||||
|
@ -79,7 +79,7 @@ private:
|
||||
void galaxy_map(address_map &map);
|
||||
|
||||
// I/O handlers
|
||||
void lcd_s_w(offs_t offset, u64 data);
|
||||
void lcd_output_w(offs_t offset, u64 data);
|
||||
void control_w(u8 data);
|
||||
void leds_w(offs_t offset, u8 data);
|
||||
u8 input_r(offs_t offset);
|
||||
@ -99,7 +99,7 @@ void dominator_state::machine_start()
|
||||
|
||||
// LC7582 LCD
|
||||
|
||||
void dominator_state::lcd_s_w(offs_t offset, u64 data)
|
||||
void dominator_state::lcd_output_w(offs_t offset, u64 data)
|
||||
{
|
||||
// output individual segments
|
||||
for (int i = 0; i < 52; i++)
|
||||
@ -131,9 +131,9 @@ void dominator_state::lcd_s_w(offs_t offset, u64 data)
|
||||
|
||||
void dominator_state::control_w(u8 data)
|
||||
{
|
||||
// d2: LC7582 CE
|
||||
// d1: LC7582 CLK
|
||||
// d0: LC7582 DATA
|
||||
// d1: LC7582 CLK
|
||||
// d2: LC7582 CE
|
||||
m_lcd->data_w(BIT(data, 0));
|
||||
m_lcd->clk_w(BIT(data, 1));
|
||||
m_lcd->ce_w(BIT(data, 2));
|
||||
@ -267,7 +267,7 @@ void dominator_state::dominator(machine_config &config)
|
||||
|
||||
// video hardware
|
||||
LC7582(config, m_lcd, 0);
|
||||
m_lcd->write_segs().set(FUNC(dominator_state::lcd_s_w));
|
||||
m_lcd->write_segs().set(FUNC(dominator_state::lcd_output_w));
|
||||
|
||||
PWM_DISPLAY(config, m_display).set_size(8+1, 8);
|
||||
config.set_default_layout(layout_cxg_dominator);
|
||||
|
@ -70,7 +70,7 @@ private:
|
||||
u16 m_inp_mux = 0;
|
||||
|
||||
// I/O handlers
|
||||
void lcd_s_w(offs_t offset, u64 data);
|
||||
void lcd_output_w(offs_t offset, u64 data);
|
||||
template <int N> void leds_w(u8 data);
|
||||
void control_w(u8 data);
|
||||
u8 input_r();
|
||||
@ -98,7 +98,7 @@ INPUT_CHANGED_MEMBER(professor_state::on_button)
|
||||
m_maincpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
|
||||
}
|
||||
|
||||
void professor_state::lcd_s_w(offs_t offset, u64 data)
|
||||
void professor_state::lcd_output_w(offs_t offset, u64 data)
|
||||
{
|
||||
for (int i = 0; i < 52; i++)
|
||||
m_out_lcd[offset][i] = BIT(data, i);
|
||||
@ -119,9 +119,9 @@ void professor_state::control_w(u8 data)
|
||||
// P23: speaker out
|
||||
m_dac->write(BIT(data, 3));
|
||||
|
||||
// P26: LC7580 CE
|
||||
// P25: LC7580 CLK
|
||||
// P24: LC7580 DATA
|
||||
// P25: LC7580 CLK
|
||||
// P26: LC7580 CE
|
||||
m_lcd->data_w(BIT(data, 4));
|
||||
m_lcd->clk_w(BIT(data, 5));
|
||||
m_lcd->ce_w(BIT(data, 6));
|
||||
@ -198,8 +198,8 @@ void professor_state::professor(machine_config &config)
|
||||
HD6301Y0(config, m_maincpu, 8_MHz_XTAL);
|
||||
m_maincpu->nvram_enable_backup(true);
|
||||
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6301y_cpu_device::nvram_set_battery));
|
||||
m_maincpu->standby_cb().append(m_lcd, FUNC(lc7580_device::inh_w));
|
||||
m_maincpu->standby_cb().append([this](int state) { if (state) m_display->clear(); });
|
||||
m_maincpu->standby_cb().append(m_lcd, FUNC(lc7580_device::inh_w));
|
||||
m_maincpu->out_p1_cb().set(FUNC(professor_state::leds_w<0>));
|
||||
m_maincpu->out_p4_cb().set(FUNC(professor_state::leds_w<1>));
|
||||
m_maincpu->out_p2_cb().set(FUNC(professor_state::control_w));
|
||||
@ -213,7 +213,7 @@ void professor_state::professor(machine_config &config)
|
||||
|
||||
// video hardware
|
||||
LC7580(config, m_lcd, 0);
|
||||
m_lcd->write_segs().set(FUNC(professor_state::lcd_s_w));
|
||||
m_lcd->write_segs().set(FUNC(professor_state::lcd_output_w));
|
||||
m_lcd->nvram_enable_backup(true);
|
||||
|
||||
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG));
|
||||
|
@ -1,6 +1,6 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:hap
|
||||
// thanks-to:Sean Riddle
|
||||
// thanks-to:Sean Riddle, Berger
|
||||
/*******************************************************************************
|
||||
|
||||
CXG Super Enterprise
|
||||
@ -13,14 +13,20 @@ If this is not done, NVRAM won't save properly.
|
||||
|
||||
TODO:
|
||||
- if/when MAME supports an exit callback, hook up power-off switch to that
|
||||
- dump/add model 210.C (it has two small LCDs like Sphinx Galaxy)
|
||||
|
||||
Hardware notes:
|
||||
- PCB label (Super Crown): CXG 218-600-001
|
||||
|
||||
Super Crown:
|
||||
- PCB label: CXG 218-600-001
|
||||
- Hitachi HD6301Y0P (mode 2), 8MHz XTAL
|
||||
- 2KB battery-backed RAM (HM6116LP-3)
|
||||
- chessboard buttons, 24 LEDs, piezo
|
||||
|
||||
Super Enterprise (model 210.C):
|
||||
- PCB label: 210C 600-002
|
||||
- Sanyo LC7580, same LCDs as Sphinx Galaxy
|
||||
- rest is same as above
|
||||
|
||||
210 MCU is used in:
|
||||
- CXG Super Enterprise (model 210, black/brown/blue)
|
||||
- CXG Advanced Star Chess (model 211)
|
||||
@ -39,16 +45,20 @@ Hardware notes:
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/sensorboard.h"
|
||||
#include "sound/dac.h"
|
||||
#include "video/lc7580.h"
|
||||
#include "video/pwm.h"
|
||||
|
||||
#include "speaker.h"
|
||||
|
||||
// internal artwork
|
||||
#include "cxg_senterprise.lh"
|
||||
#include "cxg_senterprisec.lh"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// model 210 / shared
|
||||
|
||||
class senterp_state : public driver_device
|
||||
{
|
||||
public:
|
||||
@ -67,15 +77,16 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
||||
private:
|
||||
// devices/pointers
|
||||
required_device<hd6301y0_cpu_device> m_maincpu;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_device<pwm_display_device> m_display;
|
||||
required_device<dac_bit_interface> m_dac;
|
||||
required_ioport_array<2> m_inputs;
|
||||
required_device<dac_1bit_device> m_dac;
|
||||
required_ioport_array<3> m_inputs;
|
||||
|
||||
emu_timer *m_standbytimer;
|
||||
u8 m_inp_mux = 0;
|
||||
|
||||
void main_map(address_map &map);
|
||||
@ -83,27 +94,89 @@ private:
|
||||
// I/O handlers
|
||||
u8 input1_r();
|
||||
u8 input2_r();
|
||||
void control_w(u8 data);
|
||||
void leds_w(u8 data);
|
||||
void mux_w(u8 data);
|
||||
|
||||
TIMER_CALLBACK_MEMBER(set_standby);
|
||||
};
|
||||
|
||||
void senterp_state::machine_start()
|
||||
{
|
||||
m_standbytimer = timer_alloc(FUNC(senterp_state::set_standby), this);
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_inp_mux));
|
||||
}
|
||||
|
||||
// model 210.C
|
||||
|
||||
class senterpc_state : public senterp_state
|
||||
{
|
||||
public:
|
||||
senterpc_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
senterp_state(mconfig, type, tag),
|
||||
m_lcd(*this, "lcd"),
|
||||
m_out_digit(*this, "digit%u", 0U),
|
||||
m_out_lcd(*this, "s%u.%u", 0U, 0U)
|
||||
{ }
|
||||
|
||||
void senterpc(machine_config &config);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
|
||||
private:
|
||||
required_device<lc7580_device> m_lcd;
|
||||
output_finder<8> m_out_digit;
|
||||
output_finder<2, 52> m_out_lcd;
|
||||
|
||||
void lcd_output_w(offs_t offset, u64 data);
|
||||
void lcd_w(u8 data);
|
||||
};
|
||||
|
||||
void senterpc_state::machine_start()
|
||||
{
|
||||
senterp_state::machine_start();
|
||||
|
||||
// resolve handlers
|
||||
m_out_digit.resolve();
|
||||
m_out_lcd.resolve();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
Power
|
||||
*******************************************************************************/
|
||||
|
||||
void senterp_state::machine_reset()
|
||||
{
|
||||
m_maincpu->set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
|
||||
m_maincpu->set_input_line(M6801_STBY_LINE, CLEAR_LINE);
|
||||
}
|
||||
|
||||
TIMER_CALLBACK_MEMBER(senterp_state::set_standby)
|
||||
{
|
||||
m_maincpu->set_input_line(M6801_STBY_LINE, ASSERT_LINE);
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER(senterp_state::power_off)
|
||||
{
|
||||
if (newval && !m_maincpu->standby())
|
||||
{
|
||||
// NMI when power switch is set to SAVE, followed by STBY (internal or STBY pin)
|
||||
m_maincpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
|
||||
m_standbytimer->adjust(attotime::from_msec(10));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
I/O
|
||||
*******************************************************************************/
|
||||
|
||||
INPUT_CHANGED_MEMBER(senterp_state::power_off)
|
||||
{
|
||||
// NMI when power switch is set to SAVE, which will trigger standby mode
|
||||
if (newval && !m_maincpu->standby())
|
||||
m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
||||
}
|
||||
// common
|
||||
|
||||
u8 senterp_state::input1_r()
|
||||
{
|
||||
@ -114,8 +187,9 @@ u8 senterp_state::input1_r()
|
||||
if (m_inp_mux & m_inputs[i]->read())
|
||||
data |= 1 << i;
|
||||
|
||||
// P26,P27: freq sel
|
||||
return ~data ^ 0x80;
|
||||
// P26,P27: freq sel (senterp)
|
||||
data |= m_inputs[2]->read();
|
||||
return ~data;
|
||||
}
|
||||
|
||||
u8 senterp_state::input2_r()
|
||||
@ -130,11 +204,8 @@ u8 senterp_state::input2_r()
|
||||
return ~data;
|
||||
}
|
||||
|
||||
void senterp_state::control_w(u8 data)
|
||||
void senterp_state::leds_w(u8 data)
|
||||
{
|
||||
// P22: speaker out
|
||||
m_dac->write(BIT(data, 2));
|
||||
|
||||
// P23-P25: led select
|
||||
m_display->write_my(~data >> 3 & 7);
|
||||
}
|
||||
@ -147,6 +218,49 @@ void senterp_state::mux_w(u8 data)
|
||||
}
|
||||
|
||||
|
||||
// LCD (senterpc)
|
||||
|
||||
void senterpc_state::lcd_output_w(offs_t offset, u64 data)
|
||||
{
|
||||
// output individual segments
|
||||
for (int i = 0; i < 52; i++)
|
||||
m_out_lcd[offset][i] = BIT(data, i);
|
||||
|
||||
// unscramble digit 7segs
|
||||
static const u8 seg2digit[4*7] =
|
||||
{
|
||||
0x03, 0x04, 0x00, 0x40, 0x41, 0x02, 0x42,
|
||||
0x05, 0x06, 0x07, 0x48, 0x44, 0x45, 0x46,
|
||||
0x0c, 0x0d, 0x0b, 0x0a, 0x4a, 0x4c, 0x4b,
|
||||
0x0e, 0x0f, 0x10, 0x50, 0x4d, 0x4e, 0x4f
|
||||
};
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
u8 digit = 0;
|
||||
for (int seg = 0; seg < 7; seg++)
|
||||
{
|
||||
u8 bit = seg2digit[7 * (i & 3) + seg] + 26 * (i >> 2);
|
||||
digit |= m_out_lcd[BIT(bit, 6)][bit & 0x3f] << seg;
|
||||
}
|
||||
m_out_digit[i] = digit;
|
||||
}
|
||||
}
|
||||
|
||||
void senterpc_state::lcd_w(u8 data)
|
||||
{
|
||||
// P22: LC7580 DATA
|
||||
// P26: LC7580 CLK
|
||||
// P27: LC7580 CE
|
||||
m_lcd->data_w(BIT(data, 2));
|
||||
m_lcd->clk_w(BIT(data, 6));
|
||||
m_lcd->ce_w(BIT(data, 7));
|
||||
|
||||
// P22+P27: piezo
|
||||
m_dac->write(BIT(data, 2) & BIT(~data, 7));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
Address Maps
|
||||
@ -184,10 +298,25 @@ static INPUT_PORTS_START( senterp )
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_NAME("Enter Position")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_NAME("New Game")
|
||||
|
||||
PORT_START("IN.2")
|
||||
PORT_BIT(0x3f, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_CUSTOM) // freq sel
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_CUSTOM) // "
|
||||
|
||||
PORT_START("POWER") // needs to be triggered for nvram to work
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, senterp_state, power_off, 0) PORT_NAME("Power Off")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( senterpc )
|
||||
PORT_INCLUDE( senterp )
|
||||
|
||||
PORT_MODIFY("IN.1")
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_NAME("Replay")
|
||||
|
||||
PORT_MODIFY("IN.2")
|
||||
PORT_BIT(0xc0, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
@ -203,7 +332,8 @@ void senterp_state::senterp(machine_config &config)
|
||||
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6301y0_cpu_device::nvram_set_battery));
|
||||
m_maincpu->standby_cb().append([this](int state) { if (state) m_display->clear(); });
|
||||
m_maincpu->in_p2_cb().set(FUNC(senterp_state::input1_r));
|
||||
m_maincpu->out_p2_cb().set(FUNC(senterp_state::control_w));
|
||||
m_maincpu->out_p2_cb().set(FUNC(senterp_state::leds_w));
|
||||
m_maincpu->out_p2_cb().append(m_dac, FUNC(dac_1bit_device::write)).bit(2);
|
||||
m_maincpu->in_p5_cb().set(FUNC(senterp_state::input2_r));
|
||||
m_maincpu->out_p6_cb().set(FUNC(senterp_state::mux_w));
|
||||
|
||||
@ -223,6 +353,22 @@ void senterp_state::senterp(machine_config &config)
|
||||
DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||
}
|
||||
|
||||
void senterpc_state::senterpc(machine_config &config)
|
||||
{
|
||||
senterp(config);
|
||||
|
||||
// basic machine hardware
|
||||
m_maincpu->standby_cb().append(m_lcd, FUNC(lc7580_device::inh_w));
|
||||
m_maincpu->out_p2_cb().set(FUNC(senterpc_state::leds_w));
|
||||
m_maincpu->out_p2_cb().append(FUNC(senterpc_state::lcd_w));
|
||||
|
||||
// video hardware
|
||||
LC7580(config, m_lcd, 0);
|
||||
m_lcd->write_segs().set(FUNC(senterpc_state::lcd_output_w));
|
||||
|
||||
config.set_default_layout(layout_cxg_senterprisec);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
@ -234,6 +380,11 @@ ROM_START( senterp )
|
||||
ROM_LOAD("1985_210_newcrest_hd6301y0a14p", 0x0000, 0x4000, CRC(871719c8) SHA1(8c0f5bef2573b9cbebe87be3a899fec6308603be) )
|
||||
ROM_END
|
||||
|
||||
ROM_START( senterpc )
|
||||
ROM_REGION( 0x4000, "maincpu", 0 )
|
||||
ROM_LOAD("1986_210c_cxg_systems_hd6301y0b27p", 0x0000, 0x4000, CRC(5bb67dd6) SHA1(753c33643a5c45e899d0f4743d3ccf7a0728bd48) )
|
||||
ROM_END
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
@ -242,5 +393,6 @@ ROM_END
|
||||
Drivers
|
||||
*******************************************************************************/
|
||||
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
SYST( 1986, senterp, 0, 0, senterp, senterp, senterp_state, empty_init, "CXG Systems / Newcrest Technology", "Super Enterprise (model 210)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
SYST( 1986, senterp, 0, 0, senterp, senterp, senterp_state, empty_init, "CXG Systems / Newcrest Technology", "Super Enterprise (model 210)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
SYST( 1986, senterpc, senterp, 0, senterpc, senterpc, senterpc_state, empty_init, "CXG Systems / Newcrest Technology", "Super Enterprise (model 210.C)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
524
src/mame/layout/cxg_senterprisec.lay
Normal file
524
src/mame/layout/cxg_senterprisec.lay
Normal file
@ -0,0 +1,524 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
license:CC0-1.0
|
||||
authors:hap
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<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.14" green="0.014" blue="0.02" /></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.41" green="0.4" blue="0.39" /></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=" <<"><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu2b"><text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu2c"><text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu2d"><text string=" >>"><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 -->
|
||||
|
||||
<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>
|
||||
<element name="ldot" defstate="0">
|
||||
<rect state="1"><color red="0.2" green="0.16" blue="0.16" /></rect>
|
||||
<rect state="0"><color red="0.49412" green="0.51765" blue="0.51765" /></rect>
|
||||
</element>
|
||||
|
||||
<group name="lcd1">
|
||||
<element ref="lcd_bg"><bounds x="32" y="89.5" width="20.5" height="9" /></element>
|
||||
|
||||
<element name="digit0" ref="digit"><bounds x="33.0" y="91" width="4" height="6" /></element>
|
||||
<element name="digit1" ref="digit"><bounds x="37.5" y="91" width="4" height="6" /></element>
|
||||
<element name="digit2" ref="digit"><bounds x="43.0" y="91" width="4" height="6" /></element>
|
||||
<element name="digit3" ref="digit"><bounds x="47.5" y="91" width="4" height="6" /></element>
|
||||
|
||||
<element name="s0.8" ref="ldot"><bounds xc="42.45" yc="92.25" width="0.6" height="0.6" /></element>
|
||||
<element name="s0.8" ref="ldot"><bounds xc="42.15" yc="95.65" width="0.6" height="0.6" /></element>
|
||||
</group>
|
||||
|
||||
<group name="lcd2">
|
||||
<element ref="lcd_bg"><bounds x="32" y="89.5" width="20.5" height="9" /></element>
|
||||
|
||||
<element name="digit4" ref="digit"><bounds x="33.0" y="91" width="4" height="6" /></element>
|
||||
<element name="digit5" ref="digit"><bounds x="37.5" y="91" width="4" height="6" /></element>
|
||||
<element name="digit6" ref="digit"><bounds x="43.0" y="91" width="4" height="6" /></element>
|
||||
<element name="digit7" ref="digit"><bounds x="47.5" y="91" width="4" height="6" /></element>
|
||||
|
||||
<element name="s0.34" ref="ldot"><bounds xc="42.45" yc="92.25" width="0.6" height="0.6" /></element>
|
||||
<element name="s0.34" ref="ldot"><bounds xc="42.15" yc="95.65" width="0.6" height="0.6" /></element>
|
||||
</group>
|
||||
|
||||
|
||||
<!-- buttons -->
|
||||
|
||||
<element name="whiter"><rect><color red="1" green="1" blue="1" /></rect></element>
|
||||
<element name="blackr">
|
||||
<rect>
|
||||
<bounds x="0" y="0" width="10" height="10" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
</rect>
|
||||
<rect>
|
||||
<bounds x="1" y="1" width="8" height="8" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="butw" defstate="0">
|
||||
<rect state="0"><color red="0.9" green="0.9" blue="0.92" /></rect>
|
||||
<rect state="1"><color red="0.65" green="0.65" blue="0.66" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_l1"><text string="NEW GAME" align="2"></text></element>
|
||||
<element name="text_l2"><text string="ENTER POSITION" align="2"></text></element>
|
||||
<element name="text_l3"><text string="SOUND/COLOR" align="2"></text></element>
|
||||
<element name="text_l4"><text string="LIBRARY/CLEARBOARD" align="2"></text></element>
|
||||
<element name="text_l5"><text string="REPLAY" align="2"></text></element>
|
||||
<element name="text_l6"><text string="HINT" align="2"></text></element>
|
||||
<element name="text_l7"><text string="LEVEL" align="2"></text></element>
|
||||
<element name="text_l8"><text string="MULTI MOVE" align="2"></text></element>
|
||||
<element name="text_l9"><text string="TAKE BACK" align="2"></text></element>
|
||||
<element name="text_l10"><text string="MOVE" align="2"></text></element>
|
||||
|
||||
<element name="text_l11"><text string="ERROR" align="2"></text></element>
|
||||
<element name="text_l12"><text string="CHECK" align="2"></text></element>
|
||||
<element name="text_l13"><text string="MATE" align="2"></text></element>
|
||||
<element name="text_l14"><text string="DRAW" align="2"></text></element>
|
||||
<element name="text_l15"><text string="3RD REPET" align="2"></text></element> <!-- sic -->
|
||||
<element name="text_l16"><text string="RESIGN" align="2"></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>
|
||||
|
||||
<element name="text_black"><text string="BLACK"></text></element>
|
||||
<element name="text_white"><text string="WHITE"></text></element>
|
||||
|
||||
<group name="panel">
|
||||
<bounds x="0" y="0" width="50" height="100" />
|
||||
|
||||
<repeat count="10">
|
||||
<param name="y" start="18" increment="5" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
<element ref="text_l~i~"><bounds x="13" y="~y~" width="15" height="1.5" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="6">
|
||||
<param name="y" start="69.1" increment="5" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
<element ref="text_p~i~"><bounds x="16.5" y="~y~" width="2.5" height="2.5" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="6">
|
||||
<param name="y" start="69.75" increment="5" />
|
||||
<param name="i" start="11" increment="1" />
|
||||
<element ref="text_l~i~"><bounds x="1" y="~y~" width="15" height="1.5" /></element>
|
||||
</repeat>
|
||||
|
||||
<element ref="text_black"><bounds x="4.5" y="35.875" width="11.5" height="1.5" /></element>
|
||||
<element ref="text_white"><bounds x="4.5" y="48.075" width="11.5" height="1.5" /></element>
|
||||
|
||||
<element ref="whiter"><bounds x="4.5" yc="70.5" width="6.0" height="0.15" /></element>
|
||||
<element ref="whiter"><bounds x="4.5" yc="75.5" width="6.2" height="0.15" /></element>
|
||||
<element ref="whiter"><bounds x="4.5" yc="80.5" width="6.9" height="0.15" /></element>
|
||||
<element ref="whiter"><bounds x="4.5" yc="85.5" width="6.5" height="0.15" /></element>
|
||||
<element ref="whiter"><bounds x="4.5" yc="90.5" width="4.0" height="0.15" /></element>
|
||||
<element ref="whiter"><bounds x="4.5" yc="95.5" width="5.8" height="0.15" /></element>
|
||||
|
||||
<element ref="blackr"><bounds x="4.5" yc="16.1" width="1.8" height="1.8" /></element>
|
||||
<element ref="whiter"><bounds x="4.5" yc="19.8" width="1.8" height="1.8" /></element>
|
||||
|
||||
<element ref="cwhite" blend="multiply"><bounds x="0" y="0" width="50" height="100" /></element>
|
||||
|
||||
<element name="0.7" ref="led"><bounds x="1.7" yc="16.2" width="1.5" height="1.5" /></element>
|
||||
<element name="0.6" ref="led"><bounds x="1.7" yc="19.9" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="0.5" ref="led"><bounds x="1.7" y="69.75" width="1.5" height="1.5" /></element>
|
||||
<element name="0.4" ref="led"><bounds x="1.7" y="74.75" width="1.5" height="1.5" /></element>
|
||||
<element name="0.3" ref="led"><bounds x="1.7" y="79.75" width="1.5" height="1.5" /></element>
|
||||
<element name="0.2" ref="led"><bounds x="1.7" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="0.1" ref="led"><bounds x="1.7" y="89.75" width="1.5" height="1.5" /></element>
|
||||
<element name="0.0" ref="led"><bounds x="1.7" y="94.75" width="1.5" height="1.5" /></element>
|
||||
|
||||
<group ref="lcd1"><bounds x="4.5" y="37.8" width="11.5" height="5.4" /></group>
|
||||
<group ref="lcd2"><bounds x="4.5" y="50" width="11.5" height="5.4" /></group>
|
||||
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x80"><bounds x="20" yc="20.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x40"><bounds x="20" yc="25.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x20"><bounds x="20" yc="30.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x10"><bounds x="20" yc="35.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x08"><bounds x="20" yc="40.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x04"><bounds x="20" yc="45.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x02"><bounds x="20" yc="50.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.1" inputmask="0x01"><bounds x="20" yc="55.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x02"><bounds x="20" yc="60.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x01"><bounds x="20" yc="65.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x80"><bounds x="20" yc="70.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x40"><bounds x="20" yc="75.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x20"><bounds x="20" yc="80.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x10"><bounds x="20" yc="85.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x08"><bounds x="20" yc="90.5" width="8" height="1.15" /></element>
|
||||
<element ref="butw" inputtag="IN.0" inputmask="0x04"><bounds x="20" yc="95.5" width="8" height="1.15" /></element>
|
||||
</group>
|
||||
|
||||
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="-6" right="123.5" top="6" bottom="94" />
|
||||
|
||||
<group ref="panel"><bounds x="92.5" y="-5.6" width="50" height="100" /></group>
|
||||
|
||||
<element ref="cwhite"><bounds x="9.5" y="9.5" width="81" height="81" /></element>
|
||||
<group ref="sb_board"><bounds x="10" y="10" width="80" height="80" /></group>
|
||||
<group ref="sb_ui"><bounds x="-4.5" y="10" width="10" height="80" /></group>
|
||||
|
||||
<!-- leds -->
|
||||
<repeat count="8">
|
||||
<param name="x" start="14.25" increment="10" />
|
||||
<param name="i" start="0" increment="1" />
|
||||
<element name="2.~i~" ref="led"><bounds x="~x~" y="91.5" width="1.5" height="1.5" /></element>
|
||||
</repeat>
|
||||
<repeat count="8">
|
||||
<param name="y" start="14.25" increment="10" />
|
||||
<param name="i" start="7" increment="-1" />
|
||||
<element name="1.~i~" ref="led"><bounds x="7" y="~y~" width="1.5" height="1.5" /></element>
|
||||
</repeat>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
@ -16448,6 +16448,7 @@ scprof
|
||||
|
||||
@source:cxg/senterprise.cpp
|
||||
senterp
|
||||
senterpc
|
||||
|
||||
@source:cxg/sphinx40.cpp
|
||||
sphinx40
|
||||
|
Loading…
Reference in New Issue
Block a user