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: Columns UI (Read 4589812 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Columns UI

Reply #2900
musicmusic - seeing the new way to access global variables and the new 0.9 titleformatting stuff like custom functions / hooks, would it be possible to generalize the globals so they would be available to other plugins etc?
Just curious, what does the part I've emphasized refer to? I searched this thread and the change logs, but nothing turned up. 

Columns UI

Reply #2901
Regarding the confirmation dialog when deleting playlists:

As far as I know, there is a recommendation from Microsoft that irreversible actions should be confirmed by the user. However, this does not eliminate user error. Confirmation dialogs add a thin barrier in this case; thin because users get effectively trained to dismiss them. The best solution is to make all/as many as possible actions reversible. I proposed a trashcan for playlists during the 0.9 alpha cycle, however it didn't make it into 0.9.

Columns UI

Reply #2902
musicmusic - seeing the new way to access global variables and the new 0.9 titleformatting stuff like custom functions / hooks, would it be possible to generalize the globals so they would be available to other plugins etc?
Just curious, what does the part I've emphasized refer to? I searched this thread and the change logs, but nothing turned up. 


Changes in the 0.9 SDK allow a component to add functions and variables that become available to all other components that use title formatting.  The down side is that the more components that add hooks into the title formatting, the slower every title formatting call is going to be, even the ones that do not need use the added functions and variables.
There used to be a link to my website here.

Columns UI

Reply #2903
I have tried hunting through a number of pages here and didn't see the answer, so if I just missed it, I apologize.  In the previous version there was a drop down menu on the Playlist View screen that allowed you to adjust the "exposed background color".  I am struggling to find it in the most current release.



I would love to make that unsightly white disappear.

Columns UI

Reply #2904
$select($num(%tracknumber%,1),your_code_here)

You should NOT draw the line below the last track of an album but instead ABOVE the first track - else you would rely in weird special tags to indicate the last track of an album.

How about $ifequal(%totaltracks%,%tracknumber%,DO_THIS,DO_THAT) ?

Columns UI

Reply #2905
I have tried hunting through a number of pages here and didn't see the answer, so if I just missed it, I apologize.  In the previous version there was a drop down menu on the Playlist View screen that allowed you to adjust the "exposed background color".  I am struggling to find it in the most current release.



I would love to make that unsightly white disappear.

Go to the "Colours and Fonts" tab in Playlist view, click on "Use custom colours:" box, set "Background:" color to whatever you want.

Columns UI

Reply #2906
Quote
How about $ifequal(%totaltracks%,%tracknumber%,DO_THIS,DO_THAT) ?

It would work for cuesheets and if the files are tagged with the tracknumber as NN/NN (01/12, for instance), since foobar2000 would make a %totaltracks% field available.  Otherwise, one would have to add a "totaltracks" tag to the files.

edit: fixed "quote" tag

Columns UI

Reply #2907
@ gfngfgf & lyx, tnx for answering, but i'm afraid this  "$select($num(%tracknumber%,1),your_code_here)", did't help, and i'm not familiar with coding, so "your code_here" 's not good, 'cause i don't know how to draw a line above first track. and what about track info's mode "follow cursor even when playing", would really like to know if that's possible. thanks again.

Columns UI

Reply #2908
@ gfngfgf & lyx, tnx for answering, but i'm afraid this  "$select($num(%tracknumber%,1),your_code_here)", did't help, and i'm not familiar with coding, so "your code_here" 's not good, 'cause i don't know how to draw a line above first track.


In that case, you should use premade FCSs by other authors, or learn how to code in TAGZ. Premade codesolutions wont help you in the long run, because you will require additional help over and over, because you won't understand your own code. What you would be doing in that case, would be kinda asking others to code your own FCS.

So, the bottom line is: if you cannot code in TAGZ, then either use premade FCSs by others, or learn how to code. In the latter case, you should ask questions in a seperate thread.




I would love to make that unsightly white disappear.


1. Ask questions about an FCS in the relevant thread.

2. Read the f**** manual of the FCS - your question is answered there.
I am arrogant and I can afford it because I deliver.

Columns UI

Reply #2909
ok. tnx for encourageing me lyx. so, i put %album% instead "your code there", then it worked, but it was left of the title, and i didn't want that, so i made a new column, put the code in, put it on top of all columns, and now it's ok  . but how do i do the line above the first one or below last? i tried a few things, but i just have no idea

Columns UI

Reply #2910
$select(%tracknumber%,$set_style(frame-top,1,$rgb(240,240,240)),)

That should add a very light gray line above the first track. Alternatively you could use something like:

$if($strcmp($num(%tracknumber%,2),01),$set_style(frame-top,1,$rgb(240,240,240)))

Columns UI

Reply #2911
That should add a very light gray line above the first track. Alternatively you could use something like:

no... it's says unknown function, i'm usin' 0.9...

Columns UI

Reply #2912
I would propose that you start out with something more simple: a singlemode display. And while doing that learn how ui-columns coding works (reading the columns ui manual is a must - it simply is too complex to just figure out everything by intuition).

Having almost no experience in tagz-coding and trying to do an albummode display is like building high-tech aircrafts as a 6 years old. Start out simple.
I am arrogant and I can afford it because I deliver.

Columns UI

Reply #2913
Sorry I got a stupid question here. What should I do if I want the colour of the texts of a song (in the playlist) to change whenever it's playing? I tried for quite a while but didn't work out....

Columns UI

Reply #2914
Sorry I got a stupid question here. What should I do if I want the colour of the texts of a song (in the playlist) to change whenever it's playing? I tried for quite a while but didn't work out....
In essence it's done like this:
Code: [Select]
$if(%_isplaying%,color_when_playing,normal_color)

And here's an example:
Code: [Select]
$if(%_isplaying%,$rgb(255,0,0),$rgb(0,255,0))%artist%

Columns UI

Reply #2915
to do an albummode display is like building high-tech aircrafts as a 6 years old.
That certainly gave my confidence a boost 

Start out simple.
A good advice, IMHO.
It was easier "back in the old days", when we started out. No album mode, no UI Columns, just a plain and simple formatting. But, one huge advantage with UI Columns, is that you can easily add a column for testing, and just delete it when you got everything figured out. That's something I use alot.

I haven't read all the formatting guides that seem to turn up from time to time, but a very simple fcs with album mode formatting, would probably be useful to people that want to start playing with TAGZ. Maybe I'll make one myself if I find the time.

[edit]
@cwbowron
Thanks for explaing "custom functions / hooks". It will be interesting to see what it will bring.
[/edit]

Columns UI

Reply #2916
I have a quick question about some of these themes.  When I use a theme similar to Klyith's, the last track on the album doesn't put the underline in there.  I've tried downloading other themes and taking the code from there to get it to work properly, but it just doesn't want to do it for me..  It's making my whole playlist look stupid
Here's a picture so you can see what I mean.

Columns UI

Reply #2917
Looks to me like he uses some kind of custom tag on his files like %lasttrack% or %totaltracks% to indicate the last track of an album.

Columns UI

Reply #2918
Quote
That should add a very light gray line above the first track.

no... it's says unknown function, i'm usin' 0.9...

It sounds like you're adding this code in the wrong place (like in the column's Display tab).
Style code needs to go in the Style tab of either "Globals" or a specific column.
(And you will also need to have the appropriate box checked in either case:
  • Use global variables for display, for the former
  • Use custom style spec, for the latter)

Columns UI

Reply #2919
Looks to me like he uses some kind of custom tag on his files like %lasttrack% or %totaltracks% to indicate the last track of an album.

.I can't get any other themes to do it either.  Even ones that have the code put directly into the Column rather than placed in the Global tab.

Columns UI

Reply #2920

Looks to me like he uses some kind of custom tag on his files like %lasttrack% or %totaltracks% to indicate the last track of an album.

.I can't get any other themes to do it either.  Even ones that have the code put directly into the Column rather than placed in the Global tab.


I don't think you correctly read what you just quoted. What he said is that he uses a custom tag, inside the file. Doesn't matter if the lasttrack code is there if you don't have the tags necessary.

 

Columns UI

Reply #2921
.I can't get any other themes to do it either.  Even ones that have the code put directly into the Column rather than placed in the Global tab.

I don't think you correctly read what you just quoted. What he said is that he uses a custom tag, inside the file. Doesn't matter if the lasttrack code is there if you don't have the tags necessary.

Hmm.. I may have read it wrong, but it did remind me that I could just add a tag to the last track of an album to do the underline.  But from what I understand (I'm still really new to this whole thing) there isn't anything in his code that references any other tag other than %tracknumber%.

These are the two lines that supposedly indicate the last track of an album from Kylith's .fcs.
Code: [Select]
$if($greater($len(%tracknumber%),4),$if($strcmp($num(%tracknumber%,2),$substr(%tracknumber%,4,5)),is_last=1))
$if($strcmp($len(%tracknumber%),3),$if($strcmp($num(%tracknumber%,1),$substr(%tracknumber%,3,3)),is_last=1))

Columns UI

Reply #2922
These are the two lines that supposedly indicate the last track of an album from Kylith's .fcs.
Code: [Select]
$if($greater($len(%tracknumber%),4),$if($strcmp($num(%tracknumber%,2),$substr(%tracknumber%,4,5)),is_last=1))
$if($strcmp($len(%tracknumber%),3),$if($strcmp($num(%tracknumber%,1),$substr(%tracknumber%,3,3)),is_last=1))

he checks for TOTALTRACKS in a foobar 0.8.3 style of way. This may or may not work at all in fb2k 0.9.

If you want an FCS which does not depend on custom tags to know the last track, try Navigator.
I am arrogant and I can afford it because I deliver.

Columns UI

Reply #2923
OOooohh, ok.  For some reason I assumed the "is_last" variable was being created there.  But anyway, I just added a %lasttrack% to the last tracks in each of the albums and told it to add a line to whatever track it saw with a LASTTRACK=1.  Might not be the best way of doing it, but it's working fine now

And thanks a lot for your help!

Columns UI

Reply #2924
I edited my previous post, check it again - his FCS may be incompatible with fb2k 0.9final.
I am arrogant and I can afford it because I deliver.