- Messages
- 17
- Country
-
Hi, I've been making a few XML gauges and am stuck on a few things. Understanding the differences of the old types vs new types is obviously confusing to a noob. I've been able to accomplish maybe 80% of what I've wanted but am stuck on a few items, mainly 3 separate things.
#1 - I want to make a few XML toggles that use two bitmaps, one for ON and one for OFF. I know this is fairly easy as I have many made in the older XML style like any simple light switch for example. But when trying it with other various events I've not always got the same results. So, #1..does the event always have to include the words "toggle" for this to work? In some cases I'd say no as for example I successfully made a parking brake toggle with two bitmaps using the older schema and it's working fine in P3D v3.5. In the case of the park brake the event is simply PARKING_BRAKES but it is in fact a toggle as are many gauges that don't actually say "toggle" in the event.
For example lets say I'd like to make another toggle for the engine 1 failure event (which is a toggle). As shown below it works with a single bitmap but then obviously you cannot visually tell when it is toggled on or off so I want to use two bitmaps, one for on, one for off.
and then in the older FS9 schema XML you have something like a light switch which is
I'm trying interpolate between the two types to create a new gauge that does the same but in the newest XML for P3D or more preferably an XML schema that will work in both FSXsp2 / FSXse / P3D. I just don't know enough about XML to make the proper correlations and changes. I've read a lot in the SDK's and unfortunately the information is confusing because I also can't seem to decipher which web page is accurate for my needs as there are several ESP v1.0 web pages and then the P3D SDK pages as well which in most cases just seem to mimic the old FSX ESP pages. At a certain point I just glaze over and get that blank stare on my face lol.
#2 - I'm also trying to find specific events to some key functions that are stock/default keyboard functions but don't seem to have any obvious event in the most recent FSUIPC list that I have (installed june 2016). I'm looking for the following:
A -- Alt+Enter (toggle full screen) and Alt (toggle main menu) event commands as well ones for,
B -- Starting engines 2, 3, and 4 which all seem to be a "shift+" type command but assumed there may be a single event for these instead?
C -- Opening secondary doors/exits. Again, this may be a shift+ only function but can events like this be coded into a mouse-click gauge to contain both the Shift+ or Ctrl+ if needed to effect the desired single end result? If so..please do tell!
#3 - I'd also like to use some custom tooltips which I've tried unsuccessfully, again likely due to not understanding the nuances between FS9 XML vs FSX XML vs P3D XML. Unfortunately the available tooltipIDs are limiting in many cases so I want to create some of my own.
Thanks for the help! (and please...in laymens terms lol)
#1 - I want to make a few XML toggles that use two bitmaps, one for ON and one for OFF. I know this is fairly easy as I have many made in the older XML style like any simple light switch for example. But when trying it with other various events I've not always got the same results. So, #1..does the event always have to include the words "toggle" for this to work? In some cases I'd say no as for example I successfully made a parking brake toggle with two bitmaps using the older schema and it's working fine in P3D v3.5. In the case of the park brake the event is simply PARKING_BRAKES but it is in fact a toggle as are many gauges that don't actually say "toggle" in the event.
For example lets say I'd like to make another toggle for the engine 1 failure event (which is a toggle). As shown below it works with a single bitmap but then obviously you cannot visually tell when it is toggled on or off so I want to use two bitmaps, one for on, one for off.
Code:
<Gauge Name="Eng1 Fail Toggle" Version="1.0">
<Image Name="ENG1-FAIL_Icon.bmp" />
<Mouse>
<TooltipText>ENG 1 FAILURE</TooltipText>
<Cursor Type="Hand"/>
<Click Event="TOGGLE_ENGINE1_FAILURE"/>
</Mouse>
</Gauge>
and then in the older FS9 schema XML you have something like a light switch which is
Code:
<Gauge Name="BeaconLights" Version="1.0">
<Element>
<Select>
<Value>(A:Light beacon,bool)</Value>
<Case Value="0">
<Image Name="POLE_TOGG_off.bmp" ImageSizes="38,54"/>
</Case>
<Case Value="1">
<Image Name="POLE_TOGG_on.bmp" ImageSizes="38,54"/>
</Case>
</Select>
</Element>
<Mouse>
<Help ID="HELPID_GAUGE_LIGHT_SWITCH_BEACON"/>
<Cursor Type="Hand"/>
<Click Event="TOGGLE_BEACON_LIGHTS"/>
</Mouse>
</Gauge>
I'm trying interpolate between the two types to create a new gauge that does the same but in the newest XML for P3D or more preferably an XML schema that will work in both FSXsp2 / FSXse / P3D. I just don't know enough about XML to make the proper correlations and changes. I've read a lot in the SDK's and unfortunately the information is confusing because I also can't seem to decipher which web page is accurate for my needs as there are several ESP v1.0 web pages and then the P3D SDK pages as well which in most cases just seem to mimic the old FSX ESP pages. At a certain point I just glaze over and get that blank stare on my face lol.
#2 - I'm also trying to find specific events to some key functions that are stock/default keyboard functions but don't seem to have any obvious event in the most recent FSUIPC list that I have (installed june 2016). I'm looking for the following:
A -- Alt+Enter (toggle full screen) and Alt (toggle main menu) event commands as well ones for,
B -- Starting engines 2, 3, and 4 which all seem to be a "shift+" type command but assumed there may be a single event for these instead?
C -- Opening secondary doors/exits. Again, this may be a shift+ only function but can events like this be coded into a mouse-click gauge to contain both the Shift+ or Ctrl+ if needed to effect the desired single end result? If so..please do tell!
#3 - I'd also like to use some custom tooltips which I've tried unsuccessfully, again likely due to not understanding the nuances between FS9 XML vs FSX XML vs P3D XML. Unfortunately the available tooltipIDs are limiting in many cases so I want to create some of my own.
Thanks for the help! (and please...in laymens terms lol)
Last edited: