microvision: add horizontal bar for paddle pos

This commit is contained in:
hap 2022-09-12 19:45:24 +02:00
parent 482f6fafb8
commit 356c809820
2 changed files with 30 additions and 11 deletions

View File

@ -18,6 +18,18 @@ license:CC0
</simplecounter>
</element>
<element name="bar" defstate="0">
<rect>
<bounds x="0" y="0" width="1" height="1" />
<color red="0.85" green="0.85" blue="0.85" />
</rect>
<rect>
<bounds state="0" x="0" y="0" width="0" height="1" />
<bounds state="255" x="0" y="0" width="1" height="1" />
<color red="0.9" green="0.9" blue="0.9" />
</rect>
</element>
<!-- build screen -->
@ -27,21 +39,25 @@ license:CC0
<element ref="lcdw"><bounds x="0" y="0" width="18" height="18" /></element>
<screen index="0"><bounds x="1" y="1" width="16" height="16" /></screen>
<!-- draw the grid -->
<repeat count="17">
<param name="i" start="0.95" increment="1" />
<element ref="lcdw"><bounds x="~i~" y="0.5" width="0.1" height="17" /></element>
<element ref="lcdw"><bounds x="0.5" y="~i~" width="17" height="0.1" /></element>
</repeat>
<collection name="Screen Mesh">
<!-- draw the grid -->
<repeat count="17">
<param name="i" start="0.95" increment="1" />
<element ref="lcdw"><bounds x="~i~" y="0.5" width="0.1" height="17" /></element>
<element ref="lcdw"><bounds x="0.5" y="~i~" width="17" height="0.1" /></element>
</repeat>
</collection>
<element ref="lcdm" blend="multiply"><bounds x="0" y="0" width="18" height="18" /></element>
<element ref="lcda" blend="add"><bounds x="0" y="0" width="18" height="18" /></element>
<collection name="Paddle Position">
<!-- show live paddle position -->
<element ref="text_p1" blend="add"><bounds x="10.75" y="0.1" width="5" height="0.75" /></element>
<element ref="nothing" blend="add" inputtag="PADDLE" inputmask="0x00" inputraw="yes"><bounds x="15.95" y="0.1" width="2" height="0.75" /></element> <!-- block clickable input -->
<element ref="text_p2" blend="add" inputtag="PADDLE" inputmask="0xff" inputraw="yes"><bounds x="15.95" y="0.1" width="2" height="0.75" /></element>
<element ref="nothing" inputtag="PADDLE" inputmask="0x00" inputraw="yes"><bounds x="12" y="0" width="6" height="1" /></element> <!-- block clickable input -->
<element ref="bar" blend="multiply" inputtag="PADDLE" inputmask="0xff" inputraw="yes"><bounds x="12.75" y="0.12" width="4.2" height="0.75" /></element>
<element ref="text_p1" blend="add"><bounds x="10.5" y="0.1" width="5" height="0.75" /></element>
<element ref="text_p2" blend="add" inputtag="PADDLE" inputmask="0xff" inputraw="yes"><bounds x="15.7" y="0.1" width="2" height="0.75" /></element>
</collection>
</view>

View File

@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
// Yamaha VL-1 synthesizer
// Yamaha VL1 synthesizer
// The VL1-m rackable version exists but we don't have the firmware
@ -36,6 +36,8 @@
#include "machine/tmp68301.h"
#include "video/t6963c.h"
namespace {
class vl1_state : public driver_device
{
public:
@ -107,5 +109,6 @@ ROM_START(vl1)
ROM_LOAD16_BYTE("vl1v2l.ic67", 1, 0x80000, CRC(382d24e9) SHA1(4e6637c8e1876c5931f944f8a188d58cdb1eb47f))
ROM_END
SYST(1981, vl1, 0, 0, vl1, vl1, vl1_state, empty_init, "Yamaha", "VL1", MACHINE_NOT_WORKING|MACHINE_NO_SOUND)
} // anonymous namespace
SYST(1993, vl1, 0, 0, vl1, vl1, vl1_state, empty_init, "Yamaha", "VL1", MACHINE_NOT_WORKING|MACHINE_NO_SOUND)