Skip to content

Commit b511c53

Browse files
committed
[Ensoniq ESQ-1] Layout: Use a bit of SVG instead of 14 line elements for the slider ticks.
1 parent d852dfc commit b511c53

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/mame/layout/esq1.lay

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,40 +117,41 @@ license:CC0-1.0
117117
</rect>
118118
</element>
119119

120+
<element name="slider_ticks">
121+
<image><data><![CDATA[
122+
<svg width="46" height="93">
123+
<path fill="none" stroke="#fff" strokeWidth="1"
124+
d="
125+
M 0,18 h 9 m 28,0 h 9
126+
m -46,9 h 9 m 28,0 h 9
127+
m -46,9 h 9 m 28,0 h 9
128+
m -46,9 h 9 m 28,0 h 9
129+
m -46,9 h 9 m 28,0 h 9
130+
m -46,9 h 9 m 28,0 h 9
131+
m -46,9 h 9 m 28,0 h 9
132+
" />
133+
</svg>
134+
]]></data></image>
135+
</element>
136+
120137
<group name="slider">
121138
<element ref="black-rect"> <!-- slider channel -->
122-
<bounds x="12" y="0" width="23" height="93"/>
139+
<bounds x="12" y="0" width="23" height="94"/>
123140
</element>
124141
<element ref="dark_grey_rect"> <!-- slider rail -->
125142
<bounds x="20" y="10" width="7" height="77"/>
126143
</element>
127144
<element id="slider_~slider_id~" ref="invisible-rect">
128145
<bounds x="12" y="10" width="23" height="77"/>
129146
</element>
147+
<element ref="slider_ticks"><bounds x="0" y="0" width="46" height="94"/></element>
130148
<element id="slider_knob_~slider_id~" ref="slider-knob">
131149
<animate inputtag="slider_p~slider_id~" inputmask="0x7f"/>
132150
<bounds state="100" x="9" y="11" width="29" height="16"/>
133151
<bounds state="0" x="9" y="66" width="29" height="16"/>
134152
</element>
135-
<element ref="white_rect"><bounds x="0" y="20" width="9" height="1"/></element>
136-
<element ref="white_rect"><bounds x="0" y="29" width="9" height="1"/></element>
137-
<element ref="white_rect"><bounds x="0" y="38" width="9" height="1"/></element>
138-
<element ref="white_rect"><bounds x="0" y="47" width="9" height="1"/></element>
139-
<element ref="white_rect"><bounds x="0" y="56" width="9" height="1"/></element>
140-
<element ref="white_rect"><bounds x="0" y="65" width="9" height="1"/></element>
141-
<element ref="white_rect"><bounds x="0" y="74" width="9" height="1"/></element>
142-
143-
<element ref="white_rect"><bounds x="38" y="20" width="9" height="1"/></element>
144-
<element ref="white_rect"><bounds x="38" y="29" width="9" height="1"/></element>
145-
<element ref="white_rect"><bounds x="38" y="38" width="9" height="1"/></element>
146-
<element ref="white_rect"><bounds x="38" y="47" width="9" height="1"/></element>
147-
<element ref="white_rect"><bounds x="39" y="56" width="9" height="1"/></element>
148-
<element ref="white_rect"><bounds x="38" y="65" width="9" height="1"/></element>
149-
<element ref="white_rect"><bounds x="38" y="74" width="9" height="1"/></element>
150153
</group>
151154

152-
153-
154155
<element name="power_text"><text string="POWER"><color red="0.83" green="0.86" blue="0.83" /></text></element>
155156
<element name="line_text"><text string="LINE"><color red="0.83" green="0.86" blue="0.83" /></text></element>
156157
<element name="fuse_text"><text string="FUSE"><color red="0.83" green="0.86" blue="0.83" /></text></element>

0 commit comments

Comments
 (0)