Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Forcing 2D Panel to Stay Open when Changing Views

Featured Replies

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..."

  • 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; }

  • 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

  • Moderator
Okay... this is the topic I had in mind but I suspect it's not really relevant.Hooray!!-Dai
I'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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.