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: Modification of Track Display (Read 2546 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Modification of Track Display

Actually all I want to do is enter an empty line. Wanting the following text to go underneath.

Code: [Select]
$drawrect(0,0,0,0,pencolor-null brushcolor-SYSCOL-15)
$padding(2,4)$align(center,middle)$font(,13,,SYSCOL-8)
$if(%_trackinfo_notrack%,
    No track
,
    [b]%title%$char(10)
        $font(,9,bold,SYSCOL-8)%artist%$char(10)[/b]
)


I have the two bold lines. If I duplicate the "artist" line and make it go underneath, I can change %artist% to %album% and then have a more detailed Track Info. That's what I wanna do. How to make it go underneath...
Heavy Metal Is the Law!!!
---Let 'Em Eat Metal---

Modification of Track Display

Reply #1
Code: [Select]
%title%$char(10)
$font(,9,bold,SYSCOL-8)%artist%$char(10)

I have the two bold lines. If I duplicate the "artist" line and make it go underneath, I can change %artist% to %album% and then have a more detailed Track Info. That's what I wanna do. How to make it go underneath...
You can either use another $char(10) to add a blank line:
Code: [Select]
%title%$char(10)
$char(10)
$font(,9,bold,SYSCOL-8)%album%$char(10)
$font(,9,bold,SYSCOL-8)%artist%$char(10)

Or rewrite the entire function using $alignabs() to give you better control over the flow of text:
Code: [Select]
$font(,9,bold,SYSCOL-8)
$alignabs(0,-10,%_width%,%_height%,center,middle)%title%
$alignabs(0,10,%_width%,%_height%,center,middle)%album%
$alignabs(0,20,%_width%,%_height%,center,middle)%artist%

Modification of Track Display

Reply #2
Many thanks mate! It works like a charm!

Another question. What do I add in order to change the font size of each element?
Heavy Metal Is the Law!!!
---Let 'Em Eat Metal---

 

Modification of Track Display

Reply #3
To change the font settings for each line simply use a $font() command on each line:
Code: [Select]
$alignabs(0,-10,%_width%,%_height%,center,middle)$font(Tahoma,12,bold,0-0-0)%title%
$alignabs(0,10,%_width%,%_height%,center,middle)$font(Verdana,8,bold,0-255-0)%album%
$alignabs(0,20,%_width%,%_height%,center,middle)$font(Tahoma,7,italic,0-0-255)%artist%