- Messages
- 683
- Country

I'm working on a DME display. In it's current state it works, but I would like to have it show dashes instead of zeroes when there is not an active NAV:1 DME. Here's what I have now...
It's been a loooong time since I have worked with gauge xml. I was happy to get this far!
Code:
<Gauge Name="PL-4 DME" Version="1.0">
<Image Name="PL-4_DME_display.bmp"/>
<Element>
<Visible>(A:ELECTRICAL MASTER BATTERY,bool) (A:Circuit avionics on,bool) &&</Visible>
<Element>
<Position X="50" Y="10"/>
<Text X="200" Y="70" Length="5" Font="LCD" Color="Orange">
<String>%((A:NAV DME:1, nautical miles) abs)%!03.1f!</String>
</Text>
</Element>
<Element>
<Position X="200" Y="10"/>
<Text X="200" Y="70" Length="4" Font="LCD" Color="Orange">
<String>%((A:NAV DMESPEED:1, knots) abs)%!03d!</String>
</Text>
</Element>
<Element>
<Position X="300" Y="10"/>
<Text X="200" Y="70" Length="3" Font="LCD" Color="Orange">
<String>%((A:NAV DME:1, nautical miles) (A:NAV DMESPEED:1, knots) / 60 *) %!02d!</String>
</Text>
</Element>
<Element>
<Position X="50" Y="60"/>
<Text X="30" Y="25" Length="2" Font="Ariel" Color="Orange">
<String>%NM%</String>
</Text>
</Element>
<Element>
<Position X="200" Y="60"/>
<Text X="30" Y="25" Length="2" Font="Ariel" Color="Orange">
<String>%KT%</String>
</Text>
</Element>
<Element>
<Position X="310" Y="60"/>
<Text X="30" Y="25" Length="3" Font="Ariel" Color="Orange">
<String>%MIN%</String>
</Text>
</Element>
</Element>
</Gauge>
It's been a loooong time since I have worked with gauge xml. I was happy to get this far!



