Author Topic: How can I make a Custom Mute Button?  (Read 7508 times)

Kusaywa

  • Newbie
  • *
  • Posts: 19
I haven't seen anyone do a Custom Mute Button for Player Controls. Is there something I can use simular to the Shuffle Buttons?
THANKS

While I'm here, can you do Custom Volume?


<element type="Icon" image="Images\shuffle.png" xAnchor="Panel.Center" x="-174" yAnchor="Panel.Bottom" y="-92" width="25" height="25" onClick="ShuffleToggle" visibleTrigger="ShuffleOn"></element>
<element type="Icon" image="Images\Rdio_Style_Shuffle_Onb.png" xAnchor="Panel.Center" x="-170" yAnchor="Panel.Bottom" y="-90" width="20" height="20" onClick="ShuffleToggle" visibleTrigger="ShuffleOff"></element>

redwing

  • Guest
This one has it: http://getmusicbee.com/forum/index.php?topic=11010.0

Here's the code I used for the icon (no need for image files).

<element type="Text" x="8" y="265" width="30" font="Webdings" style="Regular" size="13" fg="255,255,255" mouseOverFg="255,0,0" onClick="VolumeToggleMute">X</element>

You could apply this to any TM views you want to modify.
Last Edit: March 11, 2014, 08:16:57 PM by redwing

Kusaywa

  • Newbie
  • *
  • Posts: 19
That worked, but what I'm trying to do is get an image to appear when it is muted, and another one when it is not. Much like the 2 examples below. For some reason I can't figure it?
THANKS

<element type="Icon" image="Images\wm_paused.png" xAnchor="Panel.Center" x="-21" yAnchor="Panel.Bottom" y="-99" width="42" height="41" onClick="PlayPause" visibleTrigger="Playing"></element>
<element type="Icon" image="Images\wm_playc.png" xAnchor="Panel.Center" x="-20" yAnchor="Panel.Bottom" y="-100" width="40" height="40" onClick="PlayPause" visibleTrigger="NotPlaying"></element>

<element type="Icon" image="Images\shuffle.png" xAnchor="Panel.Center" x="-174" yAnchor="Panel.Bottom" y="-92" width="25" height="25" onClick="ShuffleToggle" visibleTrigger="ShuffleOn"></element>
<element type="Icon" image="Images\Rdio_Style_Shuffle_Onb.png" xAnchor="Panel.Center" x="-170" yAnchor="Panel.Bottom" y="-90" width="20" height="20" onClick="ShuffleToggle" visibleTrigger="ShuffleOff"></element>


redwing

  • Guest
Here's an example:

<element type="Icon" image="Images\Volume_Not_Mute.png" x="10" y="330" width="17" height="15" onClick="VolumeToggleMute" visibleTrigger="VolumeNotMute"></element>
<element type="Icon" image="Images\Volume_Mute.png" x="10" y="330" width="17" height="15" onClick="VolumeToggleMute" visibleTrigger="VolumeMute"></element>