Hi, first time poster here, just getting started with XML gauges and hoping this isn't a stupid question...
I've successfully created a couple of simple XML gauges that use an Update section to define some L:var values. But in commencing a new gauge, I can't seem to get to first base even though I'm following the same structure.
Following is some test code that should display a white "20" on the image which is an almost-black rectangle. But it doesn't work and I don't know why. I've got GaugeDevDebug turned on, it doesn't report any errors when the gauge is loaded.
All that's displayed is the image (almost-black rectangle).
It works if I replace <GaugeString>%((L:FRED,number))</GaugeString> with <GaugeString>20</GaugeString>.
- Is there an error in my code?
- Is the Element being drawn before the Update section is processed?
Thanks,
David
I've successfully created a couple of simple XML gauges that use an Update section to define some L:var values. But in commencing a new gauge, I can't seem to get to first base even though I'm following the same structure.
Following is some test code that should display a white "20" on the image which is an almost-black rectangle. But it doesn't work and I don't know why. I've got GaugeDevDebug turned on, it doesn't report any errors when the gauge is loaded.
Code:
<SimBase.Document>
<SimGauge.Gauge id="DG Radio">
<Update>
<Script>
20 (>L:FRED,number)
</Script>
</Update>
<Image name="DG Radio back.bmp"/>
<Size>300,150</Size>
<Element id="Label">
<FloatPosition>100,100</FloatPosition>
<GaugeText>
<Size>30,30</Size>
<GaugeString>%((L:FRED,number))</GaugeString>
<FontColor>0xFFFFFF</FontColor>
<FontFace>Consolas</FontFace>
<FontHeight>14</FontHeight>
<HorizontalAlign>Center</HorizontalAlign>
<Bright>True</Bright>
</GaugeText>
</Element>
</SimGauge.Gauge>
</SimBase.Document>
All that's displayed is the image (almost-black rectangle).
It works if I replace <GaugeString>%((L:FRED,number))</GaugeString> with <GaugeString>20</GaugeString>.
- Is there an error in my code?
- Is the Element being drawn before the Update section is processed?
Thanks,
David









