Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
<part>
<name>gear_control_light</name>
<visible_in_range>
<parameter>
<sim>
<variable>GEAR CENTER POSITION</variable>
<units>percent</units>
</sim>
</parameter>
<minvalue>90</minvalue>
</visible_in_range>
</part>
<part>
<name>gear_control_light</name>
<visible_in_range>
<parameter>
<code>
(A:GEAR CENTER POSITION, percent) 90 >
if{ 1 } els{ 0 } }
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<Name>TEST_SWITCH</Name>
<Animation>
<Parameter>
<Code>(L:testswitch, bool) 100 *</Code>
<Lag>600</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<tooltip_id>TEST_L:VARIABLES</tooltip_id>
<callback_code>
(L:testswitch, bool) ! (>L:testswitch, bool)
</callback_code>
</MouseRect>
</part>
<part>
<Name>TEST_VISIBILITY</Name>
<visible_in_range>
<Parameter>
<Code>(L:testswitch, number) 100 *</Code>
<Lag>10</Lag>
</Parameter>
<minvalue>0</minvalue>
<maxvalue>50</maxvalue>
</visible_in_range>
</part>
<part>
<name>lhc_pilot_selector</name>
<animation>
<parameter>
<code>
(Lress,bool) 10 *
</code>
<lag>100</lag>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Pilot Selector System (%((LILOT SHOW,enum))%{case}%{:0}Male)%{:1}Female)%{:2}Couple)%{:3}Empty)%{End}</tooltip_text>
<mouse_flags>LeftSingle+LeftRelease</mouse_flags>
<callback_code>(M:Event) 'LeftSingle' scmp 0 == if{ (LILOT SHOW,enum) 1 + 4 % (>LILOT SHOW,enum) 1 (>L:XMLSND4,enum) 1 (>Lress,bool) } (M:Event) 'LeftRelease' scmp 0 == if{ (>Lress,bool) }</callback_code>
</mouserect>
</part>
<part>
<name>lhc_pilot_male</name>
<visible_in_range>
<parameter>
<code>(LILOT SHOW,enum) 0 ==</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<name>lhc_pilot_female</name>
<visible_in_range>
<parameter>
<code>(LILOT SHOW,enum) 1 ==</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<name>lhc_pilot_couple</name>
<visible_in_range>
<parameter>
<code>(LILOT SHOW,enum) 2 ==</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<name>lhc_no_pilots</name>
<visible_in_range>
<parameter>
<code>(LILOT SHOW,enum) 3 ==</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
Rather that bombard you with complicated examples, let me instead point you to a generic set of FS9 XML Scripts that may be used for many different things:Oh yeah - ashes over my Head.
FS9 for the first Part please, dear Uncle Bill.
Thanks a lot for your help.
If I need them Bill I will stay by your door and make bimmel bimmel.
Rather that bombard you with complicated examples, let me instead point you to a generic set of FS9 XML Scripts that may be used for many different things:
http://www.aerodynamika.com/cgi-bin/yabb2/YaBB.pl?num=1145369292
Note that this is one of many examples that're contained in this XML Script repository, so it might help to bookmark this forum for future reference...
Roger that.
So many cool things one can do with visibilities...
<part>
<name>Pilot</name>
<visible_in_range>
<parameter>
<code>
(A:GENERAL ENG1 THROTTLE LEVER POSITION, percent) 0 >
if{ 1 } els{ 0 }
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<name>Pilot</name>
<visible_in_range>
<parameter>
<code>
(A:SIM ON GROUND,bool) 1 ==
(A:PARTIAL PANEL ELECTRICAL,enum) 1 ==
(A:GENERAL ENG1 COMBUSTION, bool) 0 ==
(A:GROUND VELOCITY, knots) 1 <
&& && &&
if{ 1 } els{ 0 }
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<name>Pilot</name>
<visible_in_range>
<parameter>
<code>
(A:LIGHT BEACON, bool) 1 ==
if{ 1 } els{ 0 }
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<name>Pilot</name>
<visible_in_range>
<parameter>
<code>
(E:TIME OF DAY, enum) 3 ==
if{
(A:LIGHT BEACON, percent) 50 >
(A:LEFT WHEEL RPM, rpm) 0 < or
if{ 1 } els{ 0 }
}
els{
(A:LIGHT NAV, percent) 50 >
(A:LIGHT CABIN, percent) 50 < and
if{ 1 } els{ 0 }
}
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<code>
(A:SIM ON GROUND,bool) 1 ==
(A:PARTIAL PANEL ELECTRICAL,enum) 1 ==
(A:GENERAL ENG1 COMBUSTION, bool) 0 ==
(A:GROUND VELOCITY, knots) 1 <
&& && &&
if{ 1 } els{ 0 }
</code>