Skip to main content
Topic: Columns UI (Read 3886286 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Columns UI

Reply #7600
Hi musicmusic, I am experiencing a bug.
Under "Colours and fonts"... mode "custom"... font selection: the font and font-style sets fine, but the size cannot be changed. Whatever is selected, the size stays the same. Any fonts that I have set in an older version of CUI are fine, but anything I try to change now, just doesn't stick, and the size reverts to some default (looks like 10pt).

Latest CUI installed.

Re: Columns UI

Reply #7601
Hi musicmusic, I am experiencing a bug.
Under "Colours and fonts"... mode "custom"... font selection: the font and font-style sets fine, but the size cannot be changed. Whatever is selected, the size stays the same. Any fonts that I have set in an older version of CUI are fine, but anything I try to change now, just doesn't stick, and the size reverts to some default (looks like 10pt).

Latest CUI installed.

The same happens to me because of the foo_ui_hacks component.
When I want to change a font I install the version foo_ui_columns-1.0.0.fb2k-component, change the font and reinstall the latest version of columns ui.

Re: Columns UI

Reply #7602
The same happens to me because of the foo_ui_hacks component.
When I want to change a font I install the version foo_ui_columns-1.0.0.fb2k-component, change the font and reinstall the latest version of columns ui.

Yep, that was the culprit, thanks for letting me know! What a silly bug.
Though, no need to go through reinstalling CUI, it was enough just to take out foo_ui_hacks.dll and then bring it back after font changes.

I know it's a legacy buggy addon, but the captionless/borderless feature is invaluable and no other addon replicates it  :(

Re: Columns UI

Reply #7603
Help.
I can't find the correct syntax in the script I've written for the discnumber column of the playlist view.
I think it must be very easy for you and I would really appreciate it because I am really stuck.

This is the wrong line: $if($or(%tracknumber%,1,$strcmp($caps($cut(%bonus%,1)),'B')),

What I want it to do is: If %tracknumber%=1 or %bonus%=B then ……….

---------------------------------------------------------------------------------------------------------------------
$puts(maxcolum,45)

$if(%discnumber%,
$if($or(%tracknumber%,1,$strcmp($caps($cut(%bonus%,1)),'B')),
$get_global(tplay_nºcd)|$get_global(tplays_nºcd)

///Arial 9pt (susi antes) y Arial 8pt Bold (tati) punto
///'● '%discnumber%

///Arial 8pt Bold (tati)
///'★ '%discnumber%

///SegoeUiSymbol9pt(cosi) estrella
///' '%discnumber%

///SegoeUiSymbol9pt(cosi y susi) punto
' '%discnumber%

$if($strcmp($caps($cut(%totaldiscs%,1)),'R'),$tab(-1)
$get_global(tplay_nºcd_raya)|$get_global(tplays_nºcd_raya)
$puts(suma,0)
$ifgreater($len(%discnumber%),12,$puts(suma,1),)
$ifgreater($len(%discnumber%),25,$puts(suma,2),)
$ifgreater($len(%discnumber%),30,$puts(suma,3),)
$ifgreater($len(%discnumber%),40,$puts(suma,4),)
$ifgreater($len(%discnumber%),50,$puts(suma,5),)
$repeat(–,$add($get(maxcolum),$add(-$len(%discnumber%),$get(suma))))
)
,
$get_global(dimmed)|$get_global(dimmeds)        
)
)
$if(%_isplaying%,$tab()$get_global(tplay)|$get_global(tplays)
$padcut($repeat($get_global(plsym),$add($mod($right(%_time_elapsed%,2),4),0)),4))


Re: Columns UI

Reply #7604
What I want it to do is: If %tracknumber%=1 or %bonus%=B then ……….
I am not sure what you are trying to do exactly with the rest of it, I dont have any %bonus% tags, but this should help you with your highlighted line:

   $ifequal(%tracknumber%,1,$puts(var1,true),)
   $if($stricmp(%album%,single),$puts(var2,true),)
   $if($or($get(var1),$get(var2)),yes,no)

As an example here I am doing if tracknumber=1 OR album=single, write a yes in the playlist view column, otherwise write no.
You can write it in a single line, but for me it's cleaner to break down the logic into multiple lines... so the first two lines here are just setting the test variables, and the third performs the output you want.

Re: Columns UI

Reply #7605
What I want it to do is: If %tracknumber%=1 or %bonus%=B then ……….
I am not sure what you are trying to do exactly with the rest of it, I dont have any %bonus% tags, but this should help you with your highlighted line:

   $ifequal(%tracknumber%,1,$puts(var1,true),)
   $if($stricmp(%album%,single),$puts(var2,true),)
   $if($or($get(var1),$get(var2)),yes,no)

As an example here I am doing if tracknumber=1 OR album=single, write a yes in the playlist view column, otherwise write no.
You can write it in a single line, but for me it's cleaner to break down the logic into multiple lines... so the first two lines here are just setting the test variables, and the third performs the output you want.

Thank you very much for your answer.
I solved it satisfactorily.
I had gotten stuck trying to write a single sentence.

The %bonus% field is a metadata that I needed to create in order to do what I needed.

The script was like this:

//aqui se define la longitud máxima de la columna nºCD
$puts(maxcolum,47)

$if(%discnumber%,
$ifequal(%tracknumber%,1,$puts(var1,true),)
$if($strcmp($caps($cut(%bonus%,1)),'D'),$puts(var2,true),)

$if($or($get(var1),$get(var2)),

 $get_global(tplay_nºcd)|$get_global(tplays_nºcd)

///Arial 9pt (susi antes) y Arial 8pt Bold (tati) punto
///'● '%discnumber%

///Arial 8pt Bold (tati)
///'★ '%discnumber%

///SegoeUiSymbol9pt(cosi) estrella
///' '%discnumber%

///SegoeUiSymbol9pt(cosi y susi) punto
' '%discnumber%

$if($strcmp($caps($cut(%totaldiscs%,1)),'R'),$tab(-1)
 $get_global(tplay_nºcd_raya)|$get_global(tplays_nºcd_raya)
$puts(suma,0)
$ifgreater($len(%discnumber%),12,$puts(suma,1),)
$ifgreater($len(%discnumber%),25,$puts(suma,2),)
$ifgreater($len(%discnumber%),30,$puts(suma,3),)
$ifgreater($len(%discnumber%),40,$puts(suma,4),)
$ifgreater($len(%discnumber%),50,$puts(suma,5),)
$repeat(–,$add($get(maxcolum),$add(-$len(%discnumber%),$get(suma))))
)
,
 $get_global(dimmed)|$get_global(dimmeds)
)
)
$if(%_isplaying%,$tab() $get_global(tplay)|$get_global(tplays)
$padcut($repeat($get_global(plsym),$add($mod($right(%_time_elapsed%,2),4),0)),4))


I will take the opportunity to make another query.
In the image you see a line for CD1 and CD2 that goes to the end of the field. I don't know the command to do this. I have had to pull resources and write the following script:


$if($strcmp($caps($cut(%totaldiscs%,1)),'R'),$tab(-1)
$get_global(tplay_nºcd_raya)|$get_global(tplays_nºcd_raya)
$puts(suma,0)
$ifgreater($len(%discnumber%),12,$puts(suma,1),)
$ifgreater($len(%discnumber%),25,$puts(suma,2),)
$ifgreater($len(%discnumber%),30,$puts(suma,3),)
$ifgreater($len(%discnumber%),40,$puts(suma,4),)
$ifgreater($len(%discnumber%),50,$puts(suma,5),)
$repeat(–,$add($get(maxcolum),$add(-$len(%discnumber%),$get(suma))))
)
,
 $get_global(dimmed)|$get_global(dimmeds)
)

If you know the command to use I would really appreciate it.




Re: Columns UI

Reply #7607
Dear @musicmusic

I've been struggling a bit with what seemed to be an easy modification to my set up   O:)

Basically what I'm trying to achieve is to have some artists coloured in a colour which is different from the default one. To add more detail, say I'd like to have some artists names in red, while keeping all the rest at the default colour.

I've tried using something like this (thank you @davideleo):

Code: [Select]
$puts(ar,$stripprefix($lower(%artist%)))
$ifequal($strstr($get(ar),bach),1,$rgb(255,0,0),
$ifequal($strstr($get(ar),chopin),1,$rgb(255,0,0),
$ifequal($strstr($get(ar),velvet underground),1,$rgb(255,0,0),
)))$swapprefix(%artist%)

Point is he $rgb() function seems to alters the sort order:  the names in red are sorted after those beginning with a special characters and before those beginning with a number.

I'm still playing a little bit to try some workarounds (e.g. assigning a rgb code to all the artists with a certain tag, rather than relying on their names). But I'm wondering if this will solve the "sorting" issue with $rgb

Thank you,
RJ

Re: Columns UI => lost ability to resume a stopped/skipped track at the same pos

Reply #7608
Hi,
this comes originally from here, as I didn't realize, this is related to CUI....

lost ability to resume a stopped/skipped track at the same position

fb2k v1.5.3
CUI 1.4.1 (I use Playlist switcher Tab which I use to switch the playlists (and start playing a track) via doubleclicking on a playlist)


Some time ago, I was able to resume a track by doubleclicking on the playlist which contains that track.
The track would then start again at the same position, I had stopped it before.

Now, the track starts from the beginning, when doubleclicking on the playlist.

I wonder, where I have to go to get back my desired behaviour.

Did'nt find anything in the settings ...

Re: Columns UI

Reply #7609
Point is he $rgb() function seems to alters the sort order:  the names in red are sorted after those beginning with a special characters and before those beginning with a number.

I'm still playing a little bit to try some workarounds (e.g. assigning a rgb code to all the artists with a certain tag, rather than relying on their names). But I'm wondering if this will solve the "sorting" issue with $rgb
Colour codes are actually special characters. However, they are meant to be ignored when sorting.

Could you confirm how you are sorting? Are you clicking on a column title?

Also note that if a sorting script has been set for that column, and 'Use custom sorting script:' has been enabled, then that will be used to sort the column instead of what's in the Display script tab.

Some time ago, I was able to resume a track by doubleclicking on the playlist which contains that track.
The track would then start again at the same position, I had stopped it before.

Now, the track starts from the beginning, when doubleclicking on the playlist.

I wonder, where I have to go to get back my desired behaviour.
When you double-click on a playlist, all Columns UI does is set that playlist as the playing playlist and start playback. Resuming playback at a specified position wasn't Columns UI functionality. If you had that behaviour before, it may have been coming from another component.
.

Re: Columns UI

Reply #7610
Any way to sort Album list by descending order? Have an %added% tab but want the most recent entries to be displayed first.
Was using this initially on the tab:
Code: [Select]
$cut(%added%,10)

A user suggested this string but I don't think Album list supports $nodisplay:
Code: [Select]
$nodisplay{$sub(9999,$year(%added%))-$sub(99,$month(%added%))-$sub(99,$day_of_month(%added%))}$date(%added%)

Removing the leading "$nodisplay" shows something close to what I want. Help?

Re: Columns UI

Reply #7611
I would like to know the variable that allows obtaining total length of selected tracks (this is done by the standard status bar and I would like to apply it in my theme)

Re: Columns UI

Reply #7612
Hello.

I would like to know if there is any way to solve the following problem:
When I restore a .fcl I lose in the album list panel the color Active Item Frame

Thank you

Re: Columns UI

Reply #7613
I would like to know the variable that allows obtaining total length of selected tracks (this is done by the standard status bar and I would like to apply it in my theme)
It isn't available using title formatting in the status bar.

I would like to know if there is any way to solve the following problem:
When I restore a .fcl I lose in the album list panel the color Active Item Frame
Strange, it might be a bug. I'll have a look.
.

Re: Columns UI

Reply #7614
I would like to know the variable that allows obtaining total length of selected tracks (this is done by the standard status bar and I would like to apply it in my theme)
It isn't available using title formatting in the status bar.

I would like to know if there is any way to solve the following problem:
When I restore a .fcl I lose in the album list panel the color Active Item Frame
Strange, it might be a bug. I'll have a look.

Thanks for your answer:

It is clear that it must be a mistake because it takes me 4 or 5 years that I remember. I trust you can solve it.

Re: Columns UI

Reply #7615
I would like to know the variable that allows obtaining total length of selected tracks (this is done by the standard status bar and I would like to apply it in my theme)
It isn't available using title formatting in the status bar.

I would like to know if there is any way to solve the following problem:
When I restore a .fcl I lose in the album list panel the color Active Item Frame
Strange, it might be a bug. I'll have a look.

I would like to know the variable that allows obtaining total length of selected tracks (this is done by the standard status bar and I would like to apply it in my theme)
It isn't available using title formatting in the status bar.

I would like to know if there is any way to solve the following problem:
When I restore a .fcl I lose in the album list panel the color Active Item Frame
Strange, it might be a bug. I'll have a look.

The problem may be that the "Use Custom Active Item Frame" box is disabled.

 

Re: Columns UI

Reply #7616
Hi, is it possible to disable inline editing for the filter panel?

Re: Columns UI

Reply #7617
$set_font still exists in the wiki, but does it exist in the current plugin at all? I just get [UNKNOWN FUNCTION] when trying to use it. Is there a current documentation?

Re: Columns UI

Reply #7618
Works fine for me. You realise that documentation is for the Item details panel?

 
SimplePortal 1.0.0 RC1 © 2008-2020