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: Colors question in Panel Stack Splitter (Read 1751 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Colors question in Panel Stack Splitter

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?)

Colors question in Panel Stack Splitter

Reply #1
$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

Colors question in Panel Stack Splitter

Reply #2
$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.