CODE
// PerSecond
$imageabs(0,1,$ifgreater(%cwb_volume%,-20,$get(dir1)sound_high.png,$get(dir1)sound_low.png))
$imageabs(0,1,$ifgreater(%cwb_volume%,-20,$get(dir1)sound_high.png,$get(dir1)sound_low.png))
I also have some code that will display a mute button right in the same position as the volume button:
CODE
// PerTrack
$imagebutton(0,1,
$ifgreater(%cwb_volume%,-20,$get(dir1)sound_high.png,$get(dir1)sound_low.png),
$ifgreater(%cwb_volume%,-20,$get(dir1)sound_high.png,$get(dir1)sound_low.png),
Volume mute,tooltip,Mute)
$imagebutton(0,1,
$ifgreater(%cwb_volume%,-20,$get(dir1)sound_high.png,$get(dir1)sound_low.png),
$ifgreater(%cwb_volume%,-20,$get(dir1)sound_high.png,$get(dir1)sound_low.png),
Volume mute,tooltip,Mute)
What I have done is taken an invisible .png and used that as a button over top of the other volume images. That way, I can press the button, and mute the volume. But what I want to do, is when the volume is MUTED, I want to hide the altered images, and display a mute image. Is this possible?
Hopefullt this made sense... :S.
EDIT:
Fixed my mute code, I accidentally put my old code that was glitchy.
Moderation: added line breaks in code to preserve forum layout.