I need more code help...
I have made a custom status bar, and need a bit of help. Here is the code first of all:
// PerSecond
// Global
$puts(rating,$if2(%rating%,0))
$puts(ratedir,images\rating_stars\)
$puts(ratedir2,images\rating_hearts\)
$puts(X,1090)
$puts(Y,1)
$puts(spacer_symb,' ')
$puts(spacer_width,2)
$puts(spacer,$repeat($get(spacer_symb),$get(spacer_width)))
$puts(text_time_remaining,$rgb(153,57,146)[%_time_remaining%])
$puts(numitems,%cwb_activelist_count%)
$puts(RC1,$rgb(245,255,53,245,255,53))
$puts(RC2,$rgb(64,67,12,64,67,12))
$puts(RC3,$rgb(60,221,68,60,221,68))
$puts(RC4,$rgb(223,0,5,223,0,5))
// Background
$imageabs(0,0,\images\statusbg.png,)
// PerTrack
//DIRECTORY LINKS//
$alignabs(775,1,35,16,,)
$font(Calibri,9,,221-222-223)Open: $button2(810,1,0,0,44,16,'$font(tahoma,8,underline,61-131-182)Directory','$font(tahoma,8,underline italics,120-145-209)Directory',Open Directory,)
$alignabs(854,1,45,26,,)
$font(Calibri,9,,221-222-223)'|'$button2(860,2,0,0,10,16,'$font(Wingdings 3,8,underline,61-131-182)Q','$font(Wingdings 3,8,underline italics,120-145-209)Q',Update all,)
//DIRECTORY LINKS//
//REPLAY GAIN//
$alignabs(400,1,100,16,,)
$if(%__replaygain_track_gain%, TGain: $rgb(77,122,172)$cut(%__replaygain_track_gain%,5)' dB',$alignabs(420,1,100,16,,)'[' ']'$button2(425,1,0,0,50,16,'$font(tahoma,8,underline,126-126-126)No TGain','$font(tahoma,8,underline,126-126-126)No TGain',Scan Per-file Track Gain,))
//REPLAY GAIN//
// PerSecond
//PROGRESS BAR//
$puts(pbw,300)
$padding(4,0)
$align(left,)
$font(Calibri,9,,221-222-223)
[%_time_elapsed%]
$drawrect($muldiv(%_width%,8,$get(pbw)),3,$muldiv(%_width%,81,$get(pbw)),9,brushcolor-null pencolor-223-0-5)
$drawrect($add($muldiv(%_width%,8,$get(pbw)),2),5,$ifgreater($muldiv($sub($muldiv(%_width%,81,$get(pbw)),4),%playback_time_seconds%,%length_seconds%),0,$muldiv($sub($muldiv(%_width%,81,$get(pbw)),4),%playback_time_seconds%,%length_seconds%),1),5,brushcolor-188-54-57 pencolor-null)
$alignabs(350,1,30,16,,)
$font(Calibri,9,,221-222-223)
[%length%]
$alignabs(373,1,40,16,,)
$puts(progress_%,
$if(%_time_total_seconds%,' '$rgb(49,130,81)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),3)$rgb(49,130,81)'%'' '))
$get(progress_%)
//PROGRESS BAR//
//REMAINING TIME//
$alignabs(500,1,130,16,,)
Remaining Time: $get(text_time_remaining)
$get(time)
//REMAINING TIME//
//NUMBER OF TOTAL SONGS//
$alignabs(635,1,140,16,,)
Total Songs: $rgb(158,146,75)$get(numitems) Songs
//NUMBER OF TOTAL SONGS//
//LAST PLAYED//
$alignabs(890,1,250,16,,)
Last Played: $if(%last_played%,$puts(diff,$cwb_datediff(%last_played%,%cwb_systemdate%))$ifgreater(1,$get(diff),$rgb(206,147,102)Played Today,$ifgreater(2,$get(diff),$rgb(188,140,92)Yesterday,$rgb(183,113,66)$get(diff) Days Ago)),$rgb(152,83,50)Never)
//LAST PLAYED//
//LYRICS AND ALBUM ART//
$alignabs(1050,-4,250,20,,)
$if(%LYRICS%,$font(Arial Unicode MS,12,,80-218-90)♬,$font(Arial Unicode MS,12,,42-42-42)♬)
$if($cwb_fileexists(C:\Song Album Covers\%album%.png),$font(Wingdings 2,12,,80-218-90)8,$font(Wingdings 2,12,,42-42-42)8)
//LYRICS AND ALBUM ART//
//RATING STARS//
$alignabs(1090,-1,150,16,,)
$font(Arial Unicode MS,9,,)
$if($greater(%play_counter%,99), $get(RC4)~❤~$get(RC2),
$if($greater(%play_counter%,49), $get(RC3)✓✓✓✓✓✓$get(RC2),
$if($greater(%play_counter%,24), $get(RC1)★★★★★$get(RC2),
$if($greater(%play_counter%,19), $get(RC1)★★★★$get(RC2)★,
$if($greater(%play_counter%,14), $get(RC1)★★★$get(RC2)★★,
$if($greater(%play_counter%,9), $get(RC1)★★$get(RC2)★★★,
$if($greater(%play_counter%,4), $get(RC1)★$get(RC2)★★★★,
$if(%play_counter%,) $get(RC2)★★★★★)))))))
//RATING STARS//
(There are some unicode characters in there, so you may see boxes near the end).
Anyways, the code works perfectly for what I need it to do. I just wanted to "enhance" it a little bit. I wanted to "wrap" the code into something so that when I have my foobar paused (%is_paused% works right?) the word "PAUSED" is in the center, and red with none of the other stuff showing. And when there is no song playing (%is_playing% might work) the words "NO SONG PLAYING" are displayed in the middle.
Could someone help me with this?
Thanks ^__^!