HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: matif on 2012-05-18 11:55:42

Title: Colors question in Panel Stack Splitter
Post by: matif on 2012-05-18 11:55:42
Hello, I want to use two colors in Panel Stack Splitter, but I can't.
Hope someone help me.
This is the line I wrote.
Code: [Select]
$drawstring($rgb(128,128,128)%artist%$rgb() %title%,15,210,220,100,0-128-255)

I want it be → Artist - Title
But it shows → 808080Artist - Title
Could anyone help me?
Thank you very much!
(Is it right to post 3rd Party Plugin question here?)
Title: Colors question in Panel Stack Splitter
Post by: Falstaff on 2012-05-18 13:27:25
$rgb() not supported in PSS functions like $drawstring or $drawtextex ... color parameter is used for the whole text (%artist% + %title% in your example).
to do what you want, you have to use 2 $drawstring(..) functions, but you have to calculate the width of %artist% first (check documentation to find the right function that allow to calculate width in pixek of a text for a specified Font)

HTH
Title: Colors question in Panel Stack Splitter
Post by: matif on 2012-05-19 16:19:20
$rgb() not supported in PSS functions like $drawstring or $drawtextex ... color parameter is used for the whole text (%artist% + %title% in your example).
to do what you want, you have to use 2 $drawstring(..) functions, but you have to calculate the width of %artist% first (check documentation to find the right function that allow to calculate width in pixek of a text for a specified Font)

HTH


It is helped that you want to replay my question.
Thank you!
And I like all your skins very much!

By the way, I finally known why you show tooltip as before behavior.
Sorry for bad idea.