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 Gauges et al..

Featured Replies

I am working on some vertical fuel quantity gauges, and I stuck when it comes to figuring out how the placement of the needle is figured out. Say my background image is 135 pixels high and 75 pixels wide. Full is at the top, Empty at the bottom, and there are incremental markings for 3/4 1/2 1/4. How do I figure out the placement of the needle for those markings? Do I plot it out in Paint shop pro, and transpose the reading into the gauge? I am stuck at this point. I have looked at the Baron fuel quantity gauge, it specifies the variable of rotate, and I figured out I need to use shift. But its the X Y coordinate stuff that is driving me bonkers.Thanks Dave

I figured that part out too, its just the needle placement in relation to the incremental marks on the bitmap that have driven me to near insanity. :)Dave

Hi Dave,Yes, it's the best way if you're using a Paint Programm to get the positions. For example:(A:Fuel tank left main level,part)The X and Y positions are the positions in your Gauge Bitmap that defines normally the end of the needle corresponding to the value. It's not really the end of needle more a direction of it but you are on the save side using the position of the needle. In the example X="26" Y="43" defines the endposition of the needle with 75% fuel. 26 and 43 are the points of your Gauge Bitmap so it's the best searching for the Bitmap measure in a Paint Programm.Best regardsMatthias

Matthias,Thanks a million. I did just that after I made the initial post...helps when you expend a few more brain cells just trying :)Thanks again.Dave

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.