getmusicbee.com

Support => Developers' Area => TheaterMode => Topic started by: Kusaywa on March 11, 2014, 07:40:05 PM

Title: How can I make a Custom Mute Button?
Post by: Kusaywa on March 11, 2014, 07:40:05 PM
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>
Title: Re: How can I make a Custom Mute Button?
Post by: redwing on March 11, 2014, 08:06:02 PM
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.
Title: Re: How can I make a Custom Mute Button?
Post by: Kusaywa on March 12, 2014, 12:28:59 PM
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>

Title: Re: How can I make a Custom Mute Button?
Post by: redwing on March 12, 2014, 01:02:56 PM
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>
Title: Re: How can I make a Custom Mute Button?
Post by: Kusaywa on March 12, 2014, 01:23:25 PM
That did it...
THANKS