- Messages
- 1,084
- Country

I have modified a gauge I found here to have the bmp's I want for WWII B24J for the ground power electrical generator. I am able to get the background bmp and the start and stop bmps to show and seem to function when clicked properly. The Voltagte "Red" readout also shows but its 0.0 and does not go to 28Volts which it should when start is pushed. What is wrong with this code? I am enclosing the entire gauge. I'm guessing that the problem is with the voltage element but tried to find the answer in the MSN ESP SDK for gauges and could not find the answer so please help me out.
Code:
<Gauge Name="AF GPU" Version="1.0">
<Image Name="gpu.bmp"/>
<Element>
<Position X="158" Y="125"/>
<Select>
<Value>(L:StartGroundCart,bool)</Value>
<Case Value="1">
<Image Name="gpu_on.bmp"/>
</Case>
</Select>
</Element>
<Element>
<Position X="158" Y="172"/>
<Select>
<Value>(L:StartGroundCart,bool)</Value>
<Case Value="0">
<Image Name="gpu_off.bmp"/>
</Case>
</Select>
</Element>
<Element>
<Position X="158" Y="215"/>
<Text Bright="Yes" X="85" Y="30" Length="6" Fixed="Yes" Font="Arial" Color="RED" Adjust="Center" VerticalAdjust="Top">
<String>%((A:APU Volts, volts))%!3.1f! Volts) d 0 == ?)%!3d!</String>
</Text>
</Element>
<Mouse>
<Area Left="180" Top="140" Width="10" Height="30">
<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="180" Top="190" Width="10" Height="30">
<Cursor Type="Hand"/>
<Tooltip>STOP GPU</Tooltip>
<Click>0 (>L:StartGroundCart,bool)
0 (>K:APU_GENERATOR_SWITCH_SET) (>K:APU_OFF_SWITCH)
</Click>
</Area>
</Mouse>
</Gauge>



