PDA

View Full Version : Volume Help


PerfectH
15th September 2006, 09:23
Hi, I want to make a volume control that is a BUTTON rather then a SLIDER, and will make the volume go up in increments, but still allowing the user to use the mouse wheel to control the volume.

How would I put that into XML? Do I need a MAKI script for that?

Mr Jones
15th September 2006, 09:30
You can do buttons for vol up/down like this...

(taken directly from a skin of mine, so don't forget to change co-ordinates/image tag values accordingly)


<button
id="volume up"
action="volume_up"
x="192" y="116"
image="vol.up"
downimage="vol.up.prs"
hoverImage="vol.up.hv"
tooltip="Increase Volume"
/>
<button
id="volume down"
action="volume_down"
x="106" y="117"
image="vol.down"
downimage="vol.down.prs"
hoverImage="vol.down.hv"
tooltip="Decrease Volume"
/>


Dunno if it'll still work with a mouse wheel, should do though.

PerfectH
15th September 2006, 12:12
Ok thats pretty much what I thought it was, but I thought I could save time and ask. Thanks a bunch.

Also, if I need to - which I probably won't - can I change the increment amount?

Mr Jones
15th September 2006, 12:16
Not that I'm aware of, not without scripting it.