I have this code for getting Luminous on my 2D panel
This visable the element with luminous="yes" only when panel light is on
my question is if its possible to use only single element and set luminous="yes"
with "IF" method for better performance ?
Code:
<Element>
<Visible>(A:LIGHT PANEL,Bool) 0 ==</Visible>
<Position X="160" Y="160"/>
<Image Name="attitude_or.bmp">
<Axis X="139" Y="139.5"/>
</Image>
<Rotate>
<Value>(A:Attitude indicator bank degrees, radians)</Value>
</Rotate>
</Element>
</Element>
<Element>
<Visible>(A:LIGHT PANEL,Bool) 1 ==</Visible>
<Position X="160" Y="160"/>
<Image Name="attitude_or.bmp" Luminous="Yes">
<Axis X="139" Y="139.5"/>
</Image>
<Rotate>
<Value>(A:Attitude indicator bank degrees, radians)</Value>
</Rotate>
</Element>
</Element>
This visable the element with luminous="yes" only when panel light is on
my question is if its possible to use only single element and set luminous="yes"
with "IF" method for better performance ?



