[jhb_airlines] Re: FSX - XML Gauges

  • From: "Bones" <bones@xxxxxxx>
  • To: <jhb_airlines@xxxxxxxxxxxxx>
  • Date: Thu, 19 Oct 2006 18:48:49 +0100

NAV1 should be easy enough but don't forget to add code that creates dashes
on the display to show when the unit is on but not receiving a valid signal.
Something like the string below which gives distance and frequency:
<String>%((A:NAV1 SIGNAL, bool))%{if}%((A:NAV1 DME, nmiles))%!03.1f!
%((A:NAV1 ACTIVE FREQUENCY,MHz))%!03.2f!%{else}--- -----%</String>
For NAV1 ident don't forget that you have to be careful not to use the code
for aural ident rather than the station morse ID.

-----Original Message-----
From: jhb_airlines-bounce@xxxxxxxxxxxxx
[mailto:jhb_airlines-bounce@xxxxxxxxxxxxx] On Behalf Of FrankTurley@xxxxxxx
Sent: 19 October 2006 15:57
To: jhb_airlines@xxxxxxxxxxxxx
Subject: [jhb_airlines] Re: FSX - XML Gauges

In a message dated 19/10/2006 09:35:23 GMT Daylight Time, bones@xxxxxxx

Unless someone has already looked at this we can't be sure that FSX uses the
same Variable list as FS2004. Technically it should because the gauges are
supposed to be backward compatible but we know from past releases that cock
ups aren't all that rare. Like when they changed the scenery engine code
between FS5 and FS5.1 which resulted in any mountains that users had
designed that had a height of exactly 4000ft now rose to infinity in FS5.1 -
a barrel of laughs that was.
What A variable are you trying to display?

Just got back from work, found a typo in my expression, now fixed and it
works, hooray!
I've now got a gauge which shows the text "AIRSPD" plus a digital airspeed
reading, using the evaluated text - %AIRSPD %((AIRSPEED INDICATED,
knots))%!4.1f! - straight out of the previous version.
What I was hoping to do was to create a gauge with 2 elements, the first
containing the "AIRSPD", the second containing the evaluation. This is
because I want to progress to a Nav gauge showing "NAV1", the code, the
frequency, "DME" and the DME value, and I thought this would be easier to
tackle using individual elements.
I will now go back to my original multi-element version and see if I can get
there. The thing I need to understand is how to glue the elements together.
Frank T.

Other related posts: