Hi, thanks, but that was from the default baron and alone it's working.
Anyway I'll try (again) with this, but best I can obtain it's working both but not together.
I made a gau
Okay, you are just confusing me (and likely everyone else) now...
First, you need to state which sim you're developing for: FS9 or FSX?
Second, the example from the Beech_Baron.cab file is an "enumerated" variable, not a "boolean."
A "boolean" variable has two states: 0 or 1 (that is off/on, or true/false).
An "enumerated" variable can have many states: -1, 0, 1, 2, 3, 4... and so on...
Code:
<Gauge Name="Left Ignition Switch" Version="1.0">
<Element>
<Select>
<Value>(A:Old eng1 starter,enum)</Value>
<Case Value="0">
<Image Name="Ignition_Left_Off.bmp" ImageSizes="48,31,77,50"/>
</Case>
<Case Value="1">
<Image Name="Ignition_Left_R.bmp" ImageSizes="48,31,77,50"/>
</Case>
<Case Value="2">
<Image Name="Ignition_Left_L.bmp" ImageSizes="48,31,77,50"/>
</Case>
<Case Value="3">
<Image Name="Ignition_Left_Both.bmp" ImageSizes="48,31,77,50"/>
</Case>
<Case Value="4">
<Image Name="Ignition_Left_Start.bmp" ImageSizes="48,31,77,50"/>
</Case>
</Select>
</Element>
<Mouse>
<Help ID="HELPID_GAUGE_MAGNETO_SWITCH"/>
<Area Right="19">
<Cursor Type="DownArrow"/>
<Click Event="MAGNETO1_DECR"/>
</Area>
<Area Left="19">
<Cursor Type="UpArrow"/>
<Click Event="MAGNETO1_INCR"/>
</Area>
</Mouse>
</Gauge>
The (A:Old eng1 starter,enum) was added to the sim's core .dll in order to make this specific XML script compatible with FSX. The (A:Old eng1 starter,enum) variable has actually been removed from the FSX SDK entirely, and normally one would use (A:RECIP ENG LEFT MAGNETO:
n) instead (where
n is an index from 1 to 4)...
Since a magneto switch commonly is simply a mechanical, four position switch, limiting it to "move" only when the battery is turned on is highly unrealistic!
Please describe precisely what it is you want to happen and we'll do our best to help you find a way to accomplish your goal, providing it makes sense of course...
Also, please understand that when you use a term such as "gau" you are generating confusion, since that specific term is associated with .gau files, which are compiled C++ code, not XML script "gauges."