vgmplay.cpp: Added rudimentary layout using default font symbols to provide clickable buttons for the new media controls recently added. The cursor doesn't seem to show up, but I'm sure one of the layout wizards can quickly remedy that. (nw)

This commit is contained in:
Scott Stone 2018-06-05 23:04:39 -04:00
parent 7faebc9f4d
commit 9f1d29222a
2 changed files with 58 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include "sound/ymz280b.h"
#include "sound/2608intf.h"
#include "vgmplay.lh"
#include "debugger.h"
#include "speaker.h"
@ -1724,6 +1725,7 @@ MACHINE_CONFIG_START(vgmplay_state::vgmplay)
MCFG_DEVICE_ADD("file", BITBANGER, 0)
MCFG_BITBANGER_READONLY(true)
MCFG_DEFAULT_LAYOUT(layout_vgmplay)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();

View File

@ -0,0 +1,56 @@
<?xml version="1.0"?>
<mamelayout version="2">
<!-- define elements -->
<element name="static_black2"><rect><color red="0.2" green="0.21" blue="0.23" /></rect></element>
<element name="hl1" defstate="0">
<text string=" "><color red="0.0" green="0.0" blue="0.0" /></text>
<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
</element>
<element name="text_l1">
<rect><color red="0.2" green="0.21" blue="0.23" /></rect>
<text string="&#x25A0;"><color red="0.9" green="0.9" blue="0.2" /></text>
</element>
<element name="text_l2">
<rect><color red="0.2" green="0.21" blue="0.23" /></rect>
<text string="&#x25EB;"><color red="0.9" green="0.9" blue="0.2" /></text>
</element>
<element name="text_l3">
<rect><color red="0.2" green="0.21" blue="0.23" /></rect>
<text string="&#x25B6;"><color red="0.9" green="0.9" blue="0.2" /></text>
</element>
<element name="text_l4">
<rect><color red="0.2" green="0.21" blue="0.23" /></rect>
<text string="&#x25C4;"><color red="0.9" green="0.9" blue="0.2" /></text>
</element>
<element name="text_l5">
<rect><color red="0.2" green="0.21" blue="0.23" /></rect>
<text string="&#x25CE;"><color red="0.9" green="0.9" blue="0.2" /></text>
</element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="0" right="45" top="0" bottom="55" />
<bezel element="static_black2"><bounds x="0" y="4" width="8" height="5" /></bezel>
<bezel element="static_black2"><bounds x="9" y="4" width="8" height="5" /></bezel>
<bezel element="static_black2"><bounds x="18" y="4" width="8" height="5" /></bezel>
<bezel element="static_black2"><bounds x="27" y="4" width="8" height="5" /></bezel>
<bezel element="static_black2"><bounds x="36" y="4" width="8" height="5" /></bezel>
<bezel element="text_l1"><bounds x="0" y="5" width="8" height="3.5" /></bezel>
<bezel element="text_l2"><bounds x="9" y="5" width="8" height="3.5" /></bezel>
<bezel element="text_l3"><bounds x="18" y="5" width="8" height="3.5" /></bezel>
<bezel element="text_l4"><bounds x="27" y="5" width="8" height="3.5" /></bezel>
<bezel element="text_l5"><bounds x="36" y="5" width="8" height="3.5" /></bezel>
<bezel element="hl1" inputtag="CONTROLS" inputmask="0x0001"><bounds x="0" y="4" width="8" height="5" /><color alpha="0.15" /></bezel>
<bezel element="hl1" inputtag="CONTROLS" inputmask="0x0002"><bounds x="9" y="4" width="8" height="5" /><color alpha="0.15" /></bezel>
<bezel element="hl1" inputtag="CONTROLS" inputmask="0x0004"><bounds x="18" y="4" width="8" height="5" /><color alpha="0.15" /></bezel>
<bezel element="hl1" inputtag="CONTROLS" inputmask="0x0008"><bounds x="27" y="4" width="8" height="5" /><color alpha="0.15" /></bezel>
<bezel element="hl1" inputtag="CONTROLS" inputmask="0x0010"><bounds x="36" y="4" width="8" height="5" /><color alpha="0.15" /></bezel>
</view>
</mamelayout>