- Messages
- 53
- Country

Hi, I want to change the fontcolor with script depending on a lvar value.
What I have:
Do I have to use for Color a macro? Or should I use ColorScript if existing?
That is the part I want to combine with the upper TextElement.
Can someone give me a hint, please?
What I have:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<Gauge Name="BaroDisp">
<Image Name="BaroDisp.bmp"/>
<Element>
<Visible>(L:Avail, number) 1 ==</Visible>
<Element>
<Position X="10" Y="12"/>
<Text X="123" Y="35" Length="6" Fixed="Yes" Font="Digit" FontSize="38" Attributes="Bold" Color="#C86B20" BackgroundColor="transparent" HilightColor="white" Bright="Yes" UseTransparency="Yes">
<String>%((A:KOHLSMAN SETTING MB, millibars) near)%!4d!</String>
</Text>
</Element>
</Element>
</Gauge>
Do I have to use for Color a macro? Or should I use ColorScript if existing?
That is the part I want to combine with the upper TextElement.
XML:
(L:DISPLAY_Rotary, number) 0 == if{ #FF0000 }
(L:DISPLAY_Rotary, number) 1 == if{ #FF0B00 }
(L:DISPLAY_Rotary, number) 2 == if{ #FF1600 }
(L:DISPLAY_Rotary, number) 3 == if{ #FF2000 }
(L:DISPLAY_Rotary, number) 4 == if{ #FF2B00 }
Can someone give me a hint, please?

