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: [for Skins v1.5.0] Title Formatting - custom %tag% (Read 810 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[for Skins v1.5.0] Title Formatting - custom %tag%

When using custom tag, it is not displayed when selecting a file from the library, it is displayed only by selecting the file from internal storage.

for example using %RATING%

Code: [Select]
[rectangle]
background
0,0,2250,4000

[rectangle]
25,25,25
100,140,2050,1740

[albumart]
125,5,2000,2000
main

[button]
125,505,1000,1000
skipback
blank.png
skipprev.png
blank.png
skipprev.png

[button]
1125,505,1000,1000
skipnext
blank.png
skipnext.png
blank.png
skipnext.png

[button]
2000,1875,150,140
menu
menu.png
menu-h.png
menu.png
menu-h.png

[frame]
0,255,0
100,100,3800,2050

//////////////////////////////////////////////////////////////////
// playing
//////////////////////////////////////////////////////////////////
*if playing

[image]
foobar2000.png
100,25,120,100

[label]
225,50,1575,75
left
$if(%TRACKNUMBER%,[TRACK# %TRACKNUMBER%][/%TOTALTRACKS%][ - DISC# %DISCNUMBER%][/%TOTALDISCS%],foobar2000)

[label]
1700,25,450,100
right
$if(%LENGTH%,$ifequal(%RATING%,0,$repeat($char(9734),5),)$ifequal(%RATING%,1,$char(9733)$repeat($char(9734),4),)$ifequal(%RATING%,2,$repeat($char(9733),2)$repeat($char(9734),3),)$ifequal(%RATING%,3,$repeat($char(9733),3)$repeat($char(9734),2),)$ifequal(%RATING%,4,$repeat($char(9733),4)$repeat($char(9734),1),)$ifequal(%RATING%,5,$repeat($char(9733),5),),)

[label]
50,1950,200,200
centered
[font-artist]$if([%ARTIST%],$char(127908),)

[label]
300,1975,1900,175
left
[font-artist] [%ARTIST%] [%ARTISTCOUNTRY%]

[label]
50,2200,200,200
centered
[font-title]$if([%TITLE%],$char(127925),)

[label]
300,2225,1900,175
left
[font-title] [%TITLE%]

[label]
50,2450,200,200
centered
[font-album]$if([%ALBUM%],$char(128191),)

[label]
300,2475,1900,175
left
[font-album]$if([%ALBUM%], %ALBUM% $if([%YEAR%], '('%YEAR%')' , ) ,)

[rectangle]
25,25,25
25,2700,2225,500

[label]
50,2700,2150,125
centered
[font-info][%GENRE%]


[label]
50,2825,2150,125
centered
[font-info][%__CODEC%][ %CODEC_PROFILE%] [font-seperator]•[font-info] [%BITRATE% kbps] [font-seperator]•[font-info] [%SAMPLERATE% Hz] [font-seperator]•[font-info] [$caps(%CHANNELS%)]

[label]
50,2950,2150,125
centered
[font-info]%PATH%

[label]
50,3075,2150,100
centered
[font-info][i][RG TG: %REPLAYGAIN_TRACK_GAIN%] [font-seperator]•[font-info][i] [TP: %REPLAYGAIN_TRACK_PEAK_DB%] [font-seperator]•[font-info][i] [AG: %REPLAYGAIN_ALBUM_GAIN%] [font-seperator]•[font-info][i] [AP: %REPLAYGAIN_ALBUM_PEAK_DB%]


//////////////////////////////////////////////////////////////////
// not playing
//////////////////////////////////////////////////////////////////
*else

[image]
foobar2000.png
100,25,120,100

[label]
225,50,1575,75
left
foobar2000

[label]
50,2200,2200,200
centered
[font-info]Not Playing

//////////////////////////////////////////////////////////////////
// not playing end
//////////////////////////////////////////////////////////////////
*end

[position]
50,3260,2150,140
position-marker-140.png
position-2150-140.png
position-2150-140-highlighted.png

[label]
50,3400,400,100
left
[currentposition]

[label]
1800,3400,400,100
right
$if(%LENGTH%,%LENGTH%,$char(8734))

//[volume]
//500,3300,1250,250
//volume-marker.png
//volume-1555-250.png
//volume-1555-250-highlight.png

//[rectangle]
//25,25,25
//100,3535,2050,300

[button]
100,3500,350,350
shuffle
shuffle.png
shuffle-h.png
shuffle-d.png
shuffle-h.png

[button]
500,3500,350,350
skipback
skipprev.png
skipprev-h.png
skipprev.png
skipprev-h.png

[button]
950,3500,350,350
playnpause
play.png
play-h.png
pause.png
pause-h.png

[button]
1400,3500,350,350
skipnext
skipnext.png
skipnext-h.png
skipnext.png
skipnext-h.png

[button]
1800,3510,350,350
repeat
repeat.png
repeat-h.png
repeat-d.png
repeat-h.png



//////////////////////////////////////////////////////////////////
// track to play next
//////////////////////////////////////////////////////////////////
*if next

[rectangle]
40,40,40
200,1550,1850,250

[albumart]
225,1550,250,250
next

[label]
475,1650,1500,80
left
Next: [font-artist][nextartist] - [font-title][nexttitle]

//////////////////////////////////////////////////////////////////
// track to play next end
//////////////////////////////////////////////////////////////////
*end



From library not evaluated



From storage evaluated