Foobar2000 Help!
airbornflght
Houston, TX Icrontian
Okay, what I have is for the play, pause, and stop buttons to switch out..sort of. Not sure if this should go here or in coding, but oh well. I'm hoping someone here is familiar with Foobar2000's SDK.
Right now I have this:
Which works. When I hover, it switches to my glowing button. But, here is what I can't get to work. I want to use the %isplaying% and %ispaused% functions to be able to switch the static image of the play,pause, and stop.
This is what I typed, but it doesn't work, those buttons just cease to appear. I'm really new to the sdk, so maybe I'm missing something, or maybe this functionality wasn't built in, but it seems like it should work. It's juts a simple if statement.
So, is what I'm trying to do possible, or am I approaching it wrong?
Right now I have this:
$drawrect(0,0,0,0,pencolor-null brushcolor-41-45-51) $button(00,0,0,0,24,24,/images\brumal-treeline\previous.png,/images\brumal-treeline\previousHov.png,Previous,) $button(24,0,0,0,24,24,/images\brumal-treeline\stop.png,/images\brumal-treeline\stopHov.png,Stop,) $button(48,0,0,0,24,24,/images\brumal-treeline\pause.png,/images\brumal-treeline\pauseHov.png,Pause,) $button(72,0,0,0,24,24,/images\brumal-treeline\play.png,/images\brumal-treeline\playHov.png,Play,) $button(96,0,0,0,24,24,/images\brumal-treeline\next.png,/images\brumal-treeline\nextHov.png,Next,)
Which works. When I hover, it switches to my glowing button. But, here is what I can't get to work. I want to use the %isplaying% and %ispaused% functions to be able to switch the static image of the play,pause, and stop.
This is what I typed, but it doesn't work, those buttons just cease to appear. I'm really new to the sdk, so maybe I'm missing something, or maybe this functionality wasn't built in, but it seems like it should work. It's juts a simple if statement.
$drawrect(0,0,0,0,pencolor-null brushcolor-41-45-51) $button(00,0,0,0,24,24,/images\brumal-treeline\previous.png,/images\brumal-treeline\previousHov.png,Previous,) $button(24,0,0,0,24,24,$if($and($not(%ispaused%),$not(%isplaying%)),/images\brumal-treeline\stopAct.png,/images\brumal-treeline\stop.png),/images\brumal-treeline\stopHov.png,Stop,) $button(48,0,0,0,24,24,$if(%ispaused%,/images\brumal-treeline\pauseAct.png,/images\brumal-treeline\pause.png),/images\brumal-treeline\pauseHov.png,Pause,) $button(72,0,0,0,24,24,$if(%ispaused%,/images\brumal-treeline\playAct.png,/images\brumal-treeline\play.png),/images\brumal-treeline\playHov.png,Play,) $button(96,0,0,0,24,24,/images\brumal-treeline\next.png,/images\brumal-treeline\nextHov.png,Next,)
So, is what I'm trying to do possible, or am I approaching it wrong?
0
Comments
nevermind. I got it working, and it looks pretty kick ass if I do say so myself.