July 21, 200916 yr Hi AllI am a beginner in XML. Is it possible to create a gauge which refreshes the panel each time you click it. I need it because it's a pain having to reload your aircraft every time you want to see a change in your gauge.Thanks
July 21, 200916 yr Commercial Member The command you want is either KEY_RELOAD_PANELS or KEY_CONTROL_RELOAD_USER_AIRCRAFT. Microsoft recommend using the latter when developing gauges - but don't ask me what the full XML code is because I have no idea!-Dai
July 21, 200916 yr Moderator FSX Version: <Gauge Name="FSX Panel Reload" Version="1.0"> <Image Name="Reload Gauges.bmp" Bright="Yes"/> <Mouse> <Area Left="0" Top="0" Width="13" Height="13"> <Cursor Type="Hand"/> <Click>(>K:RELOAD_USER_AIRCRAFT)</Click> </Area> </Mouse></Gauge> FS9 Version: <Gauge Name="Panel Reload" Version="1.0"> <Image Name="Reload Gauges.bmp" Bright="Yes" ImageSizes="20,20,0,0"/> <Mouse> <Area Left="0" Top="0" Width="13" Height="13"> <Cursor Type="Hand"/> <Click>(>K:RELOAD_PANELS)</Click> </Area> </Mouse></Gauge> Right-click on this image and Save As "Reload Gauges.bmp"Install this gauge anywhere on your 2d panel, and click ONCE after loading the a/c to "unlock" the XML gauges for editing.Click on this gauge after each edit/save of whatever XML script "gauge" on which you're woking. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
July 22, 200916 yr FSX Version:<Gauge Name="FSX Panel Reload" Version="1.0"> <Image Name="Reload Gauges.bmp" Bright="Yes"/> <Mouse> <Area Left="0" Top="0" Width="13" Height="13"> <Cursor Type="Hand"/> <Click>(>K:RELOAD_USER_AIRCRAFT)</Click> </Area> </Mouse></Gauge> FS9 Version: <Gauge Name="Panel Reload" Version="1.0"> <Image Name="Reload Gauges.bmp" Bright="Yes" ImageSizes="20,20,0,0"/> <Mouse> <Area Left="0" Top="0" Width="13" Height="13"> <Cursor Type="Hand"/> <Click>(>K:RELOAD_PANELS)</Click> </Area> </Mouse></Gauge> Right-click on this image and Save As "Reload Gauges.bmp"Install this gauge anywhere on your 2d panel, and click ONCE after loading the a/c to "unlock" the XML gauges for editing.Click on this gauge after each edit/save of whatever XML script "gauge" on which you're woking. Hey thanks a lot to both of you :(The gauge is appearing but when I click it, it doesn't refresh the panel after I edited the panel.cfgAny suggestions?Regards
July 22, 200916 yr Hey thanks a lot to both of you :(The gauge is appearing but when I click it, it doesn't refresh the panel after I edited the panel.cfgAny suggestions?RegardsWhen you load up the aircraft that " Holds" the panel, click the reload "Panels" switch before doing mods... Once after that, the panel system is open for all the mods you want to do. A key to the whole deal..... If the windows popup comes up saying " cannot save because .......... " then the "reload panels" hasn't been hit before the 1st mod. No prob. hit he reload then save & reload again.Bill, really? you have to load the whole thing back up in FSX? just wondering. FS RTWR SHRS F-111 JoinFS Little Navmap
July 22, 200916 yr Moderator Bill, really? you have to load the whole thing back up in FSX? just wondering.Yes. It only takes a fraction longer, but the FS9 command simply will not work in FSX. That's why I have two versions... ;)I have Visual Studio running in my left monitor, and FSX or FS9 running on the center wide-screen monitor. It sure makes XML scripting so much faster. As quick as I Ctrl-S to save the latest changes and can click on the "R" button to reload, I see the results instantly... ;) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
July 24, 200916 yr Commercial Member In FS9 anyway it works great to add the following lines to the [KEYBOARD_MAIN] section of the fs9.CFG:RELOAD_PANELS=82,11RELOAD_USER_AIRCRAFT=65,11Use "CTRL+SHIFT+R" for reload panels and "CTRL+SHIFT+A" for reload aircraft. With this you can do the reload on any aircraft without fiddling around with installing the reload gauge. Incidentally "reload panels" works great to unlock and then refresh after editing the xml gauge but won't do a thing if it's the panel.cfg you're editing. "Reload aircraft" might work occasionally to refresh after a panel.cfg edit but I've found it doesn't behave in exactly the same way as completely reloading the aircraft from the "select aircraft" menu which I've found to be necessary in most cases after a panel.cfg edit.Jim
July 24, 200916 yr In FS9 anyway it works great to add the following lines to the [KEYBOARD_MAIN] section of the fs9.CFG:RELOAD_PANELS=82,11RELOAD_USER_AIRCRAFT=65,11Use "CTRL+SHIFT+R" for reload panels and "CTRL+SHIFT+A" for reload aircraft. With this you can do the reload on any aircraft without fiddling around with installing the reload gauge. Incidentally "reload panels" works great to unlock and then refresh after editing the xml gauge but won't do a thing if it's the panel.cfg you're editing. "Reload aircraft" might work occasionally to refresh after a panel.cfg edit but I've found it doesn't behave in exactly the same way as completely reloading the aircraft from the "select aircraft" menu which I've found to be necessary in most cases after a panel.cfg edit.JimOK thanks Jim, I'll give that a tryRegardsPaul
July 24, 200916 yr OK, thanks guy! It's working perfectly nowOn a separate subject, I've made a gauge to switch between 2 windows, I would like to make the gauge invisible. Do I just make the gauge bmp pure black (RGB 0,0,0) to do this?Thank you
July 25, 200916 yr Moderator Yep! That's the simplest way... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment