• 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.

Problem with toggling panels by using XML

Messages
611
Country
germany
Hi all,

Not only that I'm pretty new here, I'm sticking with my first attempt tweaking a panel with self-made XML gauges.

I'm not able to solve a quite simple problem (as it seems to me). I just wanted to create an invisible gauge for toggling an other gauge (in *.gau format) that uses the window identifier 4004. It has a build-in toggle switch that only works in a window using the proper identifier. The same task for identifiers like "40", "50", "70" or even "400" worked fine but in this case I cannot use the build-in toggling function of the gauge itself (see above).

That's what I did so far (and more important, it works):
Code:
<Gauge Name="GNSXLS open/close" Version="1.0">
   <Image Name="invisible.bmp" ImageSizes="20,20,0,0"/>
   <Mouse>
      <Cursor Type="Hand"/>
      <Click>40 (&gt;K:PANEL_ID_TOGGLE)</Click>
   </Mouse>
</Gauge>

wherein the bitmap is plain black (0,0,0) and the related code in the panel.cfg looks like this:

Code:
[Window06]
Background_color=0,0,0
size_mm=664,215
window_size_ratio=1.000 
position=0
visible=0
ident=40

This works perfectly for such a "usual window" but just replacing the "40" by "4004" does not make the trick and I have no clue why. The gauge is loaded, the cursor changes as wanted but the click causes nothing.:confused:

SOLVED, but I don't know why. I'd been a couple of days away and started today tinkering with the gauge and all of sudden it works as it should. I don't know what happened but I'm satisfied, though. Now there is only the following question remaining from my original thread:

BTW, is it possible to create own text strings for the ToolTips?

Any help appreciated.

Cheers,
Axel
 
Last edited:
<Tooltip>Put Your Custom Text Here</Tooltip>

It can also be any valid code string also, such as:

<Tooltip>Voltage (%1!!%{if}low%{else}ok%{end})</Tooltip>
 
Last edited:
Thanks Bill, nice to read you again!

I believe that it didn't work for me as I tried it together with other wrong code in the past.

Cheers,
Axel
 
The Panel SDK say to:

Ident

Specifies a unique identifier to define the panel window. For example:
ident=MAIN_PANEL
You must have an ident for each panel window. Valid entries are the following:
MAIN_PANEL
THROTTLE_PANEL
RADIO_STACK_PANEL
COMPASS_PANEL
MINI_CONTROLS_PANEL
ANNUNCIATOR_PANEL
ANNUNCIATOR2_PANEL
IFR_MAIN_PANEL
COLLECTIVE_PANEL
GPS_PANEL
OVERHEAD_PANEL
If your panel window’s description doesn’t fit any of above, use any number between 10000 and 19999.
 
You may also use the number #defined for each of the "named" panel idents.
In other words, GPS_PANEL is always the same as 225...

Code:
// Panel identifiers
#define IDENT_MAIN_PANEL                         0
#define IDENT_MAIN_PANEL_ALT1                    1
#define IDENT_MAIN_PANEL_ALT2                    2
#define IDENT_MAIN_PANEL_ALT3                    3
#define IDENT_MAIN_PANEL_ALT4                    4
#define IDENT_MAIN_PANEL_ALT5                    5
#define IDENT_MAIN_PANEL_ALT6                    6
#define IDENT_MAIN_PANEL_ALT7                    7
#define IDENT_MAIN_PANEL_ALT8                    8
#define IDENT_MAIN_PANEL_ALT9                    9
#define IDENT_THROTTLE_PANEL                    10
#define IDENT_RADIO_STACK_PANEL                 50
#define IDENT_COMPASS_PANEL                     75
#define IDENT_MINI_CONTROLS_PANEL               100
#define IDENT_ANNUNCIATOR_PANEL                 125
#define IDENT_ANNUNCIATOR2_PANEL                150
#define IDENT_IFR_MAIN_PANEL                    175
#define IDENT_COLLECTIVE_PANEL                  200
#define IDENT_GPS_PANEL                         225
#define IDENT_OVERHEAD_PANEL                    250
#define IDENT_PARKING_BRAKE_PANEL               251
#define IDENT_FLAPS_TRIM_PANEL                  252
#define IDENT_FUEL_PANEL                        253
#define IDENT_ELECTRICAL_PANEL                  254
#define IDENT_TRIM_PANEL                        255
#define IDENT_LANDING_GEAR_PANEL                256
#define IDENT_MISC_POPUP_1                      260
#define IDENT_MISC_POPUP_2                      261
#define IDENT_MISC_POPUP_3                      262
#define IDENT_MISC_POPUP_4                      263
#define IDENT_MISC_POPUP_5                      264
#define IDENT_MISC_POPUP_6                      265
#define IDENT_MISC_POPUP_7                      266
#define IDENT_MISC_POPUP_8                      267
#define IDENT_MISC_POPUP_9                      268
#define IDENT_MISC_POPUP_10                     269
 
The Panel SDK say to:

Ident

Specifies a unique identifier to define the panel window. For example:
ident=MAIN_PANEL <...snip...>

If your panel window’s description doesn’t fit any of above, use any number between 10000 and 19999.

Hi Sandra,

Indeed, that's written in the SDK but in fact I bought payware gauges (ISG1 by Ernie Alstom) using other identifier obviously as they correspond to such as "4007", "4012" etc. They came in *.gau format packed in one single gauge and I was not keen editing the bitmap as this would affect all other panels too where I used this specific pair of gauges.

The (tested) code now looks like this:
Code:
<Gauge Name="GNSXLS_toggle" Version="1.0">
   <Image Name="transparent.bmp" ImageSizes="20,20,0,0"/>
   <Mouse>
      <Cursor Type="Hand"/>
      <Click>4004 (&gt;K:PANEL_ID_TOGGLE)</Click>
      <Tooltip>GNSXLS open/close</Tooltip>
   </Mouse>
</Gauge>
and the addressed window is here:
Code:
[Window13]
Background_color=0,0,0 
size_mm=550,433
window_size_ratio=1.000
position=0
visible=0
ident=4004
window_size= 0.325, 0.345
window_pos= 0.673, 0.520

gauge00=isg1!GNSXLS,  1,1,549,430
As it seems the SDK does not tell us everything.

Cheers,
Axel (who sits in Berlin)
 
Last edited:
Back
Top