March 18, 201016 yr Commercial Member My 2D window panels close when the user switches views/cameras.Is there an efficient way to prevent my panels from automatically closing when the user changes views/cameras?Thanks, B. York FS2Crew Web Site / FS2Crew Facebook Page / FS2Crew Discord
March 18, 201016 yr Hi,For me this works:(P:ACTIVE VIEW MODE,enum) 2 == if{ 400 (>K:PANEL_ID_OPEN) } So. define your vieuw and rhe panels you want to have open.(your view or Fixed Window,enum) number == if{ your panel ident 1 (>K:PANEL_ID_OPEN) your panel ident 2 (>K:PANEL_ID_OPEN) etc. } You can use these (A:Var's): (P:ACTIVE VIEW DIR,enum)(P:ACTIVE VIEW MODE,enum)Hope it helps,Jan Jan "Beatus ille qui procul negotiis..."
March 18, 201016 yr Author Commercial Member Actually, I just figured out an even easier way, which seems to work.Pre Update: // Force Switch Panel Open if View/Camera Changed if (switch_panel_was_opened == 1 && is_panel_window_visible_ident(1002) == 0 ) { trigger_key_event (KEY_PANEL_ID_OPEN, 1002); }Mouse Click Area for that panel: // Middle Mouse open Panel Switcher Panel if (mouse_flags == MOUSE_MIDDLESINGLE) { if ( is_panel_window_visible_ident(1002) == 0 ) { trigger_key_event (KEY_PANEL_ID_OPEN, 1002); switch_panel_was_opened = 1; } else { trigger_key_event (KEY_PANEL_ID_CLOSE, 1002) ; switch_panel_was_opened = 0; } B. York FS2Crew Web Site / FS2Crew Facebook Page / FS2Crew Discord
March 18, 201016 yr Commercial Member This is probably going to be the most useless reply you've ever had.... there's another trick that needs employing when you have the VC open. Unfortunately the forum software won't let me search on 3D or VC as part of the search string because they don't contain enough letters. When Bill wanders by I know he'll remember what I'm talking about because it was his problem!-Dai
March 20, 201016 yr Commercial Member Okay... this is the topic I had in mind but I suspect it's not really relevant.Hooray!!-Dai
March 21, 201016 yr Moderator Okay... this is the topic I had in mind but I suspect it's not really relevant.Hooray!!-DaiI'm glad you found the link. I was able to edit my last reply to 'resurrect' the XML script that the new forum software had hidden...I actually opened up my win_control_preflight gauge code the other day to recall what I'd done, unfortunately I couldn't recall just why I'd written what I wrote. This necroed link reminded me of my original scheme and purpose! :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment