On the fly cannot be done.
if you change the value of the variable used for the font colour in a label you will need to reload that screen for the effect to take.
I should like to change the colour of a label on the fly .
I know that the DEFINE method exist but only into an include or a skin file.
I have tried that but without success !
I should like well a command as:Code:L04,551,192,101,38,$RRR$,$VVV$,$BBB$,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
DEFINE;color;255,128,0 , with the normal format:
orCode:L04,551,192,101,38,#COLOR#,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
DEFINE;RRR;255
DEFINE;VVV;0
DEFINE;BBB;0
with the normal format:
Thanks for all help !!!Code:L04,551,192,101,38,#RRR#,#VVV#,#BBB#,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
Last edited by pierrotm777; 03-06-2012 at 10:26 AM.
On the fly cannot be done.
if you change the value of the variable used for the font colour in a label you will need to reload that screen for the effect to take.
Yes.
That's how my iDrive skin does it.
Oh and we call them RGB
Green not Vert![]()
Are you trying to do this in a plugin or just a skin?
Anyway I have a colours.skin file which is included in a top.skin which in turn is included in all the .skin files.
However you could just put the commands in the .skin file.
colours.skin has
/DEFINE Selected $SelectedFont$
/DEFINE Fore $ForeFont$
/DEFINE Contrast $ContrastFont$
/DEFINE Test $TestFont$
and labels are
Code:L,210,50,102,22,#Fore#,15,"Tahoma:B","idrive_postcode", L,320,50,102,22,#Contrast#,15,"Tahoma","rrfp_postcode", L,670,105,110,32,#Selected#,24,"Tahoma:B","rrfp_0_price","CENTER"
I want that my plugin change the colour of a label if a status of a var is true or false.
Ok,
Into my.skin , i have added:
/DEFINE Test $TestFont$
and my label is:
L04,343,36,101,38,#Test#,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
I suppose that i define my variable like that:
setvar;testfont;255,255,255 ?
But that don't run !
That looks right, you need a reloadscreen afterwards though.
From the iDrive config plugin.
setvar;ContrastFont;255,255,0||reloadscreen
Bear in mind you will need to save the values to the skin.ini as well if you want them to be the same when you restart the skin.
@pierrotm777
i have your same problem.. i have follow your message but it not work...
can you tell the exact command for change color ?
thank you
Bookmarks