I have decided to add a external power supply to my aircraft (it has one in real life). I found one thread that lead me to where I'm at. My question is i have two volt strings (one for the APU and one for the GPU. Is their a way to use L: var to have them work independently? The switches do, but cant get the strings to repeat. Thanks for any help.
Greg
Greg
Code:
<Gauge Name="Aux Power Control" Version="1.0">
<Image Name="aux_pwr_background.bmp"/>
<Element>
<Position X="88" Y="22"/>
<Select>
<Value Minimum="0" Maximum="2">(L:StartGroundCart,bool) (A:APU PCT STARTER, percent) near +</Value>
<Case Value="0">
<Image Name="popup_apu_switch_stop.bmp" Luminous="Yes"/>
</Case>
<Case Value="1">
<Image Name="popup_apu_switch_run.bmp" Luminous="Yes"/>
</Case>
<Case Value="2">
<Image Name="popup_apu_switch_start.bmp" Luminous="Yes"/>
</Case>
</Select>
</Element>
[COLOR="Red"] <Element>
<Position X="22" Y="8"/>
<Text Bright="Yes" X="50" Y="12" Length="8" Fixed="Yes" Font="Arial" Color="RED" FontHeight="14" Adjust="Center" VerticalAdjust="Center">
<String>%(1> (L:StartGroundCart,bool) ! and if 1 (A:APU:1 Volts, volts))%!3.1f! GPU d 0 == ?)%!3d!</String>
</Text>
</Element>
<Element>
<Position X="22" Y="20"/>
<Text Bright="Yes" X="50" Y="12" Length="8" Fixed="Yes" Font="Arial" Color="RED" FontHeight="14" Adjust="Center" VerticalAdjust="Center">
<String>%(1> (L:APU Run,number) ! and if 1 (A:APU Volts, volts))%!3.1f! APU d 0 == ?)%!3d!</String>
</Text>
</Element>[/COLOR]
<Element>
<Position X="20" Y="52"/>
<Select>
<Value>(A:BRAKE PARKING POSITION, bool)</Value>
<Case Value="0">
<Image Name="gpu_avail_off.bmp" Luminous="Yes"/>
</Case>
<Case Value="1">
<Image Name="gpu_avail_on.bmp" Luminous="Yes"/>
</Case>
</Select>
</Element>
<Element>
<Position X="125" Y="22"/>
<Select>
<Value Minimum="0" Maximum="2">(L:APU Run,number) (A:APU PCT STARTER, percent) near +</Value>
<Case Value="0">
<Image Name="popup_apu_switch_stop.bmp" Luminous="Yes"/>
</Case>
<Case Value="1">
<Image Name="popup_apu_switch_run.bmp" Luminous="Yes"/>
</Case>
<Case Value="2">
<Image Name="popup_apu_switch_start.bmp" Luminous="Yes"/>
</Case>
</Select>
</Element>
<Mouse>
<Area Left="90" Top="24" Width="18" Height="28">
<Cursor Type="Hand"/>
<Tooltip>START GPU</Tooltip>
<Click>1 (>L:StartGroundCart,bool) 1 (>K:APU_STARTER) 1 (>K:APU_GENERATOR_SWITCH_SET)</Click>
</Area>
<Area Left="90" Top="46" Width="18" Height="23">
<Cursor Type="Hand"/>
<Tooltip>STOP GPU</Tooltip>
<Click>0 (>L:StartGroundCart,bool) 0 (>K:APU_GENERATOR_SWITCH_SET) (>K:APU_OFF_SWITCH)</Click>
</Area>
<Area Left="127" Top="24" Width="18" Height="28">
<Cursor Type="Hand"/>
<Tooltip>Start APU</Tooltip>
<Click>1 (>L:APU Run,number) 1 (>K:APU_STARTER) 1 (>K:APU_GENERATOR_SWITCH_SET)</Click>
</Area>
<Area Left="127" Top="46" Width="18" Height="23">
<Cursor Type="Hand"/>
<Tooltip>Start APU</Tooltip>
<Click>0 (>L:APU Run,number) 0 (>K:APU_GENERATOR_SWITCH_SET) (>K:APU_OFF_SWITCH)</Click>
</Area>
</Mouse>
</Gauge>


