I am new to working with XML and gauges. I am needing to change values at other times than at a mouse click. I need to be able to do it with an element.
The first thing I am doing is having one gauge setting L: variables for another gauge. The mouse click works but, at startup, I am wanting to set defaults. I have seen simular code in FSX and I am trying to adapt the logic to FS9. I have been trying the following:
//---------- Initialize Local Values ----------//
<Element>
<Update>
(L:Init) 0 == if{
1 (>L
isplay Scale)
1 (>L:MapItem Shown)
2 (>L:EFIS Mode)
1 (>L:Init) }
</Update>
</Element>
I have tried removing the <Element/> as this is the first statements in the gauge and I have removed the condition which I thought would have just made these constants. It looks like this whole <Update/> group is just being ingored.
thanks,
wayne
The first thing I am doing is having one gauge setting L: variables for another gauge. The mouse click works but, at startup, I am wanting to set defaults. I have seen simular code in FSX and I am trying to adapt the logic to FS9. I have been trying the following:
//---------- Initialize Local Values ----------//
<Element>
<Update>
(L:Init) 0 == if{
1 (>L
1 (>L:MapItem Shown)
2 (>L:EFIS Mode)
1 (>L:Init) }
</Update>
</Element>
I have tried removing the <Element/> as this is the first statements in the gauge and I have removed the condition which I thought would have just made these constants. It looks like this whole <Update/> group is just being ingored.
thanks,
wayne




