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: Default UI: Hiding title text in custom grouping? (Read 908 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Default UI: Hiding title text in custom grouping?

Suppose my grouping scheme is simply %artist%. This properly draws a horizontal line between tracks which are by different artists, but it also shows their common artist in the group title:

Artist 1 --------------------------------
Track 1
Track 2
Artist 2 --------------------------------
Track 1
Track 2

Is it possible to hide the grouping scheme's text, such that the line is introduced according to the %ALBUM% field without displaying the contents of the album field? Using the earlier example, it would ideally look like this:

--------------------------------
Track 1
Track 2
--------------------------------
Track 1
Track 2


I don't think there's an inbuilt way of turning text on/off within Default UI, but perhaps someone smarter than me has a title formatting trick up their sleeve...!

 

Re: Default UI: Hiding title text in custom grouping?

Reply #1
You can come close by turning the grouping text into a series of invisible characters. The characters I found as usable (depending on the font) still have some width, so you will see some whitespace before the line. The longer the whitespace you accept, the less chance for two groupings to clash and merge.

Replace everything in $crc32() with whatever you want to group by.

Code: [Select]
$puts(temp,$crc32([%releaseflags%][%releasedate%][%releasetype%][%label%][%catalognumber%][%media%][%matrix%][%__codec%]))$replace($select($add($mod($get(temp),9),1),00,01,02,10,11,12,20,21,22)$select($add($mod($div($get(temp),9),9),1),00,01,02,10,11,12,20,21,22),0,$char(8201),1,$char(8202),2,$char(8198))

Re: Default UI: Hiding title text in custom grouping?

Reply #2
You can come close by turning the grouping text into a series of invisible characters. The characters I found as usable (depending on the font) still have some width, so you will see some whitespace before the line. The longer the whitespace you accept, the less chance for two groupings to clash and merge.

Replace everything in $crc32() with whatever you want to group by.

Code: [Select]
$puts(temp,$crc32([%releaseflags%][%releasedate%][%releasetype%][%label%][%catalognumber%][%media%][%matrix%][%__codec%]))$replace($select($add($mod($get(temp),9),1),00,01,02,10,11,12,20,21,22)$select($add($mod($div($get(temp),9),9),1),00,01,02,10,11,12,20,21,22),0,$char(8201),1,$char(8202),2,$char(8198))

Ingenious! Thank you very much!

Re: Default UI: Hiding title text in custom grouping?

Reply #3
Nice. That is some mastermind level stuff, j7n. 8)