mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
Add chesspieces to risc2500.cpp and chessmst.cpp (nw)
This commit is contained in:
parent
ce5a23d49f
commit
173962bf18
@ -15,6 +15,7 @@
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "machine/clock.h"
|
||||
#include "machine/z80pio.h"
|
||||
#include "machine/sensorboard.h"
|
||||
#include "sound/beep.h"
|
||||
#include "sound/spkrdev.h"
|
||||
|
||||
@ -36,13 +37,13 @@ public:
|
||||
m_pio(*this, "z80pio%u", 0),
|
||||
m_speaker(*this, "speaker"),
|
||||
m_beeper(*this, "beeper"),
|
||||
m_board(*this, "board"),
|
||||
m_extra(*this, "EXTRA"),
|
||||
m_buttons(*this, "BUTTONS"),
|
||||
m_digits(*this, "digit%u", 0U),
|
||||
m_leds(*this, "led_%c%u", unsigned('a'), 1U)
|
||||
{ }
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(chessmst_sensor);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(reset_button);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(view_monitor_button);
|
||||
|
||||
@ -74,6 +75,7 @@ private:
|
||||
required_device_array<z80pio_device, 2> m_pio;
|
||||
optional_device<speaker_sound_device> m_speaker;
|
||||
optional_device<beep_device> m_beeper;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_ioport m_extra;
|
||||
required_ioport m_buttons;
|
||||
output_finder<4> m_digits;
|
||||
@ -81,7 +83,6 @@ private:
|
||||
|
||||
uint16_t m_matrix;
|
||||
uint16_t m_led_sel;
|
||||
uint8_t m_sensor[64];
|
||||
uint8_t m_digit_matrix;
|
||||
int m_digit_dot;
|
||||
uint16_t m_digit;
|
||||
@ -141,91 +142,8 @@ INPUT_CHANGED_MEMBER(chessmst_state::view_monitor_button)
|
||||
}
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER(chessmst_state::chessmst_sensor)
|
||||
{
|
||||
uint8_t pos = (uint8_t)(uintptr_t)param;
|
||||
|
||||
if (newval)
|
||||
{
|
||||
m_sensor[pos] = !m_sensor[pos];
|
||||
}
|
||||
}
|
||||
|
||||
/* Input ports */
|
||||
static INPUT_PORTS_START( chessmst )
|
||||
PORT_START("COL_A")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 1)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 2)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 3)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 4)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 5)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 6)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 7)
|
||||
PORT_START("COL_B")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 8)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 9)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 10)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 11)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 12)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 13)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 14)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 15)
|
||||
PORT_START("COL_C")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 16)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 17)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 18)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 19)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 20)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 21)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 22)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 23)
|
||||
PORT_START("COL_D")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 24)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 25)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 26)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 27)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 28)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 29)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 30)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 31)
|
||||
PORT_START("COL_E")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 32)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 33)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 34)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 35)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 36)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 37)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 38)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 39)
|
||||
PORT_START("COL_F")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 40)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 41)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 42)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 43)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 44)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 45)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 46)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 47)
|
||||
PORT_START("COL_G")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 48)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 49)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 50)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 51)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 52)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 53)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 54)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 55)
|
||||
PORT_START("COL_H")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 56)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 57)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 58)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 59)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 60)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 61)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 62)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, chessmst_sensor, 63)
|
||||
|
||||
PORT_START("BUTTONS")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Hint [7]") PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_H)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Random [6]") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_R)
|
||||
@ -242,9 +160,7 @@ static INPUT_PORTS_START( chessmst )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( chessmstdm )
|
||||
PORT_INCLUDE(chessmst)
|
||||
|
||||
PORT_MODIFY("BUTTONS")
|
||||
PORT_START("BUTTONS")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Move Fore") PORT_CODE(KEYCODE_RIGHT)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Move Back") PORT_CODE(KEYCODE_LEFT)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Board") PORT_CODE(KEYCODE_B)
|
||||
@ -254,7 +170,7 @@ static INPUT_PORTS_START( chessmstdm )
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Function / Notation") PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER)
|
||||
|
||||
PORT_MODIFY("EXTRA")
|
||||
PORT_START("EXTRA")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Monitor") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, view_monitor_button, 0)
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("View") PORT_CODE(KEYCODE_F2) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, view_monitor_button, 0)
|
||||
INPUT_PORTS_END
|
||||
@ -267,7 +183,6 @@ void chessmst_state::machine_start()
|
||||
|
||||
save_item(NAME(m_matrix));
|
||||
save_item(NAME(m_led_sel));
|
||||
save_item(NAME(m_sensor));
|
||||
save_item(NAME(m_digit_matrix));
|
||||
save_item(NAME(m_digit_dot));
|
||||
save_item(NAME(m_digit));
|
||||
@ -275,12 +190,6 @@ void chessmst_state::machine_start()
|
||||
|
||||
void chessmst_state::machine_reset()
|
||||
{
|
||||
//reset all sensors
|
||||
memset(m_sensor, 1, sizeof(m_sensor));
|
||||
|
||||
//positioning the pieces for start next game
|
||||
for (int i=0; i<64; i+=8)
|
||||
m_sensor[i+0] = m_sensor[i+1] = m_sensor[i+6] = m_sensor[i+7] = 0;
|
||||
}
|
||||
|
||||
void chessmst_state::update_display()
|
||||
@ -348,11 +257,10 @@ READ8_MEMBER( chessmst_state::pio2_port_a_r )
|
||||
// The pieces position on the chessboard is identified by 64 Hall
|
||||
// sensors, which are in a 8x8 matrix with the corresponding LEDs.
|
||||
for (int i=0; i<8; i++)
|
||||
for (int j=0; j<8; j++)
|
||||
{
|
||||
if (m_matrix & (1 << j))
|
||||
data |= (m_sensor[j * 8 + i] ? (1 << i) : 0);
|
||||
}
|
||||
{
|
||||
if (m_matrix & (1 << i))
|
||||
data |= ~m_board->read_file(i);
|
||||
}
|
||||
|
||||
if (m_matrix & 0x100)
|
||||
data |= m_buttons->read();
|
||||
@ -397,6 +305,11 @@ void chessmst_state::chessmst(machine_config &config)
|
||||
|
||||
config.set_default_layout(layout_chessmst);
|
||||
|
||||
SENSORBOARD(config, m_board);
|
||||
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(100));
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.50);
|
||||
@ -421,6 +334,11 @@ void chessmst_state::chessmsta(machine_config &config)
|
||||
|
||||
config.set_default_layout(layout_chessmst);
|
||||
|
||||
SENSORBOARD(config, m_board);
|
||||
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(100));
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.50);
|
||||
@ -446,6 +364,11 @@ void chessmst_state::chessmstdm(machine_config &config)
|
||||
|
||||
config.set_default_layout(layout_chessmstdm);
|
||||
|
||||
SENSORBOARD(config, m_board);
|
||||
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(100));
|
||||
|
||||
clock_device &_555_timer(CLOCK(config, "555_timer", 500)); // from 555 timer
|
||||
_555_timer.signal_handler().set(FUNC(chessmst_state::timer_555_w));
|
||||
|
||||
@ -488,6 +411,6 @@ ROM_END
|
||||
/* Driver */
|
||||
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS
|
||||
COMP( 1984, chessmst, 0, 0, chessmst, chessmst, chessmst_state, empty_init, "VEB Mikroelektronik Erfurt", "Chess-Master (set 1)", MACHINE_NOT_WORKING | MACHINE_CLICKABLE_ARTWORK )
|
||||
COMP( 1984, chessmsta, chessmst, 0, chessmsta, chessmst, chessmst_state, empty_init, "VEB Mikroelektronik Erfurt", "Chess-Master (set 2)", MACHINE_NOT_WORKING | MACHINE_CLICKABLE_ARTWORK )
|
||||
COMP( 1987, chessmstdm, 0, 0, chessmstdm, chessmstdm, chessmst_state, empty_init, "VEB Mikroelektronik Erfurt", "Chess-Master Diamond", MACHINE_NOT_WORKING | MACHINE_CLICKABLE_ARTWORK )
|
||||
COMP( 1984, chessmst, 0, 0, chessmst, chessmst, chessmst_state, empty_init, "VEB Mikroelektronik Erfurt", "Chess-Master (set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
COMP( 1984, chessmsta, chessmst, 0, chessmsta, chessmst, chessmst_state, empty_init, "VEB Mikroelektronik Erfurt", "Chess-Master (set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING | MACHINE_CLICKABLE_ARTWORK )
|
||||
COMP( 1987, chessmstdm, 0, 0, chessmstdm, chessmstdm, chessmst_state, empty_init, "VEB Mikroelektronik Erfurt", "Chess-Master Diamond", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
@ -7,6 +7,10 @@ Saitek RISC 2500, Mephisto Montreux
|
||||
The chess engine is also compatible with Tasc's The ChessMachine software.
|
||||
Was the hardware+software subcontracted to Tasc? It has similarities with Tasc R30.
|
||||
|
||||
notes:
|
||||
- holding LEFT+RIGHT on boot load the QC TestMode
|
||||
- holding UP+DOWN on boot load the TestMode
|
||||
|
||||
TODO:
|
||||
- bootrom disable timer shouldn't be needed, real ARM has already fetched the next opcode
|
||||
- Sound is too short and high pitched, better when you underclock the cpu.
|
||||
@ -21,6 +25,7 @@ TODO:
|
||||
#include "cpu/arm/arm.h"
|
||||
#include "machine/ram.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/sensorboard.h"
|
||||
#include "sound/dac.h"
|
||||
#include "sound/volt_reg.h"
|
||||
#include "emupal.h"
|
||||
@ -39,6 +44,7 @@ public:
|
||||
, m_ram(*this, "ram")
|
||||
, m_nvram(*this, "nvram")
|
||||
, m_dac(*this, "dac")
|
||||
, m_board(*this, "board")
|
||||
, m_inputs(*this, "P%u", 0)
|
||||
, m_digits(*this, "digit%u", 0U)
|
||||
, m_syms(*this, "sym%u", 0U)
|
||||
@ -68,6 +74,7 @@ private:
|
||||
required_device<ram_device> m_ram;
|
||||
required_device<nvram_device> m_nvram;
|
||||
required_device<dac_byte_interface> m_dac;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_ioport_array<8> m_inputs;
|
||||
output_finder<12> m_digits;
|
||||
output_finder<14> m_syms;
|
||||
@ -129,98 +136,34 @@ INPUT_CHANGED_MEMBER(risc2500_state::on_button)
|
||||
|
||||
static INPUT_PORTS_START( risc2500 )
|
||||
PORT_START("P0")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H1
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G1
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F1
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E1
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D1
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C1
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B1
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A1
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("Pawn")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_BACKSPACE) PORT_NAME("BACK")
|
||||
|
||||
PORT_START("P1")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H2
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G2
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F2
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E2
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D2
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C2
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B2
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A2
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Knight")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_ENTER) PORT_NAME("ENTER")
|
||||
|
||||
PORT_START("P2")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H3
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G3
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F3
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E3
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D3
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C3
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B3
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A3
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("Bishop")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_DOWN) PORT_NAME("DOWN")
|
||||
|
||||
PORT_START("P3")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H4
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G4
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F4
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E4
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D4
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C4
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B4
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A4
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Rook")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_UP) PORT_NAME("UP")
|
||||
|
||||
PORT_START("P4")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H5
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G5
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F5
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E5
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D5
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C5
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B5
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A5
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Queen")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_M) PORT_NAME("MENU")
|
||||
|
||||
PORT_START("P5")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H6
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G6
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F6
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E6
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D6
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C6
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B6
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A6
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("King")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_L) PORT_NAME("PLAY")
|
||||
|
||||
PORT_START("P6")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H7
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G7
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F7
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E7
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D7
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C7
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B7
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A7
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_RIGHT) PORT_NAME("RIGHT")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_NAME("NEW GAME")
|
||||
|
||||
PORT_START("P7")
|
||||
PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // H8
|
||||
PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // G8
|
||||
PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // F8
|
||||
PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // E8
|
||||
PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // D8
|
||||
PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // C8
|
||||
PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // B8
|
||||
PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_IMPULSE(10) // A8
|
||||
PORT_BIT(0x40000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_LEFT) PORT_NAME("LEFT")
|
||||
PORT_BIT(0x80000000, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_NAME("OFF")
|
||||
|
||||
@ -236,7 +179,10 @@ READ32_MEMBER(risc2500_state::p1000_r)
|
||||
for(int i=0; i<8; i++)
|
||||
{
|
||||
if (m_p1000 & (1 << i))
|
||||
{
|
||||
data |= m_inputs[i]->read();
|
||||
data |= m_board->read_rank(i, true);
|
||||
}
|
||||
}
|
||||
|
||||
return data;
|
||||
@ -339,6 +285,11 @@ void risc2500_state::risc2500(machine_config &config)
|
||||
|
||||
PALETTE(config, "palette", palette_device::MONOCHROME);
|
||||
|
||||
SENSORBOARD(config, m_board);
|
||||
m_board->set_type(sensorboard_device::BUTTONS);
|
||||
m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess));
|
||||
m_board->set_delay(attotime::from_msec(100));
|
||||
|
||||
RAM(config, m_ram).set_default_size("2M").set_extra_options("128K, 256K, 512K, 1M, 2M");
|
||||
|
||||
NVRAM(config, "nvram", nvram_device::DEFAULT_NONE);
|
||||
|
@ -1,129 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<!-- define elements -->
|
||||
<script>
|
||||
local layout = {}
|
||||
local board
|
||||
local first_sq
|
||||
local enpassant -- en passant possible on next move
|
||||
local enpassant_pos -- position of the piece to be removed
|
||||
|
||||
local port_tags = { ":COL_A", ":COL_B", ":COL_C", ":COL_D", ":COL_E", ":COL_F", ":COL_G", ":COL_H" }
|
||||
local port_values = { }
|
||||
local ports
|
||||
|
||||
local function change_piece_state(pos, new_state)
|
||||
board[pos.y][pos.x] = new_state
|
||||
machine:outputs():set_indexed_value("pos", (pos.y * 10) + pos.x, new_state)
|
||||
end
|
||||
|
||||
local function move_piece(from, to)
|
||||
if board[from.y][from.x] == 0 then
|
||||
return 0
|
||||
end
|
||||
|
||||
-- ignores move on the same position
|
||||
if from.y == to.y and from.x == to.x then
|
||||
change_piece_state(to, board[to.y][to.x])
|
||||
return 1
|
||||
end
|
||||
|
||||
-- if another piece is on the destination position, the first input is used for remove the old piece and the next input is used for move the new piece
|
||||
if board[to.y][to.x] ~= 0 then
|
||||
change_piece_state(to, 0)
|
||||
return 0
|
||||
end
|
||||
|
||||
-- en passant
|
||||
if enpassant and board[to.y][to.x] == 0 and board[from.y][from.x] == 12 and from.y == 4 and to.y == 3 and from.x ~= to.x and board[to.y + 1][to.x] == 6 then
|
||||
enpassant_pos = {x = to.x, y = to.y + 1}
|
||||
elseif enpassant and board[to.y][to.x] == 0 and board[from.y][from.x] == 6 and from.y == 5 and to.y == 6 and from.x ~= to.x and board[to.y - 1][to.x] == 12 then
|
||||
enpassant_pos = {x = to.x, y = to.y - 1}
|
||||
end
|
||||
if board[to.y][to.x] == 0 and from.x == to.x and ((board[from.y][from.x] == 6 and from.y == 2 and to.y == 4) or
|
||||
(board[from.y][from.x] == 12 and from.y == 7 and to.y == 5)) then
|
||||
enpassant = true
|
||||
else
|
||||
enpassant = false
|
||||
end
|
||||
|
||||
-- promotion
|
||||
if (to.y == 8 and board[from.y][from.x] == 6) or (to.y == 1 and board[from.y][from.x] == 12) then
|
||||
change_piece_state(to, board[from.y][from.x] - 4) -- TODO: make this configurable
|
||||
else
|
||||
change_piece_state(to, board[from.y][from.x])
|
||||
end
|
||||
|
||||
change_piece_state(from, 0)
|
||||
return 1
|
||||
end
|
||||
|
||||
function layout.reset()
|
||||
board =
|
||||
{{ 3, 5, 4, 2, 1, 4, 5, 3 },
|
||||
{ 6, 6, 6, 6, 6, 6, 6, 6 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 12,12,12,12,12,12,12,12 },
|
||||
{ 9,11,10, 8, 7,10,11, 9 }}
|
||||
|
||||
for y, row in ipairs(board) do
|
||||
for x, cell in ipairs(row) do
|
||||
change_piece_state({x = x, y = y}, board[y][x])
|
||||
end
|
||||
end
|
||||
ports = machine:ioport().ports
|
||||
first_sq = nil
|
||||
enpassant = false
|
||||
enpassant_pos = nil
|
||||
end
|
||||
|
||||
function layout.frame()
|
||||
local value = ports[":EXTRA"]:read()
|
||||
if value & 0x02 == 0x02 then
|
||||
layout.reset()
|
||||
return
|
||||
end
|
||||
|
||||
for x, tag in ipairs(port_tags) do
|
||||
local port = ports[tag]
|
||||
if not port then
|
||||
return
|
||||
end
|
||||
local newvalue = port:read()
|
||||
if port_values[x] ~= newvalue then
|
||||
port_values[x] = newvalue
|
||||
for y = 8, 1, -1 do
|
||||
if newvalue & 1 == 0 then
|
||||
if enpassant_pos and enpassant_pos.x == x and enpassant_pos.y == y then
|
||||
change_piece_state(enpassant_pos, 0)
|
||||
enpassant = false
|
||||
enpassant_pos = nil
|
||||
return
|
||||
end
|
||||
|
||||
if not first_sq then
|
||||
if board[y][x] ~= 0 then
|
||||
first_sq = {x = x, y = y}
|
||||
machine:outputs():set_indexed_value("pos", (y * 10) + x, board[y][x] | 0x10)
|
||||
end
|
||||
else
|
||||
if move_piece(first_sq, {x = x, y = y}) == 1 then
|
||||
first_sq = nil
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
newvalue = newvalue >> 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return layout, "chessmst"
|
||||
</script>
|
||||
|
||||
<element name="led" defstate="1">
|
||||
<disk state="0">
|
||||
@ -133,16 +10,6 @@
|
||||
<color red="0.20" green="0.0" blue="0.0" />
|
||||
</disk>
|
||||
</element>
|
||||
<element name="hl" defstate="0">
|
||||
<text string=" ">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
</text>
|
||||
<disk state="1">
|
||||
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</disk>
|
||||
</element>
|
||||
<element name="hlb" defstate="0">
|
||||
<disk state="0">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
@ -154,9 +21,6 @@
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="black"><rect><color red="0.64" green="0.08" blue="0.11" /></rect></element>
|
||||
<element name="white"><rect><color red="1.00" green="0.88" blue="0.55" /></rect></element>
|
||||
|
||||
<element name="text_1"> <rect><color red="0.64" green="0.08" blue="0.11" /></rect> <text string="1"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_2"> <rect><color red="0.64" green="0.08" blue="0.11" /></rect> <text string="2"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_3"> <rect><color red="0.64" green="0.08" blue="0.11" /></rect> <text string="3"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
@ -183,434 +47,428 @@
|
||||
<element name="text_b6"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="6"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_b7"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="7"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_b8"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="8"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_chessmaster"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CHESS-MASTER" align="1"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_newgame"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="NEW GAME" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_level"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="LEVEL" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_color"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="COLOR" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_board"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="BOARD" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_selfplay"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="SELF PLAY" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_referee"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="REFEREE" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_random"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="RANDOM" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_hint"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="HINT" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_chessmaster"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CHESS-MASTER" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_newgame"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="NEW GAME" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_level"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="LEVEL" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_color"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="COLOR" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_board"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="BOARD" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_selfplay"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="SELF PLAY" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_referee"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="REFEREE" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_random"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="RANDOM" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_hint"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="HINT" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_white"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="WHITE" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_black"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="BLACK" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_king" > <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="[K]" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_queen" > <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="[Q]" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_rook" > <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="[R]" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_bishop" > <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="[B]" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_knight" > <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="[N]" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_pawn" > <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="[P]" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_change"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CHANGE" align="1"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_halt"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="HALT" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_reset"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="RESET" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_check"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CHECK" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_your"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="YOUR" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_cms"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CM'S" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_king" > <image file="chess/bk.png"/></element>
|
||||
<element name="text_queen" > <image file="chess/bq.png"/></element>
|
||||
<element name="text_rook" > <image file="chess/br.png"/></element>
|
||||
<element name="text_bishop" > <image file="chess/bb.png"/></element>
|
||||
<element name="text_knight" > <image file="chess/bn.png"/></element>
|
||||
<element name="text_pawn" > <image file="chess/bp.png"/></element>
|
||||
<element name="text_change"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CHANGE" align="2"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_board1"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="BOARD" align="1"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_halt"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="HALT" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_reset"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="RESET" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_check"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CHECK" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_your"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="YOUR" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_cms"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="CM'S" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
|
||||
<element name="piece" defstate="0">
|
||||
<text string="[K]" state="1"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[Q]" state="2"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[R]" state="3"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[B]" state="4"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[N]" state="5"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[P]" state="6"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<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"/>
|
||||
|
||||
<text string="[K]" state="7"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[Q]" state="8"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[R]" state="9"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[B]" state="10"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[N]" state="11"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[P]" state="12"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<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 -->
|
||||
<disk state="17"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="18"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="19"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="20"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="21"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="22"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="23"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="24"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="25"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="26"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="27"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="28"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<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>
|
||||
|
||||
<text string="[K]" state="17"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[Q]" state="18"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[R]" state="19"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[B]" state="20"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[N]" state="21"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[P]" state="22"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
|
||||
<text string="[K]" state="23"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[Q]" state="24"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[R]" state="25"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[B]" state="26"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[N]" state="27"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[P]" state="28"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<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>
|
||||
|
||||
|
||||
<!-- sb board -->
|
||||
|
||||
<element name="cblack"><rect><color red="0.64" green="0.08" blue="0.11" /></rect></element>
|
||||
<element name="cwhite"><rect><color red="1.00" green="0.88" blue="0.55" /></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>
|
||||
|
||||
<group name="sb_board">
|
||||
<bounds x="0" y="0" width="81" height="81" />
|
||||
<bezel element="cwhite"><bounds x="0" y="0" width="0.5" height="81" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="80.5" y="0" width="0.5" height="81" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="0" y="0" width="81" height="0.5" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="0" y="80.5" width="81" height="0.5" /></bezel>
|
||||
|
||||
<!-- squares (avoid seams) -->
|
||||
<bezel element="cwhite"><bounds x="0.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="0.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="10.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="20.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="30.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="40.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="50.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="60.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="70.5" width="10" height="10" /></bezel>
|
||||
|
||||
<!-- sensors, pieces -->
|
||||
<repeat count="8">
|
||||
<param name="y" start="0.5" increment="10" />
|
||||
<param name="i" start="8" increment="-1" />
|
||||
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x01"><bounds x="0.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
|
||||
<bezel name="piece_a~i~" element="piece"><bounds x="1" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_b~i~" element="piece"><bounds x="11" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_c~i~" element="piece"><bounds x="21" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_d~i~" element="piece"><bounds x="31" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_e~i~" element="piece"><bounds x="41" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_f~i~" element="piece"><bounds x="51" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_g~i~" element="piece"><bounds x="61" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_h~i~" element="piece"><bounds x="71" y="~y~" width="9" height="9" /></bezel>
|
||||
</repeat>
|
||||
|
||||
<!-- LEDs -->
|
||||
<repeat count="8">
|
||||
<param name="y" start="8.4" increment="10" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
|
||||
<bezel name="led_a~i~" element="led"><bounds x="1" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b~i~" element="led"><bounds x="11" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c~i~" element="led"><bounds x="21" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d~i~" element="led"><bounds x="31" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e~i~" element="led"><bounds x="41" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f~i~" element="led"><bounds x="51" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g~i~" element="led"><bounds x="61" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h~i~" element="led"><bounds x="71" y="~y~" width="1.5" height="1.5" /></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="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uib3">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></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="1.00" green="0.88" blue="0.55" /></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="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2b">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2c">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2d">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></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="-2" right="117.5" top="-2" bottom="88" />
|
||||
<bounds left="0" right="130" top="0" bottom="90" />
|
||||
|
||||
<bezel element="black"><bounds x="-2.5" y="-2" width="120" height="90.5" /></bezel>
|
||||
<bezel element="white"><bounds x="89" y="-2" width="30" height="90.5" /></bezel>
|
||||
<bezel element="cblack"><bounds x="13" y="0" width="120" height="90.5" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="102" y="0" width="30" height="90.5" /></bezel>
|
||||
|
||||
<!-- chessboard coords -->
|
||||
|
||||
<bezel element="text_8"><bounds x="-0.8" y="7" width="2" height="2" /></bezel>
|
||||
<bezel element="text_7"><bounds x="-0.8" y="17" width="2" height="2" /></bezel>
|
||||
<bezel element="text_6"><bounds x="-0.8" y="27" width="2" height="2" /></bezel>
|
||||
<bezel element="text_5"><bounds x="-0.8" y="37" width="2" height="2" /></bezel>
|
||||
<bezel element="text_4"><bounds x="-0.8" y="47" width="2" height="2" /></bezel>
|
||||
<bezel element="text_3"><bounds x="-0.8" y="57" width="2" height="2" /></bezel>
|
||||
<bezel element="text_2"><bounds x="-0.8" y="67" width="2" height="2" /></bezel>
|
||||
<bezel element="text_1"><bounds x="-0.8" y="77" width="2" height="2" /></bezel>
|
||||
<bezel element="text_8"><bounds x="14.3" y="8" width="2" height="2" /></bezel>
|
||||
<bezel element="text_7"><bounds x="14.3" y="18" width="2" height="2" /></bezel>
|
||||
<bezel element="text_6"><bounds x="14.3" y="28" width="2" height="2" /></bezel>
|
||||
<bezel element="text_5"><bounds x="14.3" y="38" width="2" height="2" /></bezel>
|
||||
<bezel element="text_4"><bounds x="14.3" y="48" width="2" height="2" /></bezel>
|
||||
<bezel element="text_3"><bounds x="14.3" y="58" width="2" height="2" /></bezel>
|
||||
<bezel element="text_2"><bounds x="14.3" y="68" width="2" height="2" /></bezel>
|
||||
<bezel element="text_1"><bounds x="14.3" y="78" width="2" height="2" /></bezel>
|
||||
|
||||
<bezel element="text_a"><bounds x="7" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b"><bounds x="17" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_c"><bounds x="27" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_d"><bounds x="37" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_e"><bounds x="47" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_f"><bounds x="57" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_g"><bounds x="67" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_h"><bounds x="77" y="85" width="2" height="2" /></bezel>
|
||||
|
||||
<!-- chessboard bezel -->
|
||||
|
||||
<bezel element="white"><bounds x="2" y="2" width="82" height="82" /></bezel>
|
||||
<bezel element="white"><bounds x="3" y="3" width="80" height="80" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="2.5" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="2.5" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="2.5" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="2.5" width="10.5" height="10.5" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="13" width="10.5" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="13" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="23" width="10.5" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="33" width="10.5" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="33" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="43" width="10.5" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="53" width="10.5" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="53" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="63" width="10.5" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="73" width="10.5" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="73" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="73" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="73" width="10" height="10.5" /></bezel>
|
||||
|
||||
<bezel name="pos11" element="piece"><bounds x="3" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos12" element="piece"><bounds x="13" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos13" element="piece"><bounds x="23" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos14" element="piece"><bounds x="33" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos15" element="piece"><bounds x="43" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos16" element="piece"><bounds x="53" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos17" element="piece"><bounds x="63" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos18" element="piece"><bounds x="73" y="3" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos21" element="piece"><bounds x="3" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos22" element="piece"><bounds x="13" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos23" element="piece"><bounds x="23" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos24" element="piece"><bounds x="33" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos25" element="piece"><bounds x="43" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos26" element="piece"><bounds x="53" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos27" element="piece"><bounds x="63" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos28" element="piece"><bounds x="73" y="13" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos31" element="piece"><bounds x="3" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos32" element="piece"><bounds x="13" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos33" element="piece"><bounds x="23" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos34" element="piece"><bounds x="33" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos35" element="piece"><bounds x="43" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos36" element="piece"><bounds x="53" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos37" element="piece"><bounds x="63" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos38" element="piece"><bounds x="73" y="23" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos41" element="piece"><bounds x="3" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos42" element="piece"><bounds x="13" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos43" element="piece"><bounds x="23" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos44" element="piece"><bounds x="33" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos45" element="piece"><bounds x="43" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos46" element="piece"><bounds x="53" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos47" element="piece"><bounds x="63" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos48" element="piece"><bounds x="73" y="33" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos51" element="piece"><bounds x="3" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos52" element="piece"><bounds x="13" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos53" element="piece"><bounds x="23" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos54" element="piece"><bounds x="33" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos55" element="piece"><bounds x="43" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos56" element="piece"><bounds x="53" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos57" element="piece"><bounds x="63" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos58" element="piece"><bounds x="73" y="43" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos61" element="piece"><bounds x="3" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos62" element="piece"><bounds x="13" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos63" element="piece"><bounds x="23" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos64" element="piece"><bounds x="33" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos65" element="piece"><bounds x="43" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos66" element="piece"><bounds x="53" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos67" element="piece"><bounds x="63" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos68" element="piece"><bounds x="73" y="53" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos71" element="piece"><bounds x="3" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos72" element="piece"><bounds x="13" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos73" element="piece"><bounds x="23" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos74" element="piece"><bounds x="33" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos75" element="piece"><bounds x="43" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos76" element="piece"><bounds x="53" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos77" element="piece"><bounds x="63" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos78" element="piece"><bounds x="73" y="63" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos81" element="piece"><bounds x="3" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos82" element="piece"><bounds x="13" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos83" element="piece"><bounds x="23" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos84" element="piece"><bounds x="33" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos85" element="piece"><bounds x="43" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos86" element="piece"><bounds x="53" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos87" element="piece"><bounds x="63" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos88" element="piece"><bounds x="73" y="73" width="10" height="10" /></bezel>
|
||||
|
||||
<!-- chessboard leds -->
|
||||
|
||||
<bezel name="led_a1" element="led"><bounds x="3.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b1" element="led"><bounds x="13.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c1" element="led"><bounds x="23.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d1" element="led"><bounds x="33.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e1" element="led"><bounds x="43.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f1" element="led"><bounds x="53.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g1" element="led"><bounds x="63.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h1" element="led"><bounds x="73.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a2" element="led"><bounds x="3.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b2" element="led"><bounds x="13.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c2" element="led"><bounds x="23.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d2" element="led"><bounds x="33.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e2" element="led"><bounds x="43.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f2" element="led"><bounds x="53.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g2" element="led"><bounds x="63.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h2" element="led"><bounds x="73.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a3" element="led"><bounds x="3.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b3" element="led"><bounds x="13.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c3" element="led"><bounds x="23.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d3" element="led"><bounds x="33.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e3" element="led"><bounds x="43.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f3" element="led"><bounds x="53.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g3" element="led"><bounds x="63.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h3" element="led"><bounds x="73.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a4" element="led"><bounds x="3.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b4" element="led"><bounds x="13.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c4" element="led"><bounds x="23.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d4" element="led"><bounds x="33.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e4" element="led"><bounds x="43.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f4" element="led"><bounds x="53.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g4" element="led"><bounds x="63.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h4" element="led"><bounds x="73.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a5" element="led"><bounds x="3.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b5" element="led"><bounds x="13.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c5" element="led"><bounds x="23.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d5" element="led"><bounds x="33.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e5" element="led"><bounds x="43.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f5" element="led"><bounds x="53.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g5" element="led"><bounds x="63.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h5" element="led"><bounds x="73.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a6" element="led"><bounds x="3.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b6" element="led"><bounds x="13.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c6" element="led"><bounds x="23.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d6" element="led"><bounds x="33.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e6" element="led"><bounds x="43.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f6" element="led"><bounds x="53.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g6" element="led"><bounds x="63.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h6" element="led"><bounds x="73.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a7" element="led"><bounds x="3.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b7" element="led"><bounds x="13.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c7" element="led"><bounds x="23.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d7" element="led"><bounds x="33.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e7" element="led"><bounds x="43.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f7" element="led"><bounds x="53.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g7" element="led"><bounds x="63.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h7" element="led"><bounds x="73.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a8" element="led"><bounds x="3.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b8" element="led"><bounds x="13.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c8" element="led"><bounds x="23.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d8" element="led"><bounds x="33.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e8" element="led"><bounds x="43.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f8" element="led"><bounds x="53.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g8" element="led"><bounds x="63.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h8" element="led"><bounds x="73.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<!-- chessboard sensors -->
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x80"><bounds x="3" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x80"><bounds x="13" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x80"><bounds x="23" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x80"><bounds x="33" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x80"><bounds x="43" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x80"><bounds x="53" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x80"><bounds x="63" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x80"><bounds x="73" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x40"><bounds x="3" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x40"><bounds x="13" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x40"><bounds x="23" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x40"><bounds x="33" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x40"><bounds x="43" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x40"><bounds x="53" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x40"><bounds x="63" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x40"><bounds x="73" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x20"><bounds x="3" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x20"><bounds x="13" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x20"><bounds x="23" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x20"><bounds x="33" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x20"><bounds x="43" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x20"><bounds x="53" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x20"><bounds x="63" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x20"><bounds x="73" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x10"><bounds x="3" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x10"><bounds x="13" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x10"><bounds x="23" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x10"><bounds x="33" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x10"><bounds x="43" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x10"><bounds x="53" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x10"><bounds x="63" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x10"><bounds x="73" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x08"><bounds x="3" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x08"><bounds x="13" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x08"><bounds x="23" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x08"><bounds x="33" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x08"><bounds x="43" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x08"><bounds x="53" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x08"><bounds x="63" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x08"><bounds x="73" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x04"><bounds x="3" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x04"><bounds x="13" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x04"><bounds x="23" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x04"><bounds x="33" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x04"><bounds x="43" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x04"><bounds x="53" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x04"><bounds x="63" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x04"><bounds x="73" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x02"><bounds x="3" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x02"><bounds x="13" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x02"><bounds x="23" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x02"><bounds x="33" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x02"><bounds x="43" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x02"><bounds x="53" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x02"><bounds x="63" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x02"><bounds x="73" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x01"><bounds x="3" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x01"><bounds x="13" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x01"><bounds x="23" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x01"><bounds x="33" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x01"><bounds x="43" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x01"><bounds x="53" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x01"><bounds x="63" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x01"><bounds x="73" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="text_a"><bounds x="21.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b"><bounds x="31.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_c"><bounds x="41.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_d"><bounds x="51.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_e"><bounds x="61.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_f"><bounds x="71.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_g"><bounds x="81.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_h"><bounds x="91.5" y="86" width="2" height="2" /></bezel>
|
||||
|
||||
<!-- right side -->
|
||||
|
||||
<bezel element="text_chessmaster"><bounds x="94" y="0" width="24" height="3" /></bezel>
|
||||
<bezel element="text_newgame"> <bounds x="98" y="16" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_level"> <bounds x="98" y="23" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_color"> <bounds x="98" y="30" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_board"> <bounds x="98" y="37" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_selfplay"><bounds x="98" y="44" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_referee"> <bounds x="98" y="51" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_random"> <bounds x="98" y="58" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_hint"> <bounds x="98" y="65" width="18" height="1.8" /></bezel>
|
||||
<bezel element="text_reset"> <bounds x="92.5" y="82" width="10" height="2" /></bezel>
|
||||
<bezel element="text_halt"> <bounds x="107.5" y="82" width="8" height="2" /></bezel>
|
||||
<bezel element="text_chessmaster"><bounds x="105.5" y="2" width="22" height="3" /></bezel>
|
||||
<bezel element="text_newgame"> <bounds x="114" y="18" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_level"> <bounds x="114" y="25" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_color"> <bounds x="114" y="32" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_board"> <bounds x="114" y="39" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_selfplay"><bounds x="114" y="46" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_referee"> <bounds x="114" y="53" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_random"> <bounds x="114" y="60" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_hint"> <bounds x="114" y="67" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_reset"> <bounds x="105" y="84" width="10" height="2" /></bezel>
|
||||
<bezel element="text_halt"> <bounds x="120" y="84" width="8" height="2" /></bezel>
|
||||
|
||||
<bezel element="text_pawn"> <bounds x="95" y="18.5" width="4" height="2.6" /></bezel>
|
||||
<bezel element="text_knight"> <bounds x="95" y="25.5" width="4" height="2.6" /></bezel>
|
||||
<bezel element="text_bishop"> <bounds x="95" y="32.5" width="4" height="2.6" /></bezel>
|
||||
<bezel element="text_rook"> <bounds x="95" y="39.5" width="4" height="2.6" /></bezel>
|
||||
<bezel element="text_queen"> <bounds x="95" y="46.5" width="4" height="2.6" /></bezel>
|
||||
<bezel element="text_king"> <bounds x="95" y="53.5" width="4" height="2.6" /></bezel>
|
||||
<bezel element="text_white"> <bounds x="90" y="61" width="9" height="1.8" /></bezel>
|
||||
<bezel element="text_black"> <bounds x="90" y="68" width="9" height="1.8" /></bezel>
|
||||
<bezel element="text_pawn"> <bounds x="108" y="20" width="4" height="3.6" /></bezel>
|
||||
<bezel element="text_knight"> <bounds x="108" y="27" width="4" height="3.6" /></bezel>
|
||||
<bezel element="text_bishop"> <bounds x="108" y="34" width="4" height="3.6" /></bezel>
|
||||
<bezel element="text_rook"> <bounds x="108" y="41" width="4" height="3.6" /></bezel>
|
||||
<bezel element="text_queen"> <bounds x="108" y="48" width="4" height="3.6" /></bezel>
|
||||
<bezel element="text_king"> <bounds x="108" y="55" width="4" height="3.6" /></bezel>
|
||||
<bezel element="text_white"> <bounds x="106" y="63" width="6" height="1.8" /></bezel>
|
||||
<bezel element="text_black"> <bounds x="106" y="70" width="6" height="1.8" /></bezel>
|
||||
|
||||
<bezel element="text_check"> <bounds x="91" y="6" width="10" height="1.8" /></bezel>
|
||||
<bezel element="text_your"> <bounds x="99" y="6" width="6" height="1.8" /></bezel>
|
||||
<bezel element="text_cms"> <bounds x="104" y="6" width="8" height="1.8" /></bezel>
|
||||
<bezel element="text_change"> <bounds x="95.3" y="73" width="12" height="1.8" /></bezel>
|
||||
<bezel element="text_board"> <bounds x="103" y="73" width="10" height="1.8" /></bezel>
|
||||
<bezel element="text_check"> <bounds x="106" y="8" width="6" height="1.8" /></bezel>
|
||||
<bezel element="text_your"> <bounds x="112" y="8" width="6" height="1.8" /></bezel>
|
||||
<bezel element="text_cms"> <bounds x="118" y="8" width="6" height="1.8" /></bezel>
|
||||
|
||||
<bezel element="text_b1"><bounds x="111" y="19" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b2"><bounds x="111" y="26" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b3"><bounds x="111" y="33" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b4"><bounds x="111" y="40" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b5"><bounds x="111" y="47" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b6"><bounds x="111" y="54" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b7"><bounds x="111" y="62" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b8"><bounds x="111" y="69" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_change"> <bounds x="107" y="75" width="8" height="1.8" /></bezel>
|
||||
<bezel element="text_board1"> <bounds x="118" y="75" width="8" height="1.8" /></bezel>
|
||||
|
||||
<bezel name="led_i1" element="led"> <bounds x="100" y="19" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i2" element="led"> <bounds x="100" y="26" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i3" element="led"> <bounds x="100" y="33" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i4" element="led"> <bounds x="100" y="40" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i5" element="led"> <bounds x="100" y="47" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i6" element="led"> <bounds x="100" y="54" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i7" element="led"> <bounds x="100" y="61" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i8" element="led"> <bounds x="100" y="68" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b1"><bounds x="124" y="21" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b2"><bounds x="124" y="28" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b3"><bounds x="124" y="35" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b4"><bounds x="124" y="42" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b5"><bounds x="124" y="49" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b6"><bounds x="124" y="56" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b7"><bounds x="124" y="64" width="2" height="1.8" /></bezel>
|
||||
<bezel element="text_b8"><bounds x="124" y="71" width="2" height="1.8" /></bezel>
|
||||
|
||||
<bezel name="led_j7" element="led"> <bounds x="95" y="8" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j5" element="led"> <bounds x="101" y="8" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j6" element="led"> <bounds x="107" y="8" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i1" element="led"> <bounds x="113" y="21" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i2" element="led"> <bounds x="113" y="28" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i3" element="led"> <bounds x="113" y="35" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i4" element="led"> <bounds x="113" y="42" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i5" element="led"> <bounds x="113" y="49" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i6" element="led"> <bounds x="113" y="56" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i7" element="led"> <bounds x="113" y="63" width="2" height="2" /></bezel>
|
||||
<bezel name="led_i8" element="led"> <bounds x="113" y="70" width="2" height="2" /></bezel>
|
||||
|
||||
<bezel name="led_j2" element="led"> <bounds x="95" y="12" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j3" element="led"> <bounds x="101" y="12" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j4" element="led"> <bounds x="107" y="12" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j7" element="led"> <bounds x="108" y="10" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j5" element="led"> <bounds x="114" y="10" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j6" element="led"> <bounds x="120" y="10" width="2" height="2" /></bezel>
|
||||
|
||||
<bezel name="led_j8" element="led"> <bounds x="102.5" y="73" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j2" element="led"> <bounds x="108" y="14" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j3" element="led"> <bounds x="114" y="14" width="2" height="2" /></bezel>
|
||||
<bezel name="led_j4" element="led"> <bounds x="120" y="14" width="2" height="2" /></bezel>
|
||||
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x80"><bounds x="105" y="18" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x40"><bounds x="105" y="25" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x20"><bounds x="105" y="32" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x10"><bounds x="105" y="39" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x08"><bounds x="105" y="46" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x04"><bounds x="105" y="53" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x02"><bounds x="105" y="60" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x01"><bounds x="105" y="67" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x02"><bounds x="95" y="77" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x01"><bounds x="109" y="77" width="4" height="4" /></bezel>
|
||||
<bezel name="led_j8" element="led"> <bounds x="115.5" y="75" width="2" height="2" /></bezel>
|
||||
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x80"><bounds x="118" y="20" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x40"><bounds x="118" y="27" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x20"><bounds x="118" y="34" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x10"><bounds x="118" y="41" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x08"><bounds x="118" y="48" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x04"><bounds x="118" y="55" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x02"><bounds x="118" y="62" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x01"><bounds x="118" y="69" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x02"><bounds x="108" y="79" width="4" height="4" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x01"><bounds x="122" y="79" width="4" height="4" /></bezel>
|
||||
|
||||
<group ref="sb_board"><bounds x="17" y="4" width="81" height="81" /></group>
|
||||
<group ref="sb_ui"><bounds x="1.5" y="4" width="10" height="80" /></group>
|
||||
</view>
|
||||
</mamelayout>
|
||||
|
@ -1,130 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<!-- define elements -->
|
||||
<script>
|
||||
local layout = {}
|
||||
local board
|
||||
local first_sq
|
||||
local enpassant -- en passant possible on next move
|
||||
local enpassant_pos -- position of the piece to be removed
|
||||
|
||||
local port_tags = { ":COL_A", ":COL_B", ":COL_C", ":COL_D", ":COL_E", ":COL_F", ":COL_G", ":COL_H" }
|
||||
local port_values = { }
|
||||
local ports
|
||||
|
||||
local function change_piece_state(pos, new_state)
|
||||
board[pos.y][pos.x] = new_state
|
||||
machine:outputs():set_indexed_value("pos", (pos.y * 10) + pos.x, new_state)
|
||||
end
|
||||
|
||||
local function move_piece(from, to)
|
||||
if board[from.y][from.x] == 0 then
|
||||
return 0
|
||||
end
|
||||
|
||||
-- ignores move on the same position
|
||||
if from.y == to.y and from.x == to.x then
|
||||
change_piece_state(to, board[to.y][to.x])
|
||||
return 1
|
||||
end
|
||||
|
||||
-- if another piece is on the destination position, the first input is used for remove the old piece and the next input is used for move the new piece
|
||||
if board[to.y][to.x] ~= 0 then
|
||||
change_piece_state(to, 0)
|
||||
return 0
|
||||
end
|
||||
|
||||
-- en passant
|
||||
if enpassant and board[to.y][to.x] == 0 and board[from.y][from.x] == 12 and from.y == 4 and to.y == 3 and from.x ~= to.x and board[to.y + 1][to.x] == 6 then
|
||||
enpassant_pos = {x = to.x, y = to.y + 1}
|
||||
elseif enpassant and board[to.y][to.x] == 0 and board[from.y][from.x] == 6 and from.y == 5 and to.y == 6 and from.x ~= to.x and board[to.y - 1][to.x] == 12 then
|
||||
enpassant_pos = {x = to.x, y = to.y - 1}
|
||||
end
|
||||
if board[to.y][to.x] == 0 and from.x == to.x and ((board[from.y][from.x] == 6 and from.y == 2 and to.y == 4) or
|
||||
(board[from.y][from.x] == 12 and from.y == 7 and to.y == 5)) then
|
||||
enpassant = true
|
||||
else
|
||||
enpassant = false
|
||||
end
|
||||
|
||||
-- promotion
|
||||
if (to.y == 8 and board[from.y][from.x] == 6) or (to.y == 1 and board[from.y][from.x] == 12) then
|
||||
change_piece_state(to, board[from.y][from.x] - 4) -- TODO: make this configurable
|
||||
else
|
||||
change_piece_state(to, board[from.y][from.x])
|
||||
end
|
||||
|
||||
change_piece_state(from, 0)
|
||||
return 1
|
||||
end
|
||||
|
||||
function layout.reset()
|
||||
board =
|
||||
{{ 3, 5, 4, 2, 1, 4, 5, 3 },
|
||||
{ 6, 6, 6, 6, 6, 6, 6, 6 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 12,12,12,12,12,12,12,12 },
|
||||
{ 9,11,10, 8, 7,10,11, 9 }}
|
||||
|
||||
for y, row in ipairs(board) do
|
||||
for x, cell in ipairs(row) do
|
||||
change_piece_state({x = x, y = y}, board[y][x])
|
||||
end
|
||||
end
|
||||
ports = machine:ioport().ports
|
||||
first_sq = nil
|
||||
enpassant = false
|
||||
enpassant_pos = nil
|
||||
end
|
||||
|
||||
function layout.frame()
|
||||
local value = ports[":EXTRA"]:read()
|
||||
if value & 0x03 == 0x03 then
|
||||
layout.reset()
|
||||
return
|
||||
end
|
||||
|
||||
for x, tag in ipairs(port_tags) do
|
||||
local port = ports[tag]
|
||||
if not port then
|
||||
return
|
||||
end
|
||||
local newvalue = port:read()
|
||||
if port_values[x] ~= newvalue then
|
||||
port_values[x] = newvalue
|
||||
for y = 8, 1, -1 do
|
||||
if newvalue & 1 == 0 then
|
||||
if enpassant_pos and enpassant_pos.x == x and enpassant_pos.y == y then
|
||||
change_piece_state(enpassant_pos, 0)
|
||||
enpassant = false
|
||||
enpassant_pos = nil
|
||||
return
|
||||
end
|
||||
|
||||
if not first_sq then
|
||||
if board[y][x] ~= 0 then
|
||||
first_sq = {x = x, y = y}
|
||||
machine:outputs():set_indexed_value("pos", (y * 10) + x, board[y][x] | 0x10)
|
||||
end
|
||||
else
|
||||
if move_piece(first_sq, {x = x, y = y}) == 1 then
|
||||
first_sq = nil
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
newvalue = newvalue >> 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return layout, "chessmstdm"
|
||||
</script>
|
||||
|
||||
<element name="black_rect">
|
||||
<rect>
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
@ -143,16 +19,6 @@
|
||||
<color red="0.20" green="0.0" blue="0.0" />
|
||||
</disk>
|
||||
</element>
|
||||
<element name="hl" defstate="0">
|
||||
<text string=" ">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
</text>
|
||||
<disk state="1">
|
||||
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</disk>
|
||||
</element>
|
||||
<element name="hlb" defstate="0">
|
||||
<disk state="0">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
@ -164,9 +30,6 @@
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="black"><rect><color red="0.44" green="0.08" blue="0.01" /></rect></element>
|
||||
<element name="white"><rect><color red="1.00" green="0.88" blue="0.55" /></rect></element>
|
||||
|
||||
<element name="text_1"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="1"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_2"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="2"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_3"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="3"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
@ -201,389 +64,383 @@
|
||||
<element name="text_time"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="TIME" align="1"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_enter"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="ENTER" align="1"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_playmode"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="PLAYMODE" align="1"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_move_fore"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="MOVE FORE" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_move_back"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="MOVE BACK" align="0"><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_move_fore"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="MOVE FORE" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_move_back"> <rect><color red="1.00" green="0.88" blue="0.55" /></rect> <text string="MOVE BACK" ><color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
|
||||
|
||||
<element name="piece" defstate="0">
|
||||
<text string="[K]" state="1"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[Q]" state="2"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[R]" state="3"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[B]" state="4"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[N]" state="5"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[P]" state="6"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<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"/>
|
||||
|
||||
<text string="[K]" state="7"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[Q]" state="8"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[R]" state="9"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[B]" state="10"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[N]" state="11"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[P]" state="12"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<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 -->
|
||||
<disk state="17"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="18"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="19"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="20"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="21"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="22"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="23"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="24"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="25"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="26"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="27"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<disk state="28"> <color red="1.00" green="0.25" blue="1.00" /> </disk>
|
||||
<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>
|
||||
|
||||
<text string="[K]" state="17"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[Q]" state="18"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[R]" state="19"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[B]" state="20"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[N]" state="21"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
<text string="[P]" state="22"><color red="0.27" green="0.25" blue="0.25" /></text>
|
||||
|
||||
<text string="[K]" state="23"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[Q]" state="24"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[R]" state="25"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[B]" state="26"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[N]" state="27"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<text string="[P]" state="28"><color red="0.71" green="0.7" blue="0.69" /></text>
|
||||
<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>
|
||||
|
||||
|
||||
<!-- sb board -->
|
||||
|
||||
<element name="cblack"><rect><color red="0.44" green="0.08" blue="0.01" /></rect></element>
|
||||
<element name="cwhite"><rect><color red="1.00" green="0.88" blue="0.55" /></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>
|
||||
|
||||
<group name="sb_board">
|
||||
<bounds x="0" y="0" width="81" height="81" />
|
||||
<bezel element="cblack"><bounds x="0" y="0" width="0.5" height="81" /></bezel>
|
||||
<bezel element="cblack"><bounds x="80.5" y="0" width="0.5" height="81" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="0" width="81" height="0.5" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="80.5" width="81" height="0.5" /></bezel>
|
||||
|
||||
<!-- squares (avoid seams) -->
|
||||
<bezel element="cwhite"><bounds x="0.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="0.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="0.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="10.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="10.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="20.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="20.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="30.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="30.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="40.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="40.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="50.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="50.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cwhite"><bounds x="0.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60.5" y="60.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70.5" y="60.5" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="cblack"><bounds x="0.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60.5" y="70.5" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70.5" y="70.5" width="10" height="10" /></bezel>
|
||||
|
||||
<!-- sensors, pieces -->
|
||||
<repeat count="8">
|
||||
<param name="y" start="0.5" increment="10" />
|
||||
<param name="i" start="8" increment="-1" />
|
||||
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x01"><bounds x="0.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70.5" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
|
||||
<bezel name="piece_a~i~" element="piece"><bounds x="1" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_b~i~" element="piece"><bounds x="11" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_c~i~" element="piece"><bounds x="21" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_d~i~" element="piece"><bounds x="31" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_e~i~" element="piece"><bounds x="41" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_f~i~" element="piece"><bounds x="51" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_g~i~" element="piece"><bounds x="61" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_h~i~" element="piece"><bounds x="71" y="~y~" width="9" height="9" /></bezel>
|
||||
</repeat>
|
||||
|
||||
<!-- LEDs -->
|
||||
<repeat count="8">
|
||||
<param name="y" start="8.4" increment="10" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
|
||||
<bezel name="led_a~i~" element="led"><bounds x="1" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b~i~" element="led"><bounds x="11" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c~i~" element="led"><bounds x="21" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d~i~" element="led"><bounds x="31" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e~i~" element="led"><bounds x="41" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f~i~" element="led"><bounds x="51" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g~i~" element="led"><bounds x="61" y="~y~" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h~i~" element="led"><bounds x="71" y="~y~" width="1.5" height="1.5" /></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="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uib3">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></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="1.00" green="0.88" blue="0.55" /></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="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2b">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2c">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></rect>
|
||||
<text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2d">
|
||||
<rect><color red="1.00" green="0.88" blue="0.55" /></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="-2" right="117.5" top="-2" bottom="88" />
|
||||
<bounds left="0" right="130" top="0" bottom="90" />
|
||||
|
||||
<bezel element="white"><bounds x="-2.5" y="-2" width="120" height="90.5" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="13" y="0" width="120" height="90" /></bezel>
|
||||
|
||||
<!-- chessboard coords -->
|
||||
|
||||
<bezel element="text_8"><bounds x="-0.8" y="7" width="2" height="2" /></bezel>
|
||||
<bezel element="text_7"><bounds x="-0.8" y="17" width="2" height="2" /></bezel>
|
||||
<bezel element="text_6"><bounds x="-0.8" y="27" width="2" height="2" /></bezel>
|
||||
<bezel element="text_5"><bounds x="-0.8" y="37" width="2" height="2" /></bezel>
|
||||
<bezel element="text_4"><bounds x="-0.8" y="47" width="2" height="2" /></bezel>
|
||||
<bezel element="text_3"><bounds x="-0.8" y="57" width="2" height="2" /></bezel>
|
||||
<bezel element="text_2"><bounds x="-0.8" y="67" width="2" height="2" /></bezel>
|
||||
<bezel element="text_1"><bounds x="-0.8" y="77" width="2" height="2" /></bezel>
|
||||
<bezel element="text_8"><bounds x="14.3" y="8" width="2" height="2" /></bezel>
|
||||
<bezel element="text_7"><bounds x="14.3" y="18" width="2" height="2" /></bezel>
|
||||
<bezel element="text_6"><bounds x="14.3" y="28" width="2" height="2" /></bezel>
|
||||
<bezel element="text_5"><bounds x="14.3" y="38" width="2" height="2" /></bezel>
|
||||
<bezel element="text_4"><bounds x="14.3" y="48" width="2" height="2" /></bezel>
|
||||
<bezel element="text_3"><bounds x="14.3" y="58" width="2" height="2" /></bezel>
|
||||
<bezel element="text_2"><bounds x="14.3" y="68" width="2" height="2" /></bezel>
|
||||
<bezel element="text_1"><bounds x="14.3" y="78" width="2" height="2" /></bezel>
|
||||
|
||||
<bezel element="text_a"><bounds x="7" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b"><bounds x="17" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_c"><bounds x="27" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_d"><bounds x="37" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_e"><bounds x="47" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_f"><bounds x="57" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_g"><bounds x="67" y="85" width="2" height="2" /></bezel>
|
||||
<bezel element="text_h"><bounds x="77" y="85" width="2" height="2" /></bezel>
|
||||
|
||||
<!-- chessboard bezel -->
|
||||
|
||||
<bezel element="black"><bounds x="2" y="2" width="82" height="82" /></bezel>
|
||||
<bezel element="white"><bounds x="3" y="3" width="80" height="80" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="2.5" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="2.5" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="2.5" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="2.5" width="10.5" height="10.5" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="13" width="10.5" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="13" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="23" width="10.5" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="33" width="10.5" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="33" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="43" width="10.5" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="53" width="10.5" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="53" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="13" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="33" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="53" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="73" y="63" width="10.5" height="10" /></bezel>
|
||||
|
||||
<bezel element="black"><bounds x="2.5" y="73" width="10.5" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="23" y="73" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="43" y="73" width="10" height="10.5" /></bezel>
|
||||
<bezel element="black"><bounds x="63" y="73" width="10" height="10.5" /></bezel>
|
||||
|
||||
<bezel name="pos11" element="piece"><bounds x="3" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos12" element="piece"><bounds x="13" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos13" element="piece"><bounds x="23" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos14" element="piece"><bounds x="33" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos15" element="piece"><bounds x="43" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos16" element="piece"><bounds x="53" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos17" element="piece"><bounds x="63" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos18" element="piece"><bounds x="73" y="3" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos21" element="piece"><bounds x="3" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos22" element="piece"><bounds x="13" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos23" element="piece"><bounds x="23" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos24" element="piece"><bounds x="33" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos25" element="piece"><bounds x="43" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos26" element="piece"><bounds x="53" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos27" element="piece"><bounds x="63" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos28" element="piece"><bounds x="73" y="13" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos31" element="piece"><bounds x="3" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos32" element="piece"><bounds x="13" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos33" element="piece"><bounds x="23" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos34" element="piece"><bounds x="33" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos35" element="piece"><bounds x="43" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos36" element="piece"><bounds x="53" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos37" element="piece"><bounds x="63" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos38" element="piece"><bounds x="73" y="23" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos41" element="piece"><bounds x="3" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos42" element="piece"><bounds x="13" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos43" element="piece"><bounds x="23" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos44" element="piece"><bounds x="33" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos45" element="piece"><bounds x="43" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos46" element="piece"><bounds x="53" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos47" element="piece"><bounds x="63" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos48" element="piece"><bounds x="73" y="33" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos51" element="piece"><bounds x="3" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos52" element="piece"><bounds x="13" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos53" element="piece"><bounds x="23" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos54" element="piece"><bounds x="33" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos55" element="piece"><bounds x="43" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos56" element="piece"><bounds x="53" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos57" element="piece"><bounds x="63" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos58" element="piece"><bounds x="73" y="43" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos61" element="piece"><bounds x="3" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos62" element="piece"><bounds x="13" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos63" element="piece"><bounds x="23" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos64" element="piece"><bounds x="33" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos65" element="piece"><bounds x="43" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos66" element="piece"><bounds x="53" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos67" element="piece"><bounds x="63" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos68" element="piece"><bounds x="73" y="53" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos71" element="piece"><bounds x="3" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos72" element="piece"><bounds x="13" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos73" element="piece"><bounds x="23" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos74" element="piece"><bounds x="33" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos75" element="piece"><bounds x="43" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos76" element="piece"><bounds x="53" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos77" element="piece"><bounds x="63" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos78" element="piece"><bounds x="73" y="63" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos81" element="piece"><bounds x="3" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos82" element="piece"><bounds x="13" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos83" element="piece"><bounds x="23" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos84" element="piece"><bounds x="33" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos85" element="piece"><bounds x="43" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos86" element="piece"><bounds x="53" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos87" element="piece"><bounds x="63" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos88" element="piece"><bounds x="73" y="73" width="10" height="10" /></bezel>
|
||||
|
||||
<!-- chessboard leds -->
|
||||
|
||||
<bezel name="led_a1" element="led"><bounds x="3.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b1" element="led"><bounds x="13.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c1" element="led"><bounds x="23.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d1" element="led"><bounds x="33.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e1" element="led"><bounds x="43.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f1" element="led"><bounds x="53.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g1" element="led"><bounds x="63.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h1" element="led"><bounds x="73.2" y="11.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a2" element="led"><bounds x="3.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b2" element="led"><bounds x="13.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c2" element="led"><bounds x="23.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d2" element="led"><bounds x="33.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e2" element="led"><bounds x="43.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f2" element="led"><bounds x="53.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g2" element="led"><bounds x="63.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h2" element="led"><bounds x="73.2" y="21.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a3" element="led"><bounds x="3.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b3" element="led"><bounds x="13.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c3" element="led"><bounds x="23.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d3" element="led"><bounds x="33.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e3" element="led"><bounds x="43.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f3" element="led"><bounds x="53.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g3" element="led"><bounds x="63.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h3" element="led"><bounds x="73.2" y="31.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a4" element="led"><bounds x="3.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b4" element="led"><bounds x="13.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c4" element="led"><bounds x="23.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d4" element="led"><bounds x="33.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e4" element="led"><bounds x="43.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f4" element="led"><bounds x="53.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g4" element="led"><bounds x="63.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h4" element="led"><bounds x="73.2" y="41.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a5" element="led"><bounds x="3.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b5" element="led"><bounds x="13.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c5" element="led"><bounds x="23.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d5" element="led"><bounds x="33.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e5" element="led"><bounds x="43.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f5" element="led"><bounds x="53.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g5" element="led"><bounds x="63.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h5" element="led"><bounds x="73.2" y="51.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a6" element="led"><bounds x="3.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b6" element="led"><bounds x="13.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c6" element="led"><bounds x="23.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d6" element="led"><bounds x="33.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e6" element="led"><bounds x="43.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f6" element="led"><bounds x="53.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g6" element="led"><bounds x="63.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h6" element="led"><bounds x="73.2" y="61.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a7" element="led"><bounds x="3.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b7" element="led"><bounds x="13.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c7" element="led"><bounds x="23.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d7" element="led"><bounds x="33.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e7" element="led"><bounds x="43.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f7" element="led"><bounds x="53.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g7" element="led"><bounds x="63.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h7" element="led"><bounds x="73.2" y="71.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<bezel name="led_a8" element="led"><bounds x="3.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_b8" element="led"><bounds x="13.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_c8" element="led"><bounds x="23.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_d8" element="led"><bounds x="33.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_e8" element="led"><bounds x="43.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_f8" element="led"><bounds x="53.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_g8" element="led"><bounds x="63.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
<bezel name="led_h8" element="led"><bounds x="73.2" y="81.3" width="1.5" height="1.5" /></bezel>
|
||||
|
||||
<!-- chessboard sensors -->
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x80"><bounds x="3" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x80"><bounds x="13" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x80"><bounds x="23" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x80"><bounds x="33" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x80"><bounds x="43" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x80"><bounds x="53" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x80"><bounds x="63" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x80"><bounds x="73" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x40"><bounds x="3" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x40"><bounds x="13" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x40"><bounds x="23" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x40"><bounds x="33" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x40"><bounds x="43" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x40"><bounds x="53" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x40"><bounds x="63" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x40"><bounds x="73" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x20"><bounds x="3" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x20"><bounds x="13" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x20"><bounds x="23" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x20"><bounds x="33" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x20"><bounds x="43" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x20"><bounds x="53" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x20"><bounds x="63" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x20"><bounds x="73" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x10"><bounds x="3" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x10"><bounds x="13" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x10"><bounds x="23" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x10"><bounds x="33" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x10"><bounds x="43" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x10"><bounds x="53" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x10"><bounds x="63" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x10"><bounds x="73" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x08"><bounds x="3" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x08"><bounds x="13" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x08"><bounds x="23" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x08"><bounds x="33" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x08"><bounds x="43" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x08"><bounds x="53" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x08"><bounds x="63" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x08"><bounds x="73" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x04"><bounds x="3" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x04"><bounds x="13" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x04"><bounds x="23" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x04"><bounds x="33" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x04"><bounds x="43" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x04"><bounds x="53" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x04"><bounds x="63" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x04"><bounds x="73" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x02"><bounds x="3" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x02"><bounds x="13" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x02"><bounds x="23" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x02"><bounds x="33" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x02"><bounds x="43" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x02"><bounds x="53" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x02"><bounds x="63" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x02"><bounds x="73" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="COL_A" inputmask="0x01"><bounds x="3" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_B" inputmask="0x01"><bounds x="13" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_C" inputmask="0x01"><bounds x="23" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_D" inputmask="0x01"><bounds x="33" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_E" inputmask="0x01"><bounds x="43" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_F" inputmask="0x01"><bounds x="53" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_G" inputmask="0x01"><bounds x="63" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="COL_H" inputmask="0x01"><bounds x="73" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="text_a"><bounds x="21.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b"><bounds x="31.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_c"><bounds x="41.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_d"><bounds x="51.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_e"><bounds x="61.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_f"><bounds x="71.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_g"><bounds x="81.5" y="86" width="2" height="2" /></bezel>
|
||||
<bezel element="text_h"><bounds x="91.5" y="86" width="2" height="2" /></bezel>
|
||||
|
||||
<!-- right side -->
|
||||
|
||||
<bezel element="text_chessmaster"><bounds x="89" y="12" width="22" height="2.8" /></bezel>
|
||||
<bezel element="text_diamond"> <bounds x="106" y="15" width="14" height="2.5" /></bezel>
|
||||
<bezel element="text_monitor"> <bounds x="91" y="19.5" width="14" height="2" /></bezel>
|
||||
<bezel element="text_view"> <bounds x="91" y="26.5" width="8" height="2" /></bezel>
|
||||
<bezel element="text_reset"> <bounds x="99" y="23.0" width="10" height="2" /></bezel>
|
||||
<bezel element="text_function"> <bounds x="91" y="32.3" width="16" height="2" /></bezel>
|
||||
<bezel element="text_notation"> <bounds x="91" y="34.7" width="16" height="2" /></bezel>
|
||||
<bezel element="text_selection"> <bounds x="91" y="39.3" width="18" height="2" /></bezel>
|
||||
<bezel element="text_dialogue"> <bounds x="91" y="41.7" width="16" height="2" /></bezel>
|
||||
<bezel element="text_parameter"> <bounds x="91" y="46.3" width="18" height="2" /></bezel>
|
||||
<bezel element="text_information"><bounds x="91" y="48.7" width="22" height="2" /></bezel>
|
||||
<bezel element="text_match"> <bounds x="91" y="53.3" width="10" height="2" /></bezel>
|
||||
<bezel element="text_time"> <bounds x="91" y="55.7" width="8" height="2" /></bezel>
|
||||
<bezel element="text_board"> <bounds x="91" y="61.5" width="10" height="2" /></bezel>
|
||||
<bezel element="text_enter"> <bounds x="91" y="68.5" width="10" height="2" /></bezel>
|
||||
<bezel element="text_move_back"> <bounds x="87" y="83" width="18" height="2" /></bezel>
|
||||
<bezel element="text_move_fore"> <bounds x="101" y="83" width="18" height="2" /></bezel>
|
||||
<bezel element="text_playmode"> <bounds x="92" y="73" width="16" height="2" /></bezel>
|
||||
<bezel element="text_chessmaster"><bounds x="101" y="13" width="22" height="2.8" /></bezel>
|
||||
<bezel element="text_diamond"> <bounds x="118" y="16" width="11" height="2.5" /></bezel>
|
||||
<bezel element="text_monitor"> <bounds x="103" y="20.5" width="10" height="2" /></bezel>
|
||||
<bezel element="text_view"> <bounds x="103" y="27.5" width="14" height="2" /></bezel>
|
||||
<bezel element="text_reset"> <bounds x="111" y="24.0" width="7" height="2" /></bezel>
|
||||
<bezel element="text_function"> <bounds x="103" y="33.3" width="14" height="2" /></bezel>
|
||||
<bezel element="text_notation"> <bounds x="103" y="35.7" width="14" height="2" /></bezel>
|
||||
<bezel element="text_selection"> <bounds x="103" y="40.3" width="14" height="2" /></bezel>
|
||||
<bezel element="text_dialogue"> <bounds x="103" y="42.7" width="14" height="2" /></bezel>
|
||||
<bezel element="text_parameter"> <bounds x="103" y="47.3" width="14" height="2" /></bezel>
|
||||
<bezel element="text_information"><bounds x="103" y="49.7" width="14" height="2" /></bezel>
|
||||
<bezel element="text_match"> <bounds x="103" y="54.3" width="14" height="2" /></bezel>
|
||||
<bezel element="text_time"> <bounds x="103" y="56.7" width="14" height="2" /></bezel>
|
||||
<bezel element="text_board"> <bounds x="103" y="62.5" width="14" height="2" /></bezel>
|
||||
<bezel element="text_enter"> <bounds x="103" y="69.5" width="14" height="2" /></bezel>
|
||||
<bezel element="text_move_back"> <bounds x="101" y="84" width="12" height="2" /></bezel>
|
||||
<bezel element="text_move_fore"> <bounds x="115" y="84" width="12" height="2" /></bezel>
|
||||
<bezel element="text_playmode"> <bounds x="105" y="74" width="10" height="2" /></bezel>
|
||||
|
||||
<bezel name="monitor_led" element="led"> <bounds x="101" y="19.63" width="1.5" height="1.5" /> </bezel>
|
||||
<bezel name="playmode_led" element="led"> <bounds x="103" y="73.13" width="1.5" height="1.5" /> </bezel>
|
||||
<bezel name="reset_line0" element="black_rect"> <bounds x="107.4" y="23.2" width="0.2" height="1.6" /> </bezel>
|
||||
<bezel name="reset_line1" element="black_rect"> <bounds x="104.7" y="24.0" width="2.9" height="0.2" /> </bezel>
|
||||
<bezel name="monitor_led" element="led"> <bounds x="113" y="20.63" width="1.5" height="1.5" /> </bezel>
|
||||
<bezel name="playmode_led" element="led"> <bounds x="115" y="74.13" width="1.5" height="1.5" /> </bezel>
|
||||
<bezel name="reset_line0" element="black_rect"> <bounds x="119.4" y="24.2" width="0.2" height="1.6" /> </bezel>
|
||||
<bezel name="reset_line1" element="black_rect"> <bounds x="116.7" y="25.0" width="2.9" height="0.2" /> </bezel>
|
||||
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x01"><bounds x="105" y="18" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x02"><bounds x="105" y="25" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x40"><bounds x="105" y="32" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x20"><bounds x="105" y="39" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x10"><bounds x="105" y="46" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x08"><bounds x="105" y="53" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x04"><bounds x="105" y="60" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x80"><bounds x="105" y="67" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x02"><bounds x="94" y="77" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x01"><bounds x="108" y="77" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x01"><bounds x="117" y="19" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="EXTRA" inputmask="0x02"><bounds x="117" y="26" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x40"><bounds x="117" y="33" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x20"><bounds x="117" y="40" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x10"><bounds x="117" y="47" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x08"><bounds x="117" y="54" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x04"><bounds x="117" y="61" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x80"><bounds x="117" y="68" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x02"><bounds x="105" y="78" width="5" height="5" /></bezel>
|
||||
<bezel element="hlb" inputtag="BUTTONS" inputmask="0x01"><bounds x="119" y="78" width="5" height="5" /></bezel>
|
||||
|
||||
<!-- panel 16seg leds -->
|
||||
|
||||
<bezel name="display_background" element="black_rect"> <bounds x="89" y="2" width="26" height="9.2" /> </bezel>
|
||||
<bezel name="digit3" element="digit"> <bounds x="90" y="2.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="digit2" element="digit"> <bounds x="96" y="2.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="digit1" element="digit"> <bounds x="102" y="2.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="digit0" element="digit"> <bounds x="108" y="2.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="display_background" element="black_rect"> <bounds x="101" y="3" width="26" height="9.2" /> </bezel>
|
||||
<bezel name="digit3" element="digit"> <bounds x="102" y="3.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="digit2" element="digit"> <bounds x="108" y="3.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="digit1" element="digit"> <bounds x="114" y="3.5" width="5.66" height="8.5" /></bezel>
|
||||
<bezel name="digit0" element="digit"> <bounds x="120" y="3.5" width="5.66" height="8.5" /></bezel>
|
||||
|
||||
<group ref="sb_board"><bounds x="17" y="4" width="81" height="81" /></group>
|
||||
<group ref="sb_ui"><bounds x="1.5" y="4" width="10" height="80" /></group>
|
||||
</view>
|
||||
</mamelayout>
|
||||
|
@ -1,124 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<!-- define elements -->
|
||||
<script>
|
||||
local layout = {}
|
||||
local board
|
||||
local first_sq
|
||||
local enpassant -- en passant possible on next move
|
||||
local enpassant_pos -- position of the piece to be removed
|
||||
|
||||
local port_tags = { ":P7", ":P6", ":P5", ":P4", ":P3", ":P2", ":P1", ":P0" }
|
||||
local port_values = { }
|
||||
local ports
|
||||
|
||||
local function change_piece_state(pos, new_state)
|
||||
board[pos.y][pos.x] = new_state
|
||||
machine:outputs():set_indexed_value("pos", (pos.y * 10) + pos.x, new_state)
|
||||
end
|
||||
|
||||
local function move_piece(from, to)
|
||||
if board[from.y][from.x] == 0 then
|
||||
return 0
|
||||
end
|
||||
|
||||
-- ignores move on the same position
|
||||
if from.y == to.y and from.x == to.x then
|
||||
change_piece_state(to, board[to.y][to.x])
|
||||
return 1
|
||||
end
|
||||
|
||||
-- en passant
|
||||
if enpassant and board[to.y][to.x] == 0 and board[from.y][from.x] == 12 and from.y == 4 and to.y == 3 and from.x ~= to.x and board[to.y + 1][to.x] == 6 then
|
||||
enpassant_pos = {x = to.x, y = to.y + 1}
|
||||
elseif enpassant and board[to.y][to.x] == 0 and board[from.y][from.x] == 6 and from.y == 5 and to.y == 6 and from.x ~= to.x and board[to.y - 1][to.x] == 12 then
|
||||
enpassant_pos = {x = to.x, y = to.y - 1}
|
||||
end
|
||||
if board[to.y][to.x] == 0 and from.x == to.x and ((board[from.y][from.x] == 6 and from.y == 2 and to.y == 4) or
|
||||
(board[from.y][from.x] == 12 and from.y == 7 and to.y == 5)) then
|
||||
enpassant = true
|
||||
else
|
||||
enpassant = false
|
||||
end
|
||||
|
||||
-- promotion
|
||||
if (to.y == 8 and board[from.y][from.x] == 6) or (to.y == 1 and board[from.y][from.x] == 12) then
|
||||
change_piece_state(to, board[from.y][from.x] - 4) -- TODO: make this configurable
|
||||
else
|
||||
change_piece_state(to, board[from.y][from.x])
|
||||
end
|
||||
|
||||
change_piece_state(from, 0)
|
||||
return 1
|
||||
end
|
||||
|
||||
function layout.reset()
|
||||
board =
|
||||
{{ 3, 5, 4, 2, 1, 4, 5, 3 },
|
||||
{ 6, 6, 6, 6, 6, 6, 6, 6 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ 12,12,12,12,12,12,12,12 },
|
||||
{ 9,11,10, 8, 7,10,11, 9 }}
|
||||
|
||||
for y, row in ipairs(board) do
|
||||
for x, cell in ipairs(row) do
|
||||
change_piece_state({x = x, y = y}, board[y][x])
|
||||
end
|
||||
end
|
||||
ports = machine:ioport().ports
|
||||
first_sq = nil
|
||||
enpassant = false
|
||||
enpassant_pos = nil
|
||||
end
|
||||
|
||||
function layout.frame()
|
||||
local value = ports[":RESET"]:read()
|
||||
if value & 0x01 == 0x01 then
|
||||
layout.reset()
|
||||
return
|
||||
end
|
||||
|
||||
for y, tag in ipairs(port_tags) do
|
||||
local port = ports[tag]
|
||||
if not port then
|
||||
return
|
||||
end
|
||||
local newvalue = port:read()
|
||||
if port_values[y] ~= newvalue then
|
||||
port_values[y] = newvalue
|
||||
for x = 8, 1, -1 do
|
||||
if newvalue & 1 == 1 then
|
||||
if enpassant_pos and enpassant_pos.x == x and enpassant_pos.y == y then
|
||||
change_piece_state(enpassant_pos, 0)
|
||||
enpassant = false
|
||||
enpassant_pos = nil
|
||||
return
|
||||
end
|
||||
|
||||
if not first_sq then
|
||||
if board[y][x] ~= 0 then
|
||||
first_sq = {x = x, y = y}
|
||||
machine:outputs():set_indexed_value("pos", (y * 10) + x, board[y][x] | 0x10)
|
||||
end
|
||||
else
|
||||
if move_piece(first_sq, {x = x, y = y}) == 1 then
|
||||
first_sq = nil
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
newvalue = newvalue >> 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return layout, "risc2500"
|
||||
</script>
|
||||
|
||||
<element name="digit" defstate="0">
|
||||
<led7seg>
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
@ -132,7 +14,7 @@
|
||||
<color red="0.20" green="0.0" blue="0.0" />
|
||||
</rect>
|
||||
</element>
|
||||
<element name="button" defstate="0">
|
||||
<element name="hlb" defstate="0">
|
||||
<rect state="0">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="0.0" green="0.0" blue="0.0" />
|
||||
@ -143,17 +25,6 @@
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="hl" defstate="0">
|
||||
<text string=" ">
|
||||
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</text>
|
||||
<rect state="1">
|
||||
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="1"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_2"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="2"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
<element name="text_3"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="3"><color red="0.01" green="0.01" blue="0.01" /></text> </element>
|
||||
@ -181,341 +52,428 @@
|
||||
<element name="text_up"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="↑" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_down"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="↓" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_enter"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="ENTER" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p1"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="[K]" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p2"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="[Q]" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p3"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="[R]" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p4"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="[B]" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p5"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="[N]" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p6"> <rect><color red="0.63" green="0.63" blue="0.63" /></rect> <text string="[P]" > <color red="0.17" green="0.15" blue="0.15" /></text> </element>
|
||||
<element name="text_p1"> <image file="chess/bk.png"/></element>
|
||||
<element name="text_p2"> <image file="chess/bq.png"/></element>
|
||||
<element name="text_p3"> <image file="chess/br.png"/></element>
|
||||
<element name="text_p4"> <image file="chess/bb.png"/></element>
|
||||
<element name="text_p5"> <image file="chess/bn.png"/></element>
|
||||
<element name="text_p6"> <image file="chess/bp.png"/></element>
|
||||
<element name="sym_colon"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string=":" state="1"> <color red="1.0" green="1.0" blue="1.0" /></text> </element>
|
||||
<element name="sym_left"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="←" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_right"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="→" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p1"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="[K]" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p2"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="[Q]" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p3"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="[R]" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p4"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="[B]" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p5"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="[N]" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p6"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="[P]" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_p1"> <image file="chess/wk.png" state="1"/> </element>
|
||||
<element name="sym_p2"> <image file="chess/wq.png" state="1"/> </element>
|
||||
<element name="sym_p3"> <image file="chess/wr.png" state="1"/> </element>
|
||||
<element name="sym_p4"> <image file="chess/wb.png" state="1"/> </element>
|
||||
<element name="sym_p5"> <image file="chess/wn.png" state="1"/> </element>
|
||||
<element name="sym_p6"> <image file="chess/wp.png" state="1"/> </element>
|
||||
<element name="sym_white"> <rect><color red="0.00" green="0.00" blue="0.00" /></rect> <text string="○" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="sym_black"> <text string="●" state="1"> <color red="1.0" green="1.0" blue="1.0" /> </text> </element>
|
||||
<element name="white"><rect><color red="1" green="1" blue="1" /></rect></element>
|
||||
<element name="black"><rect><color red="0.4" green="0.4" blue="0.4" /></rect></element>
|
||||
<element name="background"><rect><color red="0.63" green="0.63" blue="0.63" /></rect></element>
|
||||
|
||||
<element name="piece" defstate="0">
|
||||
<image file="chess/bk.png" state="1"/>
|
||||
<image file="chess/bq.png" state="2"/>
|
||||
<image file="chess/br.png" state="3"/>
|
||||
<image file="chess/bb.png" state="4"/>
|
||||
<image file="chess/bn.png" state="5"/>
|
||||
<image file="chess/bp.png" state="6"/>
|
||||
<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/wk.png" state="7"/>
|
||||
<image file="chess/wq.png" state="8"/>
|
||||
<image file="chess/wr.png" state="9"/>
|
||||
<image file="chess/wb.png" state="10"/>
|
||||
<image file="chess/wn.png" state="11"/>
|
||||
<image file="chess/wp.png" state="12"/>
|
||||
<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/bk.png" state="17"><color alpha="0.5" /></image>
|
||||
<image file="chess/bq.png" state="18"><color alpha="0.5" /></image>
|
||||
<image file="chess/br.png" state="19"><color alpha="0.5" /></image>
|
||||
<image file="chess/bb.png" state="20"><color alpha="0.5" /></image>
|
||||
<image file="chess/bn.png" state="21"><color alpha="0.5" /></image>
|
||||
<image file="chess/bp.png" state="22"><color alpha="0.5" /></image>
|
||||
<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/wk.png" state="23"><color alpha="0.5" /></image>
|
||||
<image file="chess/wq.png" state="24"><color alpha="0.5" /></image>
|
||||
<image file="chess/wr.png" state="25"><color alpha="0.5" /></image>
|
||||
<image file="chess/wb.png" state="26"><color alpha="0.5" /></image>
|
||||
<image file="chess/wn.png" state="27"><color alpha="0.5" /></image>
|
||||
<image file="chess/wp.png" state="28"><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>
|
||||
|
||||
<!-- build screen -->
|
||||
<view name="Internal Layout">
|
||||
|
||||
<bezel element="background"><bounds x="0" y="0" width="95" height="90" /></bezel>
|
||||
<bezel element="background"><bounds x="95" y="16" width="60" height="74" /></bezel>
|
||||
<bezel element="background"><bounds x="95" y="0" width="60" height="4" /></bezel>
|
||||
<bezel element="background"><bounds x="125" y="0" width="30" height="20" /></bezel>
|
||||
<!-- sb board -->
|
||||
|
||||
<bezel element="white"><bounds x="8" y="3" width="80" height="80" /></bezel>
|
||||
<bezel element="black"><bounds x="8" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="8" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="8" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="8" y="73" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="18" y="3" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="18" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="18" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="18" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="28" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="28" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="28" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="28" y="73" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="38" y="3" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="38" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="38" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="38" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="48" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="48" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="48" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="48" y="73" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="58" y="3" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="58" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="58" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="58" y="63" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="68" y="13" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="68" y="33" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="68" y="53" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="68" y="73" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="78" y="3" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="78" y="23" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="78" y="43" width="10" height="10" /></bezel>
|
||||
<bezel element="black"><bounds x="78" y="63" width="10" height="10" /></bezel>
|
||||
<element name="cwhite"><rect><color red="1.00" green="1.00" blue="1.00" /></rect></element>
|
||||
<element name="cblack"><rect><color red="0.40" green="0.40" blue="0.40" /></rect></element>
|
||||
|
||||
<bezel element="text_8" ><bounds x="5" y="7" width="2" height="2" /></bezel>
|
||||
<bezel element="text_7" ><bounds x="5" y="17" width="2" height="2" /></bezel>
|
||||
<bezel element="text_6" ><bounds x="5" y="27" width="2" height="2" /></bezel>
|
||||
<bezel element="text_5" ><bounds x="5" y="37" width="2" height="2" /></bezel>
|
||||
<bezel element="text_4" ><bounds x="5" y="47" width="2" height="2" /></bezel>
|
||||
<bezel element="text_3" ><bounds x="5" y="57" width="2" height="2" /></bezel>
|
||||
<bezel element="text_2" ><bounds x="5" y="67" width="2" height="2" /></bezel>
|
||||
<bezel element="text_1" ><bounds x="5" y="77" width="2" height="2" /></bezel>
|
||||
<bezel element="text_a" ><bounds x="12" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b" ><bounds x="22" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_c" ><bounds x="32" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_d" ><bounds x="42" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_e" ><bounds x="52" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_f" ><bounds x="62" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_g" ><bounds x="72" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_h" ><bounds x="82" y="84" width="2" height="2" /></bezel>
|
||||
<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>
|
||||
|
||||
<bezel name="led0" element="led"><bounds x="2" y="77.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led1" element="led"><bounds x="2" y="67.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led2" element="led"><bounds x="2" y="57.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led3" element="led"><bounds x="2" y="47.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led4" element="led"><bounds x="2" y="37.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led5" element="led"><bounds x="2" y="27.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led6" element="led"><bounds x="2" y="17.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led7" element="led"><bounds x="2" y="7.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led8" element="led"><bounds x="12.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led9" element="led"><bounds x="22.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led10" element="led"><bounds x="32.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led11" element="led"><bounds x="42.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led12" element="led"><bounds x="52.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led13" element="led"><bounds x="62.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led14" element="led"><bounds x="72.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led15" element="led"><bounds x="82.5" y="87" width="1" height="2" /></bezel>
|
||||
<group name="sb_board">
|
||||
<bounds x="0" y="0" width="80" height="80" />
|
||||
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x01"><bounds x="78" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x02"><bounds x="68" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x04"><bounds x="58" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x08"><bounds x="48" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x10"><bounds x="38" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x20"><bounds x="28" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x40"><bounds x="18" y="73" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P0" inputmask="0x80"><bounds x="8" y="73" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<!-- squares (avoid seams) -->
|
||||
<bezel element="cwhite"><bounds x="0" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="0" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="0" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x01"><bounds x="78" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x02"><bounds x="68" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x04"><bounds x="58" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x08"><bounds x="48" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x10"><bounds x="38" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x20"><bounds x="28" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x40"><bounds x="18" y="63" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P1" inputmask="0x80"><bounds x="8" y="63" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="10" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="10" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x01"><bounds x="78" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x02"><bounds x="68" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x04"><bounds x="58" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x08"><bounds x="48" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x10"><bounds x="38" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x20"><bounds x="28" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x40"><bounds x="18" y="53" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P2" inputmask="0x80"><bounds x="8" y="53" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="0" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="20" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="20" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x01"><bounds x="78" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x02"><bounds x="68" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x04"><bounds x="58" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x08"><bounds x="48" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x10"><bounds x="38" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x20"><bounds x="28" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x40"><bounds x="18" y="43" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P3" inputmask="0x80"><bounds x="8" y="43" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="30" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="30" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x01"><bounds x="78" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x02"><bounds x="68" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x04"><bounds x="58" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x08"><bounds x="48" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x10"><bounds x="38" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x20"><bounds x="28" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x40"><bounds x="18" y="33" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P4" inputmask="0x80"><bounds x="8" y="33" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="0" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="40" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="40" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x01"><bounds x="78" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x02"><bounds x="68" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x04"><bounds x="58" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x08"><bounds x="48" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x10"><bounds x="38" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x20"><bounds x="28" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x40"><bounds x="18" y="23" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P5" inputmask="0x80"><bounds x="8" y="23" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="50" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="50" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x01"><bounds x="78" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x02"><bounds x="68" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x04"><bounds x="58" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x08"><bounds x="48" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x10"><bounds x="38" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x20"><bounds x="28" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x40"><bounds x="18" y="13" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P6" inputmask="0x80"><bounds x="8" y="13" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="0" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="10" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="20" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="30" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="40" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="50" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="60" y="60" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="70" y="60" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x01"><bounds x="78" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x02"><bounds x="68" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x04"><bounds x="58" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x08"><bounds x="48" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x10"><bounds x="38" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x20"><bounds x="28" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x40"><bounds x="18" y="3" width="10" height="10" /><color alpha="0.2" /></bezel>
|
||||
<bezel element="hl" inputtag="P7" inputmask="0x80"><bounds x="8" y="3" width="10" height="10" /><color alpha="0.4" /></bezel>
|
||||
<bezel element="cblack"><bounds x="0" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="10" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="20" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="30" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="40" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="50" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cblack"><bounds x="60" y="70" width="10" height="10" /></bezel>
|
||||
<bezel element="cwhite"><bounds x="70" y="70" width="10" height="10" /></bezel>
|
||||
|
||||
<bezel name="pos81" element="piece" ><bounds x="8" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos82" element="piece" ><bounds x="18" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos83" element="piece" ><bounds x="28" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos84" element="piece" ><bounds x="38" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos85" element="piece" ><bounds x="48" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos86" element="piece" ><bounds x="58" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos87" element="piece" ><bounds x="68" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos88" element="piece" ><bounds x="78" y="73" width="10" height="10" /></bezel>
|
||||
<bezel name="pos71" element="piece" ><bounds x="8" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos72" element="piece" ><bounds x="18" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos73" element="piece" ><bounds x="28" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos74" element="piece" ><bounds x="38" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos75" element="piece" ><bounds x="48" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos76" element="piece" ><bounds x="58" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos77" element="piece" ><bounds x="68" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos78" element="piece" ><bounds x="78" y="63" width="10" height="10" /></bezel>
|
||||
<bezel name="pos61" element="piece" ><bounds x="8" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos62" element="piece" ><bounds x="18" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos63" element="piece" ><bounds x="28" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos64" element="piece" ><bounds x="38" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos65" element="piece" ><bounds x="48" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos66" element="piece" ><bounds x="58" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos67" element="piece" ><bounds x="68" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos68" element="piece" ><bounds x="78" y="53" width="10" height="10" /></bezel>
|
||||
<bezel name="pos51" element="piece" ><bounds x="8" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos52" element="piece" ><bounds x="18" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos53" element="piece" ><bounds x="28" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos54" element="piece" ><bounds x="38" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos55" element="piece" ><bounds x="48" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos56" element="piece" ><bounds x="58" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos57" element="piece" ><bounds x="68" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos58" element="piece" ><bounds x="78" y="43" width="10" height="10" /></bezel>
|
||||
<bezel name="pos41" element="piece" ><bounds x="8" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos42" element="piece" ><bounds x="18" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos43" element="piece" ><bounds x="28" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos44" element="piece" ><bounds x="38" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos45" element="piece" ><bounds x="48" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos46" element="piece" ><bounds x="58" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos47" element="piece" ><bounds x="68" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos48" element="piece" ><bounds x="78" y="33" width="10" height="10" /></bezel>
|
||||
<bezel name="pos31" element="piece" ><bounds x="8" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos32" element="piece" ><bounds x="18" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos33" element="piece" ><bounds x="28" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos34" element="piece" ><bounds x="38" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos35" element="piece" ><bounds x="48" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos36" element="piece" ><bounds x="58" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos37" element="piece" ><bounds x="68" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos38" element="piece" ><bounds x="78" y="23" width="10" height="10" /></bezel>
|
||||
<bezel name="pos21" element="piece" ><bounds x="8" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos22" element="piece" ><bounds x="18" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos23" element="piece" ><bounds x="28" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos24" element="piece" ><bounds x="38" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos25" element="piece" ><bounds x="48" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos26" element="piece" ><bounds x="58" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos27" element="piece" ><bounds x="68" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos28" element="piece" ><bounds x="78" y="13" width="10" height="10" /></bezel>
|
||||
<bezel name="pos11" element="piece" ><bounds x="8" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos12" element="piece" ><bounds x="18" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos13" element="piece" ><bounds x="28" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos14" element="piece" ><bounds x="38" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos15" element="piece" ><bounds x="48" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos16" element="piece" ><bounds x="58" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos17" element="piece" ><bounds x="68" y="3" width="10" height="10" /></bezel>
|
||||
<bezel name="pos18" element="piece" ><bounds x="78" y="3" 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.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
<bezel element="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.1" /></bezel>
|
||||
|
||||
<bezel name="piece_a~i~" element="piece"><bounds x="0.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_b~i~" element="piece"><bounds x="10.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_c~i~" element="piece"><bounds x="20.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_d~i~" element="piece"><bounds x="30.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_e~i~" element="piece"><bounds x="40.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_f~i~" element="piece"><bounds x="50.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_g~i~" element="piece"><bounds x="60.5" y="~y~" width="9" height="9" /></bezel>
|
||||
<bezel name="piece_h~i~" element="piece"><bounds x="70.5" y="~y~" width="9" height="9" /></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="1.00" green="1.00" blue="1.00" /></rect>
|
||||
<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uib3">
|
||||
<rect><color red="1.00" green="1.00" blue="1.00" /></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="1.00" green="1.00" blue="1.00" /></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="1.00" green="1.00" blue="1.00" /></rect>
|
||||
<text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2b">
|
||||
<rect><color red="1.00" green="1.00" blue="1.00" /></rect>
|
||||
<text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2c">
|
||||
<rect><color red="1.00" green="1.00" blue="1.00" /></rect>
|
||||
<text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text>
|
||||
</element>
|
||||
<element name="text_uiu2d">
|
||||
<rect><color red="1.00" green="1.00" blue="1.00" /></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>
|
||||
|
||||
|
||||
<!-- LCD panel -->
|
||||
<screen index="0"><bounds x="95" y="4.5" width="30" height="4" /></screen>
|
||||
<group name="lcd">
|
||||
<bounds x="0" y="0" width="30" height="11.2" />
|
||||
<screen index="0"><bounds x="0" y="0" width="30" height="4" /></screen>
|
||||
|
||||
<bezel name="sym12" element="sym_colon" ><bounds x="107.0" y="9" width="1.5" height="3" /></bezel>
|
||||
<bezel name="sym13" element="sym_colon" ><bounds x="119.2" y="9" width="1.5" height="3" /></bezel>
|
||||
<bezel name="digit11" element="digit" ><bounds x="95.9" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit10" element="digit" ><bounds x="98.35" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit9" element="digit" ><bounds x="100.8" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit8" element="digit" ><bounds x="103.25" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit7" element="digit" ><bounds x="105.7" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit6" element="digit" ><bounds x="108.15" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit5" element="digit" ><bounds x="110.6" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit4" element="digit" ><bounds x="113.05" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit3" element="digit" ><bounds x="115.5" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit2" element="digit" ><bounds x="117.95" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit1" element="digit" ><bounds x="120.4" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit0" element="digit" ><bounds x="122.85" y="9" width="1.6" height="3" /></bezel>
|
||||
<bezel name="sym12" element="sym_colon" ><bounds x="12.0" y="4.5" width="1.5" height="3" /></bezel>
|
||||
<bezel name="sym13" element="sym_colon" ><bounds x="24.2" y="4.5" width="1.5" height="3" /></bezel>
|
||||
<bezel name="digit11" element="digit" ><bounds x="0.9" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit10" element="digit" ><bounds x="3.35" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit9" element="digit" ><bounds x="5.8" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit8" element="digit" ><bounds x="8.25" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit7" element="digit" ><bounds x="10.7" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit6" element="digit" ><bounds x="13.15" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit5" element="digit" ><bounds x="15.6" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit4" element="digit" ><bounds x="18.05" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit3" element="digit" ><bounds x="20.5" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit2" element="digit" ><bounds x="22.95" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit1" element="digit" ><bounds x="25.4" y="4.5" width="1.6" height="3" /></bezel>
|
||||
<bezel name="digit0" element="digit" ><bounds x="27.85" y="4.5" width="1.6" height="3" /></bezel>
|
||||
|
||||
<bezel name="sym1" element="sym_right" > <bounds x="121.60" y="12.7" width="3" height="3" /></bezel>
|
||||
<bezel name="sym2" element="sym_p6" > <bounds x="116.60" y="12.7" width="3.5" height="2.2" /></bezel>
|
||||
<bezel name="sym3" element="sym_p5" > <bounds x="113.75" y="12.7" width="3.5" height="2.2" /></bezel>
|
||||
<bezel name="sym4" element="sym_p4" > <bounds x="110.88" y="12.7" width="3.5" height="2.2" /></bezel>
|
||||
<bezel name="sym6" element="sym_p3" > <bounds x="108.00" y="12.7" width="3.5" height="2.2" /></bezel>
|
||||
<bezel name="sym7" element="sym_p2" > <bounds x="105.13" y="12.7" width="3.5" height="2.2" /></bezel>
|
||||
<bezel name="sym8" element="sym_p1" > <bounds x="102.25" y="12.7" width="3.5" height="2.2" /></bezel>
|
||||
<bezel name="sym9" element="sym_white" > <bounds x="99.00" y="12.5" width="4" height="3" /></bezel>
|
||||
<bezel name="sym10" element="sym_black" > <bounds x="99.90" y="13.0" width="2.2" height="2.2" /></bezel>
|
||||
<bezel name="sym11" element="sym_left" > <bounds x="95.40" y="12.7" width="3" height="3" /></bezel>
|
||||
<bezel name="sym1" element="sym_right" > <bounds x="26.60" y="7.7" width="3" height="3" /></bezel>
|
||||
<bezel name="sym2" element="sym_p6" > <bounds x="21.60" y="8.1" width="2.5" height="2.2" /></bezel>
|
||||
<bezel name="sym3" element="sym_p5" > <bounds x="18.85" y="8.1" width="2.5" height="2.2" /></bezel>
|
||||
<bezel name="sym4" element="sym_p4" > <bounds x="16.08" y="8.1" width="2.5" height="2.2" /></bezel>
|
||||
<bezel name="sym6" element="sym_p3" > <bounds x="13.30" y="8.1" width="2.5" height="2.2" /></bezel>
|
||||
<bezel name="sym7" element="sym_p2" > <bounds x="10.53" y="8.1" width="2.5" height="2.2" /></bezel>
|
||||
<bezel name="sym8" element="sym_p1" > <bounds x="7.75" y="8.1" width="2.5" height="2.2" /></bezel>
|
||||
<bezel name="sym9" element="sym_white" > <bounds x="4.00" y="7.5" width="4" height="3" /></bezel>
|
||||
<bezel name="sym10" element="sym_black" > <bounds x="4.91" y="7.97" width="2.2" height="2.2" /></bezel>
|
||||
<bezel name="sym11" element="sym_left" > <bounds x="0.40" y="7.7" width="3" height="3" /></bezel>
|
||||
</group>
|
||||
|
||||
<!-- build screen -->
|
||||
<view name="Internal Layout">
|
||||
<bounds x="0" y="0" width="166.5" height="90" />
|
||||
|
||||
<bezel element="background"><bounds x="13" y="0" width="95" height="90" /></bezel>
|
||||
<bezel element="background"><bounds x="108" y="16" width="60" height="74" /></bezel>
|
||||
<bezel element="background"><bounds x="108" y="0" width="60" height="4" /></bezel>
|
||||
<bezel element="background"><bounds x="138" y="0" width="30" height="20" /></bezel>
|
||||
|
||||
<bezel element="text_8" ><bounds x="18" y="7" width="2" height="2" /></bezel>
|
||||
<bezel element="text_7" ><bounds x="18" y="17" width="2" height="2" /></bezel>
|
||||
<bezel element="text_6" ><bounds x="18" y="27" width="2" height="2" /></bezel>
|
||||
<bezel element="text_5" ><bounds x="18" y="37" width="2" height="2" /></bezel>
|
||||
<bezel element="text_4" ><bounds x="18" y="47" width="2" height="2" /></bezel>
|
||||
<bezel element="text_3" ><bounds x="18" y="57" width="2" height="2" /></bezel>
|
||||
<bezel element="text_2" ><bounds x="18" y="67" width="2" height="2" /></bezel>
|
||||
<bezel element="text_1" ><bounds x="18" y="77" width="2" height="2" /></bezel>
|
||||
<bezel element="text_a" ><bounds x="25" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_b" ><bounds x="35" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_c" ><bounds x="45" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_d" ><bounds x="55" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_e" ><bounds x="65" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_f" ><bounds x="75" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_g" ><bounds x="85" y="84" width="2" height="2" /></bezel>
|
||||
<bezel element="text_h" ><bounds x="95" y="84" width="2" height="2" /></bezel>
|
||||
|
||||
<!-- LEDs -->
|
||||
<bezel name="led0" element="led"><bounds x="15" y="77.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led1" element="led"><bounds x="15" y="67.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led2" element="led"><bounds x="15" y="57.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led3" element="led"><bounds x="15" y="47.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led4" element="led"><bounds x="15" y="37.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led5" element="led"><bounds x="15" y="27.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led6" element="led"><bounds x="15" y="17.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led7" element="led"><bounds x="15" y="7.5" width="2" height="1" /></bezel>
|
||||
<bezel name="led8" element="led"><bounds x="25.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led9" element="led"><bounds x="35.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led10" element="led"><bounds x="45.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led11" element="led"><bounds x="55.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led12" element="led"><bounds x="65.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led13" element="led"><bounds x="75.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led14" element="led"><bounds x="85.5" y="87" width="1" height="2" /></bezel>
|
||||
<bezel name="led15" element="led"><bounds x="95.5" y="87" width="1" height="2" /></bezel>
|
||||
|
||||
<!-- right side -->
|
||||
<bezel element="text_on" ><bounds x="96" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_off" ><bounds x="107" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_newgame" ><bounds x="118" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_play" ><bounds x="129" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_back" ><bounds x="140" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_on" ><bounds x="109" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_off" ><bounds x="120" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_newgame" ><bounds x="131" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_play" ><bounds x="142" y="37" width="8" height="2" /></bezel>
|
||||
<bezel element="text_back" ><bounds x="153" y="37" width="8" height="2" /></bezel>
|
||||
|
||||
<bezel element="text_left" ><bounds x="96" y="52" width="7" height="3" /></bezel>
|
||||
<bezel element="text_right" ><bounds x="105" y="52" width="7" height="3" /></bezel>
|
||||
<bezel element="text_menu" ><bounds x="114" y="52" width="7" height="2" /></bezel>
|
||||
<bezel element="text_up" ><bounds x="123" y="51" width="7" height="3" /></bezel>
|
||||
<bezel element="text_down" ><bounds x="132" y="51" width="7" height="3" /></bezel>
|
||||
<bezel element="text_enter" ><bounds x="141" y="52" width="7" height="2" /></bezel>
|
||||
<bezel element="text_left" ><bounds x="109" y="52" width="7" height="3" /></bezel>
|
||||
<bezel element="text_right" ><bounds x="118" y="52" width="7" height="3" /></bezel>
|
||||
<bezel element="text_menu" ><bounds x="127" y="52" width="7" height="2" /></bezel>
|
||||
<bezel element="text_up" ><bounds x="136" y="51" width="7" height="3" /></bezel>
|
||||
<bezel element="text_down" ><bounds x="145" y="51" width="7" height="3" /></bezel>
|
||||
<bezel element="text_enter" ><bounds x="154" y="52" width="7" height="2" /></bezel>
|
||||
|
||||
<bezel element="text_p1" ><bounds x="96" y="66" width="7" height="3" /></bezel>
|
||||
<bezel element="text_p2" ><bounds x="105" y="66" width="7" height="3" /></bezel>
|
||||
<bezel element="text_p3" ><bounds x="114" y="66" width="7" height="3" /></bezel>
|
||||
<bezel element="text_p4" ><bounds x="123" y="66" width="7" height="3" /></bezel>
|
||||
<bezel element="text_p5" ><bounds x="132" y="66" width="7" height="3" /></bezel>
|
||||
<bezel element="text_p6" ><bounds x="141" y="66" width="7" height="3" /></bezel>
|
||||
<bezel element="text_p1" ><bounds x="110.5" y="65.5" width="4" height="4" /></bezel>
|
||||
<bezel element="text_p2" ><bounds x="119.5" y="65.5" width="4" height="4" /></bezel>
|
||||
<bezel element="text_p3" ><bounds x="128.5" y="65.5" width="4" height="4" /></bezel>
|
||||
<bezel element="text_p4" ><bounds x="137.5" y="65.5" width="4" height="4" /></bezel>
|
||||
<bezel element="text_p5" ><bounds x="146.5" y="65.5" width="4" height="4" /></bezel>
|
||||
<bezel element="text_p6" ><bounds x="155.5" y="65.5" width="4" height="4" /></bezel>
|
||||
|
||||
<bezel element="button" inputtag="RESET" inputmask="0x00000001"><bounds x="96" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P7" inputmask="0x80000000"><bounds x="107" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P6" inputmask="0x80000000"><bounds x="118" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P5" inputmask="0x80000000"><bounds x="129" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P0" inputmask="0x80000000"><bounds x="140" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="RESET" inputmask="0x00000001"><bounds x="109" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P7" inputmask="0x80000000"><bounds x="120" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P6" inputmask="0x80000000"><bounds x="131" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P5" inputmask="0x80000000"><bounds x="142" y="40" width="8" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P0" inputmask="0x80000000"><bounds x="153" y="40" width="8" height="2" /></bezel>
|
||||
|
||||
<bezel element="button" inputtag="P7" inputmask="0x40000000"><bounds x="96" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P6" inputmask="0x40000000"><bounds x="105" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P4" inputmask="0x80000000"><bounds x="114" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P3" inputmask="0x80000000"><bounds x="123" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P2" inputmask="0x80000000"><bounds x="132" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P1" inputmask="0x80000000"><bounds x="141" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P7" inputmask="0x40000000"><bounds x="109" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P6" inputmask="0x40000000"><bounds x="118" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P4" inputmask="0x80000000"><bounds x="127" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P3" inputmask="0x80000000"><bounds x="136" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P2" inputmask="0x80000000"><bounds x="145" y="55" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P1" inputmask="0x80000000"><bounds x="154" y="55" width="7" height="2" /></bezel>
|
||||
|
||||
<bezel element="button" inputtag="P5" inputmask="0x40000000"><bounds x="96" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P4" inputmask="0x40000000"><bounds x="105" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P3" inputmask="0x40000000"><bounds x="114" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P2" inputmask="0x40000000"><bounds x="123" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P1" inputmask="0x40000000"><bounds x="132" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="button" inputtag="P0" inputmask="0x40000000"><bounds x="141" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P5" inputmask="0x40000000"><bounds x="109" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P4" inputmask="0x40000000"><bounds x="118" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P3" inputmask="0x40000000"><bounds x="127" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P2" inputmask="0x40000000"><bounds x="136" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P1" inputmask="0x40000000"><bounds x="145" y="70" width="7" height="2" /></bezel>
|
||||
<bezel element="hlb" inputtag="P0" inputmask="0x40000000"><bounds x="154" y="70" width="7" height="2" /></bezel>
|
||||
|
||||
<group ref="lcd"><bounds x="108" y="4.5" width="30" height="11.2" /></group>
|
||||
<group ref="sb_board"><bounds x="21" y="2" width="81" height="81" /></group>
|
||||
<group ref="sb_ui"><bounds x="1.5" y="5" width="10" height="80" /></group>
|
||||
</view>
|
||||
|
||||
<view name="LCD">
|
||||
<group ref="lcd"><bounds x="0" y="0" width="30" height="11.2" /></group>
|
||||
</view>
|
||||
</mamelayout>
|
||||
|
Loading…
Reference in New Issue
Block a user