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
Help AVSIM continue to serve you!
Please donate today!

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this