Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML - For A Change... ;)

Featured Replies

  • Moderator

Is it possible to use something like:

<Polygon Color="Cyan" Bright="yes">	<Point X="0" Y="0"/>	<Point X="4" Y="0"/>	<Point X="2" Y="3"/></Polygon>

in a

<Value>(A:NAV1 TOFROM,ENUM)</Value>  <Case Value="0">

statement, as a direct replacement for a bitmap?I wish to replace all the bitmaps with vector drawing instructions in a gauge I'm working on, and this seems to be a minor roadblock... ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Bill,I've had no success replacing the s in an XML "case" statement with anything else, tho I haven't specifically tried Polygons. My guess is that is simply a restatement of the C-language MAKE_ICON structure...Douglas

  • Moderator

>Bill,>I've had no success replacing the s in an XML "case">statement with anything else, tho I haven't specifically tried>Polygons. My guess is that is simply a restatement of>the C-language MAKE_ICON structure...You may well be right. Were this in C it would be much easier, but the C translation will take too long at this time, so I'm working on getting the XML version ready first.I'll simply have to replace the routine with a sequence of "if" conditons instead... ;)It just seems silly to have a green triangle displayed with a bitmap instead of a filled !

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Extract from my HSI (A:HSI TF flags, ENUM) 1 ==(A:NAV1 OBS,radians) (A:Plane heading degrees gyro,radians) -Hope this helpsnick

  • Moderator

>Extract from my HSI>Hope this helps>nickIt most certainly does, Nick! Thanks!

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Very nice, I think this is one for the snippet archive... heheh, I'm like a school boy when I find cool new stuff.CheersShad

  • 3 years later...
  • Moderator

Quoted and re-edited to recover the XML Script!

<!--TO pointer-->   <Element><Visible>(A:HSI TF flags, ENUM) 1 ==</Visible>	  <Position X="188" Y="200"/><Polygon FillColor="White" Luminous="Yes">	<Point X="38" Y="-16"/>	<Point X="20" Y="-16"/>	<Point X="29" Y="-32"/>	<Point X="38" Y="-16"/></Polygon>			   	  <Rotate>		 <Value>(A:NAV1 OBS,radians) (A:Plane heading degrees gyro,radians) -</Value>	  </Rotate>   </Element>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.