• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Adding XML gauges

Messages
53
Country
unitedstates
Ok so i am working on my Simpit, and i need to be able to put certain gauges in 2D popups but i'm running into a snag...

So i know i can make the normal [Window00-Window08] popups available through the shift keys, but can i add more than that? Can i make it so that they are available from a drop-down menu in FSX like the extra camera views are?

A little guidance would be very appreciated :D
 
You can add additional windows by declaring them in the panel.cfg file "Window Titles" section and then creating
the window with the appropriate number. here is an example from one of my aircraft:

Code:
[Window Titles]
Window00=Main Panel
Window01=Clipboard
Window02=Mini Controls
Window03=Payload and Fuel Manager
Window04=Map
Window05=Radios
Window06=Maintenance Hangar
Window07=Engine Selector
Window08=Autopilot
Window09=none2    
Window10=dbg
Window11=none3
Window12=none4
Window13=fs autopilot

//----------------------------
Window14=GPS
Window15=Airport Chart
Window16=ANR75 radar
Window17=CS Weather Radar
//Window18=BlackBox2
Window19=Control Set
Window20=Test Info
Window21=Sextant
Window22=Drift Meter
//----------------------------
Window23=UKBA MAP
Window24=EGMA MAP
Window25=S356 MAP
Window26=KMCF MAP
Window27=Preset Input
Window28=Vintage AP
Window29=Nav Pack
//----------------------------

Here is an example window:

Code:
[Window29]
Background_color=0,0,0 
size_mm=134, 158  
window_pos= 0.89, 0.50   
visible=0
ident=1064     //Use to open/close this window
nomenu=0
type=special

gauge00=NAV_PACK!Dual_DME, 0, 0, 134, 158

These windows appear in the drop-down menu in flight.
You can open/close the windows using the "ident=xxx"
number you assign to the window. I typically create icons
to open/close my windows using the simple xml code similar
to this which opens and closes the window above:

Code:
<Gauge Name="NAV-DME Gauge Icon" Version="1.0">
   <Image Name="NavDme_Icon.bmp" ImageSizes="43,16"/>
   <Mouse>
      <Tooltip>Toggle Dual DME Gauge</Tooltip>
      <Cursor Type="Hand"/>
      <Click>1064 (&gt;K:PANEL_ID_TOGGLE)</Click>
   </Mouse>
</Gauge>

One can also use FSUIPC4 to assign buttons/switches/key combos to open/close/toggle windows,
again, using the "ident=xxxx" number as the parameter in a PANEL ID OPEN, PANEL ID CLOSE
OR PANEL ID TOGGLE assignment.

Paul
 
Last edited:
Back
Top