Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Panel UI - track display problem (Read 1236 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Panel UI - track display problem

I've got a problem with my foobar:
I've just fixed a button that should view "Now Playing" or "Playlist", the button works but when it should view "Now Playing" it doesn't appear.

Code: [Select]
// Global
$ifgreater($getpvar(showMenu),0,$puts(statusHeight,40),$puts(statusHeight,25))
$ifgreater($getpvar(showAlbum),0,$puts(albumWidth,0),$puts(albumWidth,150))
$puts(albumHeight,$sub(%_height%,$get(statusHeight)))
$puts(playlistHeight,$sub(%_height%,$get(statusHeight)))
$puts(playlistWidth,$sub(%_width%,$get(albumWidth)))

// Background
$drawrect(-1,-1,$add(%_width%,2),$add(%_height%,2),brushcolor-0-0-0)

// PerTrack
// Main Panels

$ifgreater($getpvar(showPlaying),0,
$panel(NowPlaying,Track Display,0,0,%_width%,$get(playlistHeight))
,
$panel(Playlist,Single Column Playlist,0,0,$get(playlistWidth),$get(playlistHeight),)
$panel(Albumlist,Album list,$sub(%_width%,$get(albumWidth)),0,$add($get(albumWidth),15),$get(playlistHeight),))

$panel(Status,Track Display,0,$get(playlistHeight),%_width%,$get(playlistHeight),)


Status Display works but not NowPlaying...

And I just saw that "Playing" don't have the [Track Display] on the little menu, but the Status have (and Playlist and Albumlist)

Why?


I'm new to Panel UI....