mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
leonardo: figure out some io (nw)
This commit is contained in:
parent
c782a0ef33
commit
eb316bd6a7
@ -83,7 +83,7 @@ enum
|
||||
#define TAKE_TOI enter_interrupt("take TOI\n",0xfff2)
|
||||
#define TAKE_SCI enter_interrupt("take SCI\n",0xfff0)
|
||||
|
||||
/* mnemonicos for the Timer Control and Status Register bits */
|
||||
/* mnemonics for the Timer Control and Status Register bits */
|
||||
#define TCSR_OLVL 0x01
|
||||
#define TCSR_IEDG 0x02
|
||||
#define TCSR_ETOI 0x04
|
||||
@ -1092,7 +1092,7 @@ void hd6301x_cpu_device::write_port2()
|
||||
|
||||
/*
|
||||
if change_pc() direccted these areas ,Call hd63701_trap_pc().
|
||||
'mode' is selected by the sense of p2.0,p2.1,and p2.3 at reset timming.
|
||||
'mode' is selected by the sense of p2.0,p2.1,and p2.3 at reset timing.
|
||||
mode 0,1,2,4,6 : $0000-$001f
|
||||
mode 5 : $0000-$001f,$0200-$efff
|
||||
mode 7 : $0000-$001f,$0100-$efff
|
||||
|
@ -10,7 +10,7 @@ Hardware notes:
|
||||
- 256 bytes RAM(2*2112-1)
|
||||
- 8-digit 7seg led panel
|
||||
|
||||
Two versions exists, a blue one(seen with SC80265P) and a brown one(seen with
|
||||
Two versions exist, a blue one(seen with SC80265P) and a brown one(seen with
|
||||
either MCU). The one emulated here is from a brown version with the SC80265P.
|
||||
Motorola SC80265P is a 3870 clone, it's assumed that the program is the same
|
||||
as SL90259.
|
||||
|
@ -15,11 +15,19 @@ Initially, it had a "Sound" button for turning the beeps off. This was later
|
||||
changed to the more useful "New Game". With Portachess, they added a "Save"
|
||||
switch which puts the MCU in halt state.
|
||||
|
||||
Hardware notes (Sensor Computachess):
|
||||
- PCB label WA 001
|
||||
- HD44801 MCU @ ~400kHz
|
||||
Hardware notes:
|
||||
|
||||
Sensor Computachess:
|
||||
- PCB label WA 001 600 002
|
||||
- 44801A50 MCU @ ~400kHz
|
||||
- buzzer, 16 leds, button sensors chessboard
|
||||
|
||||
Portachess II:
|
||||
- PCB label CXG223-600-001 (main pcb), CXG 211 600 101 (led pcb taken from
|
||||
Advanced Star Chess, extra led row unused here)
|
||||
- HD44801C89 MCU @ ~400kHz (serial 202: from Portachess 1985 version)
|
||||
- rest same as above
|
||||
|
||||
HD44801A50 used in:
|
||||
- CXG Sensor Computachess (1981 version) - 1st use
|
||||
- CXG Portachess (1983 version, has "Sound" button)
|
||||
@ -225,7 +233,7 @@ ROM_END
|
||||
|
||||
ROM_START( prtchess )
|
||||
ROM_REGION( 0x2000, "maincpu", 0 )
|
||||
ROM_LOAD("202_newcrest_16_hd44801c89", 0x0000, 0x2000, CRC(56b48f70) SHA1(84ec62323c6d3314e0515bccfde2f65f6d753e99) ) // 202 = Portachess model#
|
||||
ROM_LOAD("202_newcrest_16_hd44801c89", 0x0000, 0x2000, CRC(56b48f70) SHA1(84ec62323c6d3314e0515bccfde2f65f6d753e99) )
|
||||
ROM_END
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -11,7 +11,8 @@ Mephistos, these boards are actual chesscomputers and not an accessory.
|
||||
They called the expansion capability "OSA", for "Open Systems Architecture".
|
||||
One for a link port to a PC, and one for a module slot. The expansion modules
|
||||
are basically entire chesscomputers, making the whole thing combined a
|
||||
'dual brain' chesscomputer.
|
||||
'dual brain' chesscomputer. The embedded chess engine is by Julio Kaplan,
|
||||
same as the one in SciSys Turbo S-24K.
|
||||
|
||||
Hardware notes:
|
||||
|
||||
@ -34,8 +35,22 @@ Galileo PCB is different, but essentially it's the same hardware as Leonardo.
|
||||
The 1.4 ROM is identical to it too, even though it's a different MCU type.
|
||||
And on the outside, the button panel was redesigned a bit.
|
||||
|
||||
Expansion modules released:
|
||||
- Maestro (65C02, Julio Kaplan)
|
||||
- Analyst (65C02, Julio Kaplan)
|
||||
- Brute Force (H8, Frans Morsch)
|
||||
- Sparc (SPARClite, Spracklen's)
|
||||
|
||||
TODO:
|
||||
- WIP
|
||||
- game locks up when you get checkmated
|
||||
- 1.4 version: It locks up a short time after you make an input error (eg. on
|
||||
computer's turn, enter the wrong move so it will give a low pitch error beep,
|
||||
then hold INS to fast forward and it will lock up)
|
||||
- OSA module support (softwarelist, devices/bus)
|
||||
- OSA PC link (probably uses MCU serial interface)
|
||||
- unsure about white/black/check/end/module/comm leds
|
||||
- add nvram
|
||||
- finish internal artwork
|
||||
|
||||
******************************************************************************/
|
||||
|
||||
@ -45,9 +60,13 @@ TODO:
|
||||
#include "machine/sensorboard.h"
|
||||
#include "sound/dac.h"
|
||||
#include "sound/volt_reg.h"
|
||||
#include "video/pwm.h"
|
||||
|
||||
#include "speaker.h"
|
||||
|
||||
// internal artwork
|
||||
#include "saitek_leonardo.lh" // clickable
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
@ -58,11 +77,13 @@ public:
|
||||
driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_board(*this, "board"),
|
||||
m_dac(*this, "dac")
|
||||
m_display(*this, "display"),
|
||||
m_dac(*this, "dac"),
|
||||
m_inputs(*this, "IN.%u", 0)
|
||||
{ }
|
||||
|
||||
// machine configs
|
||||
void leo(machine_config &config);
|
||||
void leoa(machine_config &config);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
@ -71,13 +92,33 @@ private:
|
||||
// devices/pointers
|
||||
required_device<hd6303y_cpu_device> m_maincpu;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_device<pwm_display_device> m_display;
|
||||
optional_device<dac_bit_interface> m_dac;
|
||||
required_ioport_array<9> m_inputs;
|
||||
|
||||
void main_map(address_map &map);
|
||||
|
||||
void update_display();
|
||||
void mux_w(u8 data);
|
||||
void leds_w(u8 data);
|
||||
u8 unk_r();
|
||||
void unk_w(u8 data);
|
||||
|
||||
u8 p2_r();
|
||||
u8 p5_r();
|
||||
u8 p6_r();
|
||||
void p2_w(u8 data);
|
||||
void p5_w(u8 data);
|
||||
void p6_w(u8 data);
|
||||
|
||||
u8 m_inp_mux = 0;
|
||||
u8 m_led_data[2] = { 0, 0 };
|
||||
};
|
||||
|
||||
void leo_state::machine_start()
|
||||
{
|
||||
save_item(NAME(m_inp_mux));
|
||||
save_item(NAME(m_led_data));
|
||||
}
|
||||
|
||||
|
||||
@ -86,7 +127,94 @@ void leo_state::machine_start()
|
||||
I/O
|
||||
******************************************************************************/
|
||||
|
||||
// ...
|
||||
// misc
|
||||
|
||||
void leo_state::update_display()
|
||||
{
|
||||
m_display->matrix_partial(0, 8, 1 << (m_inp_mux & 0xf), m_led_data[0], false);
|
||||
m_display->matrix_partial(8, 3, ~m_inp_mux >> 5 & 7, (~m_inp_mux << 3 & 0x700) | m_led_data[1], true);
|
||||
}
|
||||
|
||||
void leo_state::mux_w(u8 data)
|
||||
{
|
||||
// d0-d3: input/chessboard leds mux
|
||||
// d5-d7: button leds mux
|
||||
m_inp_mux = data;
|
||||
update_display();
|
||||
|
||||
// d4: speaker out
|
||||
m_dac->write(data >> 4 & 1);
|
||||
}
|
||||
|
||||
void leo_state::leds_w(u8 data)
|
||||
{
|
||||
// button leds data
|
||||
m_led_data[1] = ~data;
|
||||
update_display();
|
||||
}
|
||||
|
||||
u8 leo_state::unk_r()
|
||||
{
|
||||
// ?
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
void leo_state::unk_w(u8 data)
|
||||
{
|
||||
// ?
|
||||
}
|
||||
|
||||
|
||||
// MCU ports
|
||||
|
||||
u8 leo_state::p2_r()
|
||||
{
|
||||
u8 data = 0;
|
||||
|
||||
// d0-d2: multiplexed inputs
|
||||
u8 mux = (m_inp_mux & 8) ? 8 : (m_inp_mux & 7);
|
||||
data = m_inputs[mux]->read();
|
||||
|
||||
// d3: ?
|
||||
|
||||
return ~data;
|
||||
}
|
||||
|
||||
void leo_state::p2_w(u8 data)
|
||||
{
|
||||
// d5,d6: chessboard led column data
|
||||
m_led_data[0] = (m_led_data[0] & ~3) | (~data >> 5 & 3);
|
||||
update_display();
|
||||
|
||||
// other: ?
|
||||
}
|
||||
|
||||
u8 leo_state::p5_r()
|
||||
{
|
||||
// ?
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
void leo_state::p5_w(u8 data)
|
||||
{
|
||||
// d6,d7: chessboard led row data
|
||||
m_led_data[0] = (m_led_data[0] & 3) | (~data >> 4 & 0xc);
|
||||
update_display();
|
||||
|
||||
// d0: power-off
|
||||
// other: ?
|
||||
}
|
||||
|
||||
u8 leo_state::p6_r()
|
||||
{
|
||||
// read chessboard sensors
|
||||
return ~m_board->read_file(m_inp_mux & 0xf);
|
||||
}
|
||||
|
||||
void leo_state::p6_w(u8 data)
|
||||
{
|
||||
// module data
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -97,8 +225,11 @@ void leo_state::machine_start()
|
||||
void leo_state::main_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x0027).m(m_maincpu, FUNC(hd6303y_cpu_device::hd6301y_io));
|
||||
map(0x0002, 0x0002).rw(FUNC(leo_state::unk_r), FUNC(leo_state::unk_w)); // external
|
||||
map(0x0040, 0x013f).ram(); // internal
|
||||
map(0x4000, 0x5fff).ram();
|
||||
map(0x6000, 0x6000).w(FUNC(leo_state::mux_w));
|
||||
map(0x7000, 0x7000).w(FUNC(leo_state::leds_w));
|
||||
map(0x8000, 0xffff).rom();
|
||||
}
|
||||
|
||||
@ -109,6 +240,50 @@ void leo_state::main_map(address_map &map)
|
||||
******************************************************************************/
|
||||
|
||||
static INPUT_PORTS_START( leo )
|
||||
PORT_START("IN.0")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) // king
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) // rook
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) // knight
|
||||
|
||||
PORT_START("IN.1")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) // queen
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) // bishop
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) // pawn
|
||||
|
||||
PORT_START("IN.2")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) // n
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) // tab/color
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_9) // +
|
||||
|
||||
PORT_START("IN.3")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) // freq
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) // function?
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) // sound
|
||||
|
||||
PORT_START("IN.4")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) // freq
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) // stop?
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) // library?
|
||||
|
||||
PORT_START("IN.5")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_U) // info
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) // play?
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) // level
|
||||
|
||||
PORT_START("IN.6")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_A) // -
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) // normal?
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_D) // analysis?
|
||||
|
||||
PORT_START("IN.7")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_F) // n
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_G) // new game
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) // setup?
|
||||
|
||||
PORT_START("IN.8")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_J)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_K)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_L) // low battery
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
@ -122,17 +297,35 @@ void leo_state::leo(machine_config &config)
|
||||
/* basic machine hardware */
|
||||
HD6303Y(config, m_maincpu, 12_MHz_XTAL);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &leo_state::main_map);
|
||||
m_maincpu->in_p2_cb().set(FUNC(leo_state::p2_r));
|
||||
m_maincpu->out_p2_cb().set(FUNC(leo_state::p2_w));
|
||||
m_maincpu->in_p5_cb().set(FUNC(leo_state::p5_r));
|
||||
m_maincpu->out_p5_cb().set(FUNC(leo_state::p5_w));
|
||||
m_maincpu->in_p6_cb().set(FUNC(leo_state::p6_r));
|
||||
m_maincpu->out_p6_cb().set(FUNC(leo_state::p6_w));
|
||||
|
||||
SENSORBOARD(config, m_board).set_type(sensorboard_device::MAGNETS);
|
||||
m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess));
|
||||
m_board->set_delay(attotime::from_msec(150));
|
||||
|
||||
/* video hardware */
|
||||
PWM_DISPLAY(config, m_display).set_size(8+3, 8+3);
|
||||
config.set_default_layout(layout_saitek_leonardo);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||
VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||
}
|
||||
|
||||
void leo_state::leoa(machine_config &config)
|
||||
{
|
||||
leo(config);
|
||||
|
||||
// slower chessboard response?
|
||||
m_board->set_delay(attotime::from_msec(250));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
@ -163,7 +356,7 @@ ROM_END
|
||||
******************************************************************************/
|
||||
|
||||
// YEAR NAME PARENT CMP MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
CONS( 1986, leonardo, 0, 0, leo, leo, leo_state, empty_init, "SciSys", "Kasparov Leonardo (set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING )
|
||||
CONS( 1986, leonardoa, leonardo, 0, leo, leo, leo_state, empty_init, "SciSys", "Kasparov Leonardo (set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING )
|
||||
CONS( 1986, leonardo, 0, 0, leo, leo, leo_state, empty_init, "SciSys", "Kasparov Leonardo (set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_NOT_WORKING )
|
||||
CONS( 1986, leonardoa, leonardo, 0, leoa, leo, leo_state, empty_init, "SciSys", "Kasparov Leonardo (set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_NOT_WORKING )
|
||||
|
||||
CONS( 1988, galileo, 0, 0, leo, leo, leo_state, empty_init, "Saitek", "Kasparov Galileo", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING )
|
||||
CONS( 1988, galileo, 0, 0, leo, leo, leo_state, empty_init, "Saitek", "Kasparov Galileo", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_NOT_WORKING )
|
||||
|
497
src/mame/layout/saitek_leonardo.lay
Normal file
497
src/mame/layout/saitek_leonardo.lay
Normal file
@ -0,0 +1,497 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
license:CC0
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="black"><rect><color red="0.17" green="0.15" blue="0.15" /></rect></element>
|
||||
|
||||
<element name="led" defstate="0">
|
||||
<disk state="0"><color red="0.2" green="0" blue="0" /></disk>
|
||||
<disk state="1"><color red="1" green="0" blue="0" /></disk>
|
||||
</element>
|
||||
|
||||
<element name="ledo">
|
||||
<disk><color red="0.1" green="0.1" blue="0.1" /></disk>
|
||||
</element>
|
||||
<element name="ledr" defstate="0">
|
||||
<disk state="0"><color red="0" green="0" blue="0" /></disk>
|
||||
<disk state="1"><color red="1" green="0" blue="0" /></disk>
|
||||
</element>
|
||||
<element name="ledg" defstate="0">
|
||||
<disk state="0"><color red="0" green="0" blue="0" /></disk>
|
||||
<disk state="1"><color red="0" green="1" blue="0" /></disk>
|
||||
</element>
|
||||
|
||||
<element name="text_1">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="1"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_2">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="2"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_3">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="3"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_4">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="4"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_5">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="5"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_6">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="6"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_7">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="7"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_8">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="8"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
|
||||
<element name="text_a">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="A"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_b">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="B"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_c">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="C"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_d">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="D"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_e">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="E"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_f">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="F"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_g">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="G"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
<element name="text_h">
|
||||
<rect><color red="0.56" green="0.33" blue="0.12" /></rect>
|
||||
<text string="H"><color red="0.87" green="0.87" blue="0.84" /></text>
|
||||
</element>
|
||||
|
||||
|
||||
<!-- sb board -->
|
||||
|
||||
<element name="cblack"><rect><color red="0.56" green="0.33" blue="0.12" /></rect></element>
|
||||
<element name="cwhite"><rect><color red="0.84" green="0.75" blue="0.50" /></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.png" state="1"/>
|
||||
<image file="chess/wn.png" state="2"/>
|
||||
<image file="chess/wb.png" state="3"/>
|
||||
<image file="chess/wr.png" state="4"/>
|
||||
<image file="chess/wq.png" state="5"/>
|
||||
<image file="chess/wk.png" state="6"/>
|
||||
|
||||
<image file="chess/bp.png" state="7"/>
|
||||
<image file="chess/bn.png" state="8"/>
|
||||
<image file="chess/bb.png" state="9"/>
|
||||
<image file="chess/br.png" state="10"/>
|
||||
<image file="chess/bq.png" state="11"/>
|
||||
<image file="chess/bk.png" state="12"/>
|
||||
|
||||
<!-- selected pieces -->
|
||||
<image file="chess/wp.png" state="13"><color alpha="0.5" /></image>
|
||||
<image file="chess/wn.png" state="14"><color alpha="0.5" /></image>
|
||||
<image file="chess/wb.png" state="15"><color alpha="0.5" /></image>
|
||||
<image file="chess/wr.png" state="16"><color alpha="0.5" /></image>
|
||||
<image file="chess/wq.png" state="17"><color alpha="0.5" /></image>
|
||||
<image file="chess/wk.png" state="18"><color alpha="0.5" /></image>
|
||||
|
||||
<image file="chess/bp.png" state="19"><color alpha="0.5" /></image>
|
||||
<image file="chess/bn.png" state="20"><color alpha="0.5" /></image>
|
||||
<image file="chess/bb.png" state="21"><color alpha="0.5" /></image>
|
||||
<image file="chess/br.png" state="22"><color alpha="0.5" /></image>
|
||||
<image file="chess/bq.png" state="23"><color alpha="0.5" /></image>
|
||||
<image file="chess/bk.png" state="24"><color alpha="0.5" /></image>
|
||||
</element>
|
||||
|
||||
<group name="sb_board">
|
||||
<bounds x="0" y="0" width="80" height="80" />
|
||||
|
||||
<!-- squares (avoid seams) -->
|
||||
<bezel element="cwhite"><bounds x="0" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="0" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="0" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="10" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="10" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="20" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="20" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="30" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="30" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="40" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="40" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="50" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="50" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="60" width="11" height="11" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="60" width="10" height="11" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="70" width="11" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="70" width="10" height="10" /></bezel>
|
||||
|
||||
<!-- sensors, pieces -->
|
||||
<repeat count="8">
|
||||
<param name="y" start="0" increment="10" />
|
||||
<param name="i" start="8" increment="-1" />
|
||||
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x01"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.04" /></bezel>
|
||||
|
||||
<bezel name="piece_a~i~" element="piece"><bounds x="0" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_b~i~" element="piece"><bounds x="10" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_c~i~" element="piece"><bounds x="20" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_d~i~" element="piece"><bounds x="30" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_e~i~" element="piece"><bounds x="40" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_f~i~" element="piece"><bounds x="50" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_g~i~" element="piece"><bounds x="60" y="~y~" width="10" height="10" /></bezel>
|
||||
<bezel name="piece_h~i~" element="piece"><bounds x="70" y="~y~" width="10" height="10" /></bezel>
|
||||
</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">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uib3">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<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">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<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">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2b">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2c">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2d">
|
||||
<rect><color red="0.84" green="0.75" blue="0.50" /></rect>
|
||||
<text string=" >>"><color red="0.01" green="0.01" blue="0.01" /></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_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></text></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" />
|
||||
<bezel element="cblack"><bounds x="0" y="0" width="10" height="1" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="7" width="10" height="1" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="79" width="10" height="1" /></bezel>
|
||||
<bezel element="text_uit1"><bounds x="0" y="2" width="10" height="2" /></bezel>
|
||||
<bezel element="text_uit2"><bounds x="0" y="4" width="10" height="2" /></bezel>
|
||||
|
||||
<!-- board -->
|
||||
<bezel element="text_uib1"><bounds x="0" y="9" width="10" height="2" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="1" y="11.5" width="8" height="2.5" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="1" y="15" width="8" height="2.5" /></bezel>
|
||||
|
||||
<bezel element="text_uib2"><bounds x="1.5" y="11.75" width="7" height="2" /></bezel>
|
||||
<bezel element="text_uib3"><bounds x="1.5" y="15.25" width="7" height="2" /></bezel>
|
||||
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x200"><bounds x="1" y="11.5" width="8" height="2.5" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x100"><bounds x="1" y="15" width="8" height="2.5" /><color alpha="0.25" /></bezel>
|
||||
|
||||
<!-- spawn -->
|
||||
<bezel element="text_uis1"><bounds x="0" y="20.5" width="10" height="2" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="1" y="23" width="8" height="12" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="1" y="36" width="8" height="12" /></bezel>
|
||||
|
||||
<bezel name="piece_ui1" element="piece"><bounds x="1" y="23" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui2" element="piece"><bounds x="1" y="27" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui3" element="piece"><bounds x="1" y="31" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui4" element="piece"><bounds x="5" y="23" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui5" element="piece"><bounds x="5" y="27" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui6" element="piece"><bounds x="5" y="31" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui7" element="piece"><bounds x="1" y="36" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui8" element="piece"><bounds x="1" y="40" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui9" element="piece"><bounds x="1" y="44" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui10" element="piece"><bounds x="5" y="36" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui11" element="piece"><bounds x="5" y="40" width="4" height="4" /></bezel>
|
||||
<bezel name="piece_ui12" element="piece"><bounds x="5" y="44" width="4" height="4" /></bezel>
|
||||
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0001"><bounds x="1" y="23" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0002"><bounds x="1" y="27" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0004"><bounds x="1" y="31" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0008"><bounds x="5" y="23" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0010"><bounds x="5" y="27" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0020"><bounds x="5" y="31" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0040"><bounds x="1" y="36" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0080"><bounds x="1" y="40" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0100"><bounds x="1" y="44" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0200"><bounds x="5" y="36" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0400"><bounds x="5" y="40" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0800"><bounds x="5" y="44" width="4" height="4" /><color alpha="0.25" /></bezel>
|
||||
|
||||
<!-- hand -->
|
||||
<bezel element="text_uih1"><bounds x="0" y="51" width="10" height="2" /></bezel>
|
||||
<bezel element="cblack"><bounds x="1" y="53.5" width="8" height="6" /></bezel>
|
||||
<bezel name="piece_ui0" element="piece"><bounds x="2" y="53.5" width="6" height="6" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="1" y="60.5" width="8" height="2.5" /></bezel>
|
||||
<bezel element="text_uih2"><bounds x="1.5" y="60.75" width="7" height="2" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x08"><bounds x="1" y="60.5" width="8" height="2.5" /><color alpha="0.25" /></bezel>
|
||||
|
||||
<!-- undo -->
|
||||
<bezel element="text_uiu1"><bounds x="0" y="66" width="10" height="2" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="1" y="68.5" width="1.7" height="6" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="3.1" y="68.5" width="1.7" height="6" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="5.2" y="68.5" width="1.7" height="6" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="7.3" y="68.5" width="1.7" height="6" /></bezel>
|
||||
<bezel element="text_uiu2a"><bounds x="1" y="69.5" width="1.7" height="4" /></bezel>
|
||||
<bezel element="text_uiu2b"><bounds x="3.1" y="69.5" width="1.7" height="4" /></bezel>
|
||||
<bezel element="text_uiu2c"><bounds x="5.2" y="69.5" width="1.7" height="4" /></bezel>
|
||||
<bezel element="text_uiu2d"><bounds x="7.3" y="69.5" width="1.7" height="4" /></bezel>
|
||||
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x10"><bounds x="1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x20"><bounds x="3.1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x40"><bounds x="5.2" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
|
||||
<bezel element="hlub" inputtag="board:UI" inputmask="0x80"><bounds x="7.3" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
|
||||
|
||||
<bezel name="count_ui0" element="text_uiu3a"><bounds x="0" y="75" width="4" height="2" /></bezel>
|
||||
<bezel name="count_ui1" element="text_uiu3c"><bounds x="6" y="75" width="4" height="2" /></bezel>
|
||||
<bezel element="text_uiu3b"><bounds x="4" y="75" width="2" height="2" /></bezel>
|
||||
</group>
|
||||
|
||||
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="-13" right="88" top="-1.5" bottom="95.5" />
|
||||
|
||||
<element ref="cblack"><bounds x="-1" y="-1.5" width="89" height="89" /></element>
|
||||
<element ref="black"><bounds x="3" y="2.5" width="81" height="81" /></element>
|
||||
<group ref="sb_board"><bounds x="3.5" y="3" width="80" height="80" /></group>
|
||||
|
||||
<group ref="sb_ui"><bounds x="-12" y="3" width="10" height="80" /></group>
|
||||
|
||||
<!-- chessboard coords -->
|
||||
<element ref="text_8"><bounds x="0.1" y="9" width="2" height="2" /></element>
|
||||
<element ref="text_7"><bounds x="0.1" y="19" width="2" height="2" /></element>
|
||||
<element ref="text_6"><bounds x="0.1" y="29" width="2" height="2" /></element>
|
||||
<element ref="text_5"><bounds x="0.1" y="39" width="2" height="2" /></element>
|
||||
<element ref="text_4"><bounds x="0.1" y="49" width="2" height="2" /></element>
|
||||
<element ref="text_3"><bounds x="0.1" y="59" width="2" height="2" /></element>
|
||||
<element ref="text_2"><bounds x="0.1" y="69" width="2" height="2" /></element>
|
||||
<element ref="text_1"><bounds x="0.1" y="79" width="2" height="2" /></element>
|
||||
|
||||
<element ref="text_a"><bounds x="5.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_b"><bounds x="15.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_c"><bounds x="25.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_d"><bounds x="35.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_e"><bounds x="45.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_f"><bounds x="55.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_g"><bounds x="65.5" y="84.5" width="2" height="2" /></element>
|
||||
<element ref="text_h"><bounds x="75.5" y="84.5" width="2" height="2" /></element>
|
||||
|
||||
<!-- chessboard leds -->
|
||||
<element ref="ledo"><bounds x="0.25" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="0.25" y="77.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="7.2" ref="ledg" blend="add"><bounds x="0.25" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element name="6.2" ref="ledg" blend="add"><bounds x="0.25" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element name="5.2" ref="ledg" blend="add"><bounds x="0.25" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element name="4.2" ref="ledg" blend="add"><bounds x="0.25" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element name="3.2" ref="ledg" blend="add"><bounds x="0.25" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.2" ref="ledg" blend="add"><bounds x="0.25" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element name="1.2" ref="ledg" blend="add"><bounds x="0.25" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.2" ref="ledg" blend="add"><bounds x="0.25" y="77.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="7.3" ref="ledr" blend="add"><bounds x="0.25" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element name="6.3" ref="ledr" blend="add"><bounds x="0.25" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element name="5.3" ref="ledr" blend="add"><bounds x="0.25" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element name="4.3" ref="ledr" blend="add"><bounds x="0.25" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element name="3.3" ref="ledr" blend="add"><bounds x="0.25" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.3" ref="ledr" blend="add"><bounds x="0.25" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element name="1.3" ref="ledr" blend="add"><bounds x="0.25" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.3" ref="ledr" blend="add"><bounds x="0.25" y="77.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element ref="ledo"><bounds x="7.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="17.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="27.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="37.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="47.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="57.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="67.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element ref="ledo"><bounds x="77.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="0.0" ref="ledg" blend="add"><bounds x="7.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="1.0" ref="ledg" blend="add"><bounds x="17.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="2.0" ref="ledg" blend="add"><bounds x="27.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="3.0" ref="ledg" blend="add"><bounds x="37.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="4.0" ref="ledg" blend="add"><bounds x="47.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="5.0" ref="ledg" blend="add"><bounds x="57.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="6.0" ref="ledg" blend="add"><bounds x="67.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="7.0" ref="ledg" blend="add"><bounds x="77.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="0.1" ref="ledr" blend="add"><bounds x="7.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="1.1" ref="ledr" blend="add"><bounds x="17.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="2.1" ref="ledr" blend="add"><bounds x="27.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="3.1" ref="ledr" blend="add"><bounds x="37.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="4.1" ref="ledr" blend="add"><bounds x="47.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="5.1" ref="ledr" blend="add"><bounds x="57.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="6.1" ref="ledr" blend="add"><bounds x="67.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
<element name="7.1" ref="ledr" blend="add"><bounds x="77.75" y="84.75" width="1.5" height="1.5" /></element>
|
||||
|
||||
|
||||
<element name="8.0" ref="led" blend="add"><bounds x="0.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.1" ref="led" blend="add"><bounds x="2.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.2" ref="led" blend="add"><bounds x="4.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.3" ref="led" blend="add"><bounds x="6.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.4" ref="led" blend="add"><bounds x="8.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.5" ref="led" blend="add"><bounds x="10.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.6" ref="led" blend="add"><bounds x="12.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.7" ref="led" blend="add"><bounds x="14.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.8" ref="led" blend="add"><bounds x="16.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.9" ref="led" blend="add"><bounds x="18.25" y="89" width="1.5" height="1.5" /></element>
|
||||
<element name="8.10" ref="led" blend="add"><bounds x="20.25" y="89" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="9.0" ref="led" blend="add"><bounds x="0.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.1" ref="led" blend="add"><bounds x="2.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.2" ref="led" blend="add"><bounds x="4.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.3" ref="led" blend="add"><bounds x="6.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.4" ref="led" blend="add"><bounds x="8.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.5" ref="led" blend="add"><bounds x="10.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.6" ref="led" blend="add"><bounds x="12.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.7" ref="led" blend="add"><bounds x="14.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.8" ref="led" blend="add"><bounds x="16.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.9" ref="led" blend="add"><bounds x="18.25" y="91" width="1.5" height="1.5" /></element>
|
||||
<element name="9.10" ref="led" blend="add"><bounds x="20.25" y="91" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="10.0" ref="led" blend="add"><bounds x="0.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.1" ref="led" blend="add"><bounds x="2.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.2" ref="led" blend="add"><bounds x="4.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.3" ref="led" blend="add"><bounds x="6.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.4" ref="led" blend="add"><bounds x="8.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.5" ref="led" blend="add"><bounds x="10.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.6" ref="led" blend="add"><bounds x="12.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.7" ref="led" blend="add"><bounds x="14.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.8" ref="led" blend="add"><bounds x="16.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.9" ref="led" blend="add"><bounds x="18.25" y="93" width="1.5" height="1.5" /></element>
|
||||
<element name="10.10" ref="led" blend="add"><bounds x="20.25" y="93" width="1.5" height="1.5" /></element>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
Loading…
Reference in New Issue
Block a user