User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
columns_ui:tips_and_tricks [2012/10/05 05:17] zYMJkMEDRyGXnxst
columns_ui:tips_and_tricks [2012/10/07 03:55] (current) Reverted vandalism
Line 1: Line 1:
-That kind of thiknnig shows you're an expert+====== New user tips ====== 
 +You may never see the light of day if you try and read the entire Columns UI thread, so this most of the useful information for new users will slowly be filled in here. 
 +FIXME Actually add some useful content here 
 +===== Formatting tips ===== 
 +==== Choosing a playlist view ==== 
 +Newer versions of **columns_ui** include two versions of the playlist view: a legacy version (Columns Playlist) and a newer version that supports embedded artwork (NG Playlist). 
 +To experiment with the following examples, install the legacy playlist view, //Columns Playlist//. Also locate the Globals tab in the __Playlist view__ preferences panel and place a checkmark next to //"​Enable legacy support for globals"//​. 
 +Experimenting with the legacy playlist view affords you the opportunity to get your feet wet with the TAGZ language. You can switch to NG Playlist once you become more comfortable with TAGZ. Scripts are readily transferable to the new interface, although some built-in variable names are changed. 
 +==== Understanding titleformatting ==== 
 +Rather than blindly using someone elses config, it is best to get a grasp of the titleformatting language, so you can create personalised configs yourself. The language used in titleformatting is tagz; for more information see the articles below: 
 +  * [[ha>​Foobar2000:​Titleformat_Introduction|Titleformat Introduction]] 
 +  * [[ha>​Foobar2000:​Titleformat_Reference|Titleformat Reference]] 
 +==== Filesize in MB ==== 
 +<code tagz>​$div(%_filesize%,​1048576).$num($div($mul($mod(%_filesize%,​1048576),​100),​1048576),​2) MB</​code>​ 
 +==== Filesize in KB ==== 
 +<code tagz>​$ifgreater($div(%_filesize%,​1024,​1000),​1,​$div(%_filesize%,​1024,​1000)',',​)$right($div(%_filesize%,​1024),​3)'​ KB'</​code>​ 
 +==== Alternating track colours ==== 
 +In your colour string, use this code for the colour you wish to alternate:​ 
 +<code tagz>​$ifequal($mod(%_playlist_number%,​2),​0,<​colour a>,<​colour b>​)</​code>​replacing <colour a> and <colour b> with your desired colours. 
 +==== Making groups of alternating colours ==== 
 +To create alternating colours for groups of three songs (three red, three blue), use the following code:<​code tagz>​$ifgreater($mod($add(%_playlist_number%,​2),​6),​2,​0000dd,​dd0000)</​code>​Replace 0000dd and dd0000 with your preferred colours. The number '​2'​ in '​%_playlist_number%,​2' ​above may be replaced with a different value (say, 5) to align the desired colour with your first list item. 
 +For those using the newer **NG Playlist** interface, the above code looks something like this:<​code tagz>​$ifgreater($mod($add(%_display_index%,​1),​6),​2,​$set_style(text,​0000dd),​$set_style(text,​dd0000))</​code>​The //​_display_index//​ variable could be replaced with //​list_index//​ if desired. Notice that //​list_index//​ does not use a leading underscore. Also notice the offset value was adjusted to **1** because the group title occupies the first line.
columns_ui/tips_and_tricks.txt · Last modified: 2012/10/07 03:55 by