Jump to content

Sign in to follow this  
spokes2112

TIP: XML Variables and PanelReload

Recommended Posts

Hi Folks,As several people (like Bill Leaming and Nick Pike) kindly pointed out, you can modify loaded .xml gauges while FS is running, by using the RELOAD_PANELS event. They even uploaded a small .xml gauge that does this, which you can add to your panel.Another way of doing this, is by adding the RELOAD_PANELS event to a free joystick button or keyboard key in the fs9.cfg file. E.g., adding RELOAD_PANELS=82,11to the KEYBOARD_MAIN section couples the event to keystroke "Cntr-Shift-R".A word of caution though.When the .xml gauge is reloaded (either by using the Reload gauge or the keystroke):- G:Vars are reset to 0.- L:Vars are NOT (so they keep their value).Which is the same behaviour as when you switch from WindowedMode to FullScreenMode (or vice versa) in FS2004.This can be important when you use vars for things like gauge initialisation/states.On one hand, you would like to maintain the gauge state in an L:Var instead of an G:Var, to prevent the gauge to re-initialise upon window switching; but if you do this, it ALSO means that the gauge state is NOT reset when you apply this UNLOCK&RELOAD feature...(which you probably would expect).So be warned :-) Cheers, Rob Barendregt

Share this post


Link to post
Share on other sites

Another tip to this.. I assign the "designer" buttons only in slew mode that way my FSUIPC main controls ( advanced button programming ) stay put. It seems the .cfg will accept XML type commands as these are not all available through the assignment dialog.BUTTON_DOWN_EVENT_01=VIEW_MODEBUTTON_DOWN_EVENT_02=PAN_RESETBUTTON_DOWN_EVENT_03=SLEW_RESETBUTTON_DOWN_EVENT_04=REFRESH_SCENERYBUTTON_DOWN_EVENT_05=RELOAD_USER_AIRCRAFTBUTTON_DOWN_EVENT_06=READOUTS_SLEWBUTTON_DOWN_EVENT_07=RELOAD_PANELSBUTTON_DOWN_EVENT_09=PAUSE_TOGGLE Regards,Roman

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...