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.

Adding gauge to fixed window

Featured Replies

Hello,I'm trying to add click spots on side panels so I can switch to different views without using keypad. However, the problem i'm having when I tried to add a gauge to side panel, the icon doesn't show as if it wasn't added in the first place.What do I need to be able to add a gauge on a 2d side panel?This is the xml gauge i used to add on FORWARD_RIGHT panel.<Gauge Name="click area" Version="1.0"> <Image Name="icon.bmp" ImageSizes="12,12,19,19"/> <Mouse> <Cursor Type="Hand"/> <Click Event="VIEW_FORWARD"/> </Mouse></Gauge>

--------------------------------------
Cheers,

iflycap.jpg
 

  • Author

Could someone please help me with this or point to the right direction :(

--------------------------------------
Cheers,

iflycap.jpg
 

Hi,OK, no Icon, but does the gauge work?(i always use invisible clickspots to change vieuws)Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author
Hi,OK, no Icon, but does the gauge work?(i always use invisible clickspots to change vieuws)Jan
Hi Jan,Would you mind if you share your xml code?

--------------------------------------
Cheers,

iflycap.jpg
 

Hi,First: the panel.cfgYou have your [windowxx] , with the gauges and [fixed windowxx] with vieuws and artwork, and gauges?.I give an example:Say in [fixed window30] looking forward right as defined by:VIEW_FORWARD_RIGHT_WINDOWS=30VIEW_FORWARD_RIGHT_EYE=0.0, 0.0, 0.0VIEW_FORWARD_RIGHT_DIR=8.0, 0.0, 45VIEW_FORWARD_RIGHT_ZOOM=0.9you could see a radio panel covering half the window on the left side, right side is outside vieuw.So there is the bitmap, the artwork, on the left side.Now look for a place where you want your gauge, say in the left upper corner.Then you must define that place in the panel.cfg:[Fixed Window30]file=your artwork.bmp // in the panel directory of the aircraftsize_mm=1280,960position=0visible=0ident=30render_3d_window=1nomenu=1gauge00=your gauges directory!vieuw, 0, 0, // i called the gauge vieuw, any name is okThe gauge is:<Gauge Name="vieuw1" Version="1.0"><Size X="40" Y="40"/><Mouse><Area Left="0" Right="40" Top="0" Bottom="40"><Tooltip> View Forward</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_FORWARD)</Click>//or any other command</Area></Mouse></Gauge>If you want more commands then you can enlarge x and y and define more clickspots.(Note, the gauge must always be over the bitmap, otherwise it becomes invisble and doesn't work)example2, a bigger one with 3 clickspots:<Gauge Name="vieuw3" Version="1.0"><Size X="120" Y="40"/><Mouse><Area Left="0" Right="40" Top="0" Bottom="40"><Tooltip> View Forward</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_FORWARD)</Click></Area><Area Left="41" Right="80" Top="0" Bottom="40"><Tooltip> View Rear</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_REAR)</Click></Area><Area Left="81" Right="120" Top="0" Bottom="40"><Tooltip>your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area></Mouse></Gauge>i use the whole screen for the gauge and place the clickspots over the whole bitmap avoiding the outside vieuwexample:<Gauge Name="vieuw all" Version="1.0"><Size X="1280" Y="960"/><Mouse><Area Left="0" Right="40" Top="0" Bottom="40"><Tooltip> View Forward</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_FORWARD)</Click></Area><Area Left="41" Right="80" Top="0" Bottom="40"><Tooltip> View Rear</Tooltip><Cursor Type="Hand"/><Click>(>K:VIEW_REAR)</Click></Area><Area Left="81" Right="120" Top="0" Bottom="40"><Tooltip>your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click><Area Left="0" Right="40" Top="41" Bottom="80"><Tooltip> your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area><Area Left="41" Right="80" Top="41" Bottom="80"><Tooltip> your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area><Area Left="81" Right="120" Top="41" Bottom="80"><Tooltip> your tooltip</Tooltip><Cursor Type="Hand"/><Click> "other command"</Click></Area>etc......</Mouse></Gauge>After a short time you will become happy with those invisible clickspots avoiding the unrealistic icons, still there are the tooltips....Hope it helps,Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

Thank you so much, Jan. I will try it once i get home.

--------------------------------------
Cheers,

iflycap.jpg
 

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.