In the COMMAND part of the button function, the wiki says this:
QUOTE
* PVAR:SET:variable:value
Sets a persistent variable - a variable that is recognized throughout Panels UI (Panels UI itself + Track Display and Single Columns Playlist) and can be changed through buttons. In the above, 'value' is the value you are setting the variable to and 'variable' is the name of the variable. The value of a persistent variable can only be set via a button or the $setpvar() function, and is returned using the $getpvar() function.
Sets a persistent variable - a variable that is recognized throughout Panels UI (Panels UI itself + Track Display and Single Columns Playlist) and can be changed through buttons. In the above, 'value' is the value you are setting the variable to and 'variable' is the name of the variable. The value of a persistent variable can only be set via a button or the $setpvar() function, and is returned using the $getpvar() function.
Can you give the variable whatever name you want, or is there some list of predefined variables that must be used?
For example I gave one button the command:
CODE
$button2($sub($div(%_width%,2),$div($calcwidth(Library),2)),$sub(%_height%,$div(%_height%,5)),5,5,$add($calcwidth(Library),10),$add($calcheight(Library),10),'$font(Arial,10,,255-255-255) Library','$font(Arial,12,,255-255-255) Library','PVAR:SET:library:1',)
...which I thought was simply the equivalent of using $setpvar(library,1), but triggered by clicking the button, but it doesn't seem to be responding. I thought maybe there were some particular variables or something that have to be used, or perhaps there is something else that I'm doing wrong?
-mac
