familton Posted January 9, 2016 Share Posted January 9, 2016 I have an icon window that I want to be visible in all views. I have Visible=1 set and Type=Special. It will not initially be visible until I go to Views-Instrument Panel and turn it on. Then it is visible in all views. How can I make it visible without having to initially turn it on. Here is my Window: //-------------------------------------------------------- [Window01] Background_color=0,0,0 size_mm=30,30 window_size_ratio=1.000 position=2 visible=1 ident=10 window_size= 0.020, 0.030 window_pos= 0.980, 0.060 type=SPECIAL gauge00=SimIcons1024!GPS Icon, 0,0,25,25 Thanks, Bob. Link to comment Share on other sites More sharing options...
il88pp Posted January 9, 2016 Share Posted January 9, 2016 You could start a flight open the popup, save the flight and check the box "make this the default flight". Then any flight you set up new will have that window open (as long as you also use that plane of course). [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
familton Posted January 9, 2016 Author Share Posted January 9, 2016 OK, thanks. I'll try that. Link to comment Share on other sites More sharing options...
mrzippy Posted January 9, 2016 Share Posted January 9, 2016 OK, thanks. I'll try that. Keep in mind that the Default Flight will affect all aircraft even if that gauge is not installed on that aircraft. I'm referring to startup procedures like fuel on (mixture levers maxed out), avionics switch on, etc. Still thinking about a new flightsim only computer! Link to comment Share on other sites More sharing options...
familton Posted January 9, 2016 Author Share Posted January 9, 2016 Thanks Mr. Zippy. Link to comment Share on other sites More sharing options...
familton Posted January 10, 2016 Author Share Posted January 10, 2016 I found my problem. Visible=1 only works if the plane loads in the 2d panel. Mine did not have a 2d panel. I did a search and found out that you can create an AutoOpen gauge and specify what Window you want to auto open, thanks to N4GIX. I created this AutoOpen gauge and a sub gauge called AutoOpen_10 and made the Window id=10. I placed the gauge in the VC Window. Works like a charm. Here is the code: (L:Init,bool) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>L:Init,bool) } You need a 50x60 all black (0,0,0.bmp called transparent.bmp Link to comment Share on other sites More sharing options...
StringBean Posted January 10, 2016 Share Posted January 10, 2016 I found my problem. Visible=1 only works if the plane loads in the 2d panel. Mine did not have a 2d panel. I did a search and found out that you can create an AutoOpen gauge and specify what Window you want to auto open, thanks to N4GIX. I created this AutoOpen gauge and a sub gauge called AutoOpen_10 and made the Window id=10. I placed the gauge in the VC Window. Works like a charm. Here is the code: (L:Init,bool) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>L:Init,bool) } You need a 50x60 all black (0,0,0.bmp called transparent.bmp That is a great tip by the gaugemaster himself. My only concern, and I may be wrong as I am sure Bill knows more than I do, is the naming of the L:Var. L:VARs "talk" between gauges, so if you were to have two gauges in the same panel that both have (L:Init,bool) in them this might not work. The first gauge loaded would work as expected. The second gauge loaded would then see that (L:Init, bool) was set to 1 and not work as expected. I would change it to (L:Init_Autoopen_10,bool) if only to future-proof it. peace, the Bean WWOD---What Would Opa Do? Farewell, my freind (sp) Never argue with idiots. They drag you down to their level and beat you with experience Link to comment Share on other sites More sharing options...
familton Posted January 10, 2016 Author Share Posted January 10, 2016 Hi The Bean. According to the answer I read from Bill I as I read it is that you could use it for two or more Windows. The only problem was that you had to make sure each window was at a different place so they would not be over each other. As for the above (L:Init_Autoopen_10,bool) you will have to contact Bill. I am no expert. Bob. Link to comment Share on other sites More sharing options...
n4gix Posted January 12, 2016 Share Posted January 12, 2016 Bean is quite correct. To "future proof" you should create a unique L:variable. Alternatively, you could use a "local variable" such as G:Varn since they initialize as zero like the L:vars, but are not shared between gauges: (G:Var1) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>G:Var1) } Bill Leaming http://smileys.sur-la-toile.com/repository/Combat/0054.gif Gauge Programming - 3d Modeling Military Visualizations Flightsim.com Panels & Gauges Forum Moderator Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined... Link to comment Share on other sites More sharing options...
familton Posted January 13, 2016 Author Share Posted January 13, 2016 Hi Bill. Thanks. Should it look like: (G:Var1) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>G:Var1)} I am no xml expert. Bob. Link to comment Share on other sites More sharing options...
StringBean Posted January 13, 2016 Share Posted January 13, 2016 Bill does not come here every day, I think. Hi Bill. Thanks. Should it look like: (G:Var1) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>G:Var1)} I am no xml expert. Bob. XML can be fussy about things like missing spaces. Try... (G:Var1) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>G:Var1) } WWOD---What Would Opa Do? Farewell, my freind (sp) Never argue with idiots. They drag you down to their level and beat you with experience Link to comment Share on other sites More sharing options...
familton Posted January 14, 2016 Author Share Posted January 14, 2016 Hi Bean. Thanks. I copied the above and placed it in place of my old xml file text. Here it is: (G:Var1) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>G:Var1) } It does not autoopen. The GPS icon flashes on the screen for a second and immediately closes. Am missing something? Bob. Link to comment Share on other sites More sharing options...
StringBean Posted January 14, 2016 Share Posted January 14, 2016 If you still have visible=1 change it to =0. Having it as =1 would turn on the icon, then the gauge would toggle it off. peace, the Bean WWOD---What Would Opa Do? Farewell, my freind (sp) Never argue with idiots. They drag you down to their level and beat you with experience Link to comment Share on other sites More sharing options...
familton Posted January 14, 2016 Author Share Posted January 14, 2016 Hi Bean. Thanks. I changed my window to: //-------------------------------------------------------- [Window01] Background_color=0,0,0 size_mm=30,30 window_size_ratio=1.000 position=2 visible=0 ident=10 window_size= 0.020, 0.030 window_pos= 0.980, 0.060 type=SPECIAL gauge00=SimIcons1024!GPS Icon, 0,0,25,25 It still flashes on and then immediately off. What is strange but with Visible=1 and my old xml with the LVAR above it worked OK. Any suggestion? Bob. Link to comment Share on other sites More sharing options...
StringBean Posted January 14, 2016 Share Posted January 14, 2016 Are you loading a saved flight? You could also try changing... PANEL_ID_TOGGLE ...to... PANEL_ID_OPEN Just so you know, the (Var1) worked for me after I changed visible=1 to =0. peace, the Bean WWOD---What Would Opa Do? Farewell, my freind (sp) Never argue with idiots. They drag you down to their level and beat you with experience Link to comment Share on other sites More sharing options...
familton Posted January 14, 2016 Author Share Posted January 14, 2016 Thanks. I went back to my original xml file and it works like a charm. I have now used it in two different airplane panels. I like it as I can have small icons to bring up any sub-windows that are visible in all views in planes that don't have a 2d panel. I hate using the keyboard or the menu to open the sub-windows.Bob. Link to comment Share on other sites More sharing options...
n4gix Posted January 14, 2016 Share Posted January 14, 2016 Hi Bill. Thanks. Should it look like: (G:Var1) 0 == if{ 10 (>K:PANEL_ID_TOGGLE) 1 (>G:Var1)} I am no xml expert. Bob. Not quite. You must have a blank space before the closing curly-brace } in the script. Also, I'd use PANEL_ID_OPEN instead of the "TOGGLE" command. This too will prevent accidental closing of the panel from a script that looses synch. (G:Var1) 0 == if{ 10 (>K:PANEL_ID_OPEN) 1 (>G:Var1) } Bill Leaming http://smileys.sur-la-toile.com/repository/Combat/0054.gif Gauge Programming - 3d Modeling Military Visualizations Flightsim.com Panels & Gauges Forum Moderator Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined... Link to comment Share on other sites More sharing options...
familton Posted January 14, 2016 Author Share Posted January 14, 2016 Hi Bill. Thanks. That did it. Bob. Link to comment Share on other sites More sharing options...
dloleit Posted April 23, 2016 Share Posted April 23, 2016 Hi Bob, why not just this window entry and you are done: //----------------------------------------------------- [Window11] Background_color=0,0,0 size_mm=30,30 window_size_ratio=1.000 position=2 visible=1 nomenu=1 //ident=10 window_size= 0.020, 0.030 window_pos= 0.980, 0.060 //type=SPECIAL gauge00=SimIcons1024!GPS Icon, 0,0,25,25 Delete ident and type and set nomenu to 1 and leave visible to 1 too. Now your icon will be open and shown any time on your panel. Dietmar Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.