Hi,
Sorry if this is posted previously, my search did not find anything related but perhaps I used the wrong keywords?
Ok, so I have an overhead panel with lots of switches and gauges etc, and I want to have some night lighting that is independant from the FS9 cabin light variable so I did the following:
1) Made a bitmap with the 'night lighting' which is mostly just the switch labels etc on a black (RGB 0,0,0) background and saved it in 256 colours format.
2) Made a small XML gauge that either shows the bitmap bright, or not bright, depending on the state of an L:Var (reads if there is power connected from any source).
3) Added it to the panel as the first entry - ie. all the other stuff /should/ be on top of it...
It looks like it is working just fine until the 'trigger' state is seen - ie available power is turned on or off - and the bmp does indeed change, but seems also to cover / hide all the other gauges on the overhead!!! It 'recovers' from this if I toggle the battery switch a couple of times, and a no power state is hopefully quite rare in FS operation, but still it is not ideal.
What have I done wrong, and what is the trick to fixing it?? I suppose there needs to be a way to make all the gauges re-draw after the change but I thought that they would do so per cycle..? The alternative would be to have overlayed panels I suppose but that leads to an awful mess if moving panels with the mouse or running FS in windowed mode...
Geoff
Sorry if this is posted previously, my search did not find anything related but perhaps I used the wrong keywords?
Ok, so I have an overhead panel with lots of switches and gauges etc, and I want to have some night lighting that is independant from the FS9 cabin light variable so I did the following:
1) Made a bitmap with the 'night lighting' which is mostly just the switch labels etc on a black (RGB 0,0,0) background and saved it in 256 colours format.
2) Made a small XML gauge that either shows the bitmap bright, or not bright, depending on the state of an L:Var (reads if there is power connected from any source).
3) Added it to the panel as the first entry - ie. all the other stuff /should/ be on top of it...
Code:
<Gauge Name="GC_oVERHEAD_lIGHTS" Version="1.0">
<Update Frequency="6"/>
<Size X="2048" Y="1518"/>
<Element>
<Select>
<Value>(L:ElecAVAIL, enum)</Value>
<Case Value="0">
<Position X="0" Y="0"/>
<Image Name="over717_LTS.bmp" Bright="No" Luminous="No"/>
</Case>
<Case Value="1">
<Position X="0" Y="0"/>
<Image Name="over717_LTS.bmp" Bright="Yes" Luminous="Yes"/>
</Case>
</Select>
</Element>
</Gauge>
It looks like it is working just fine until the 'trigger' state is seen - ie available power is turned on or off - and the bmp does indeed change, but seems also to cover / hide all the other gauges on the overhead!!! It 'recovers' from this if I toggle the battery switch a couple of times, and a no power state is hopefully quite rare in FS operation, but still it is not ideal.
What have I done wrong, and what is the trick to fixing it?? I suppose there needs to be a way to make all the gauges re-draw after the change but I thought that they would do so per cycle..? The alternative would be to have overlayed panels I suppose but that leads to an awful mess if moving panels with the mouse or running FS in windowed mode...
Geoff


