Skip to main content

Topic: Colors question in Panel Stack Splitter (Read 963 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • matif
  • [*]
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?)
  • Last Edit: 18 May, 2012, 07:05:23 AM by matif

  • Falstaff
  • [*][*][*][*][*]
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
  • Last Edit: 18 May, 2012, 08:27:39 AM by Falstaff

  • matif
  • [*]
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.
  • Last Edit: 19 May, 2012, 12:00:37 PM by matif