From d594ea96f2e7f1ccc3fa2cc0b8e7356c403a16bc Mon Sep 17 00:00:00 2001 From: hawkeye Date: Sun, 30 Jul 2023 17:30:47 -0400 Subject: [PATCH] Added camera zoom setting workaround --- DomainModel/DomainModel.csproj | 6 +- MainApp/MainApp.csproj | 10 ++- .../PublishProfiles/FolderProfile.pubxml | 2 +- MainApp/ViewModel/HelpViewModel.cs | 10 ++- Orchestration/FlightSimData.cs | 2 + Orchestration/FlightSimOrchestrator.cs | 9 +++ Orchestration/MainOrchestrator.cs | 2 +- Orchestration/Orchestration.csproj | 6 +- Orchestration/PanelPopOutOrchestrator.cs | 12 ++- Orchestration/PanelSourceOrchestrator.cs | 13 +++- RELEASENOTES.md | 76 +------------------ Shared/Shared.csproj | 6 +- SimconnectAgent/Enums.cs | 3 +- SimconnectAgent/SimConnectProvider.cs | 8 +- SimconnectAgent/SimConnector.cs | 19 ++++- SimconnectAgent/SimDataDefinitions.cs | 7 +- SimconnectAgent/SimconnectAgent.csproj | 6 +- VERSION.md | 5 +- WindowsAgent/WindowsAgent.csproj | 6 +- 19 files changed, 101 insertions(+), 107 deletions(-) diff --git a/DomainModel/DomainModel.csproj b/DomainModel/DomainModel.csproj index f48e88f..1e0ff45 100644 --- a/DomainModel/DomainModel.csproj +++ b/DomainModel/DomainModel.csproj @@ -11,9 +11,9 @@ https://github.com/hawkeye-stan/msfs-popout-panel-manager MSFSPopoutPanelManager.DomainModel x64 - 4.0.1.3 - 4.0.1.3 - 4.0.1.3 + 4.0.2.0 + 4.0.2.0 + 4.0.2.0 win-x64 Embedded Debug;Release;Local diff --git a/MainApp/MainApp.csproj b/MainApp/MainApp.csproj index dfa6ddf..e076419 100644 --- a/MainApp/MainApp.csproj +++ b/MainApp/MainApp.csproj @@ -14,9 +14,9 @@ MSFSPopoutPanelManager.MainApp logo.ico x64 - 4.0.1.3 - 4.0.1.3 - 4.0.1.3 + 4.0.2.0 + 4.0.2.0 + 4.0.2.0 embedded en @@ -26,6 +26,10 @@ false + + True + + diff --git a/MainApp/Properties/PublishProfiles/FolderProfile.pubxml b/MainApp/Properties/PublishProfiles/FolderProfile.pubxml index 18dfaa2..118e0a6 100644 --- a/MainApp/Properties/PublishProfiles/FolderProfile.pubxml +++ b/MainApp/Properties/PublishProfiles/FolderProfile.pubxml @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - Release + Local x64 ..\..\..\publish\master FileSystem diff --git a/MainApp/ViewModel/HelpViewModel.cs b/MainApp/ViewModel/HelpViewModel.cs index cedb06d..74c1026 100644 --- a/MainApp/ViewModel/HelpViewModel.cs +++ b/MainApp/ViewModel/HelpViewModel.cs @@ -26,7 +26,15 @@ namespace MSFSPopoutPanelManager.MainApp.ViewModel HyperLinkCommand = new DelegateCommand(OnHyperLinkActivated); DeleteAppCacheCommand = new DelegateCommand(OnDeleteAppCache); RollBackCommand = new DelegateCommand(OnRollBack); - ApplicationVersion = WindowProcessManager.GetApplicationVersion(); + + var buildConfig = string.Empty; +#if DEBUG + buildConfig = " (Debug)"; +#elif LOCAL + buildConfig = " (Local)"; +#endif + + ApplicationVersion = $"{WindowProcessManager.GetApplicationVersion()}{buildConfig}"; IsRollBackCommandVisible = Orchestrator.Help.IsRollBackUpdateEnabled(); HasOrphanAppCache = Orchestrator.Help.HasOrphanAppCache(); diff --git a/Orchestration/FlightSimData.cs b/Orchestration/FlightSimData.cs index 8ab4a86..8da0727 100644 --- a/Orchestration/FlightSimData.cs +++ b/Orchestration/FlightSimData.cs @@ -28,6 +28,8 @@ namespace MSFSPopoutPanelManager.Orchestration public int CameraState { get; set; } + public int CockpitCameraZoom { get; set; } + public bool PlaneInParkingSpot { get; set; } public bool IsSimulatorStarted { get; set; } diff --git a/Orchestration/FlightSimOrchestrator.cs b/Orchestration/FlightSimOrchestrator.cs index 93502c9..5625741 100644 --- a/Orchestration/FlightSimOrchestrator.cs +++ b/Orchestration/FlightSimOrchestrator.cs @@ -69,6 +69,10 @@ namespace MSFSPopoutPanelManager.Orchestration var trackIR = Convert.ToBoolean(e.Find(d => d.PropertyName == SimDataDefinitions.PropName.TrackIREnable).Value); if (trackIR != _flightSimData.TrackIRStatus) _flightSimData.TrackIRStatus = trackIR; + + var cockpitCameraZoom = Convert.ToInt32(e.Find(d => d.PropertyName == SimDataDefinitions.PropName.CockpitCameraZoom).Value); + if (cockpitCameraZoom != _flightSimData.CockpitCameraZoom) + _flightSimData.CockpitCameraZoom = cockpitCameraZoom; }; _simConnectProvider.OnSimConnectDataHudBarRefreshed += (sender, e) => @@ -308,6 +312,11 @@ namespace MSFSPopoutPanelManager.Orchestration _simConnectProvider.DecreaseSimRate(); } + public void SetCockpitCameraZoomLevel(int zoomLevel) + { + _simConnectProvider.SetCockpitCameraZoomLevel(zoomLevel); + } + public void SetHudBarConfig() { if (_simConnectProvider == null) diff --git a/Orchestration/MainOrchestrator.cs b/Orchestration/MainOrchestrator.cs index 4f080c7..6635272 100644 --- a/Orchestration/MainOrchestrator.cs +++ b/Orchestration/MainOrchestrator.cs @@ -19,7 +19,7 @@ namespace MSFSPopoutPanelManager.Orchestration FlightSimData.ProfileDataRef = ProfileData; Profile = new ProfileOrchestrator(ProfileData, FlightSimData); - PanelSource = new PanelSourceOrchestrator(ProfileData, AppSettingData); + PanelSource = new PanelSourceOrchestrator(ProfileData, AppSettingData, FlightSimData); PanelPopOut = new PanelPopOutOrchestrator(ProfileData, AppSettingData, FlightSimData); PanelConfiguration = new PanelConfigurationOrchestrator(ProfileData, AppSettingData, FlightSimData); FlightSim = new FlightSimOrchestrator(ProfileData, AppSettingData, FlightSimData); diff --git a/Orchestration/Orchestration.csproj b/Orchestration/Orchestration.csproj index 392f7e2..c6034c6 100644 --- a/Orchestration/Orchestration.csproj +++ b/Orchestration/Orchestration.csproj @@ -11,9 +11,9 @@ https://github.com/hawkeye-stan/msfs-popout-panel-manager MSFSPopoutPanelManager.Orchestration x64 - 4.0.1.3 - 4.0.1.3 - 4.0.1.3 + 4.0.2.0 + 4.0.2.0 + 4.0.2.0 win-x64 Embedded Debug;Release;Local diff --git a/Orchestration/PanelPopOutOrchestrator.cs b/Orchestration/PanelPopOutOrchestrator.cs index 61731d5..063a384 100644 --- a/Orchestration/PanelPopOutOrchestrator.cs +++ b/Orchestration/PanelPopOutOrchestrator.cs @@ -19,6 +19,7 @@ namespace MSFSPopoutPanelManager.Orchestration private ProfileData _profileData; private AppSettingData _appSettingData; private FlightSimData _flightSimData; + private int _prePopOutCockpitZoomLevel = 50; public PanelPopOutOrchestrator(ProfileData profileData, AppSettingData appSettingData, FlightSimData flightSimData) { @@ -181,7 +182,11 @@ namespace MSFSPopoutPanelManager.Orchestration if (AppSetting.PopOutSetting.AutoPanning.IsEnabled) { StatusMessageWriter.WriteMessage("Setting auto panning camera angle", StatusMessageType.Info); + + // Remember current game's zoom level to be recall after pop out + _prePopOutCockpitZoomLevel = _flightSimData.CockpitCameraZoom; InputEmulationManager.LoadCustomView(AppSetting.PopOutSetting.AutoPanning.KeyBinding); + FlightSimOrchestrator.SetCockpitCameraZoomLevel(50); StatusMessageWriter.WriteOkStatusMessage(); } }); @@ -238,7 +243,10 @@ namespace MSFSPopoutPanelManager.Orchestration FlightSimOrchestrator.TurnOffActivePause(); // Return to custom camera view if set - var task = Task.Run(() => ReturnToAfterPopOutCameraView()); + var task = Task.Run(() => { + FlightSimOrchestrator.SetCockpitCameraZoomLevel(_prePopOutCockpitZoomLevel); + ReturnToAfterPopOutCameraView(); + }); }); } @@ -474,9 +482,11 @@ namespace MSFSPopoutPanelManager.Orchestration switch (AppSetting.PopOutSetting.AfterPopOutCameraView.CameraView) { case AfterPopOutCameraViewType.CockpitCenterView: + FlightSimOrchestrator.SetCockpitCameraZoomLevel(_prePopOutCockpitZoomLevel); InputEmulationManager.CenterView(); break; case AfterPopOutCameraViewType.CustomCameraView: + FlightSimOrchestrator.SetCockpitCameraZoomLevel(_prePopOutCockpitZoomLevel); InputEmulationManager.LoadCustomView(AppSetting.PopOutSetting.AfterPopOutCameraView.KeyBinding); break; } diff --git a/Orchestration/PanelSourceOrchestrator.cs b/Orchestration/PanelSourceOrchestrator.cs index ec7a227..b34c289 100644 --- a/Orchestration/PanelSourceOrchestrator.cs +++ b/Orchestration/PanelSourceOrchestrator.cs @@ -3,6 +3,7 @@ using MSFSPopoutPanelManager.DomainModel.Setting; using MSFSPopoutPanelManager.Shared; using MSFSPopoutPanelManager.WindowsAgent; using System; +using System.Threading; using System.Threading.Tasks; using Point = System.Drawing.Point; @@ -12,11 +13,14 @@ namespace MSFSPopoutPanelManager.Orchestration { private ProfileData _profileData; private AppSettingData _appSettingData; + private FlightSimData _flightSimData; + private int _prePanelConfigurationCockpitZoomLevel = 50; - public PanelSourceOrchestrator(ProfileData profileData, AppSettingData appSettingData) + public PanelSourceOrchestrator(ProfileData profileData, AppSettingData appSettingData, FlightSimData flightSimData) { _profileData = profileData; _appSettingData = appSettingData; + _flightSimData = flightSimData; _profileData.ActiveProfileChanged += (sender, e) => { CloseAllPanelSource(); }; } @@ -57,7 +61,9 @@ namespace MSFSPopoutPanelManager.Orchestration if (AppSetting.PopOutSetting.AutoPanning.IsEnabled) { + _prePanelConfigurationCockpitZoomLevel = _flightSimData.CockpitCameraZoom; InputEmulationManager.LoadCustomView(AppSetting.PopOutSetting.AutoPanning.KeyBinding); + FlightSimOrchestrator.SetCockpitCameraZoomLevel(50); WindowActionManager.BringWindowToForeground(ApplicationHandle); } }); @@ -93,15 +99,20 @@ namespace MSFSPopoutPanelManager.Orchestration { // Recenter game or return to after pop out camera view if (!AppSetting.PopOutSetting.AfterPopOutCameraView.IsEnabled) + { + FlightSimOrchestrator.SetCockpitCameraZoomLevel(_prePanelConfigurationCockpitZoomLevel); InputEmulationManager.CenterView(); + } else { switch (AppSetting.PopOutSetting.AfterPopOutCameraView.CameraView) { case AfterPopOutCameraViewType.CockpitCenterView: + FlightSimOrchestrator.SetCockpitCameraZoomLevel(_prePanelConfigurationCockpitZoomLevel); InputEmulationManager.CenterView(); break; case AfterPopOutCameraViewType.CustomCameraView: + FlightSimOrchestrator.SetCockpitCameraZoomLevel(_prePanelConfigurationCockpitZoomLevel); InputEmulationManager.LoadCustomView(AppSetting.PopOutSetting.AfterPopOutCameraView.KeyBinding); break; } diff --git a/RELEASENOTES.md b/RELEASENOTES.md index b2b62a6..1222570 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,76 +1,4 @@ -## Version 4.0.1.3 +## Version 4.0.2 * Added workaround for CJ4 CDU panel not popping out because of MSFS bug. -## Version 4.0.1.2 -* Hotfix - Fixed issue where using touch panel feature may freeze computer and the application. - -Known Issue: -If the profile has the option of "entire monitor display to have game refocus function when touch" enabled, the configuration of display panels must be listed after the configuration of pop out panels in profile configuration. - -## Version 4.0.1.1 - -* Added preference option in pop out settings to disable pop out progress messages from appearing. - -* Added new feature to enable auto game refocus for entire display when using touch. - -* Fixed issue when full screen mode is activated which may cause black bar to appear on either size (top/bottom or left/right). - -* Fixed preferences pop out title bar color customization setting not saving. - -* Fixed few UI issues from v4.0. - - -## Version 4.0.0 - -* Major improvement on responsiveness for touch and drag when using touch panel feature. (Please set Touch Down Touch Up Delay to 0 in preference setting to get the fastest performance) - -* Brand new redesigned user interface. User will have the ability to edit panel configurations before panels are popped out. - -* Added ability to add, remove, edit pop out panel for a profile without the need to redo the entire profile. - -* Added ability to configure source instrumentation pop out panel location more easily. - -* Added UI feedback when panels are being popped out. Panel configurations are being highlighted as they pop out. Also added onscreen status showing pop out progress. - -* Added ability to navigate between profile and search for profile by name. - -* Added ability to update profile name. - -* Added ability to reorder panel pop out sequence. This may help resolve MSFS issue where panel may not pop out correctly unless they are popped out in certain sequence. - -* Updated ability to use keyboard commands to move and adjust pop out panel's size and location without the need to click +/- pixel icons. - -* Added auto game refocus option for non-touch enabled panel. An example use case is if you accidentally hover or click a non-touch enabled panel (PFD screen), now the flight control will not be locked out. - -* Added preference option to automatically pause the game when pop out is in progress. A example use case is the game can pause during the start of landing challenge until pop out process is completed. - -* Added preference option to move panel around when profile is locked. Panel configuration will still be locked and will not get changed. - -* Added preference option to allow Pop Out Panel Manager to stay open during pop out process. - -* Added preference option to allow setting of pop out title bar color. Instead of the white title bar, the color can be set to blend in with Air Manager's background. - -* Added preference option to delay auto pop out after Ready to Fly button is clicked by POPM plugin. For slower computer, this may resolve failed auto pop out because this process was executing too quickly after Ready to Fly button is clicked. - -* Added preference option to disable automatic check for application update (for users who want to make sure application is not bypassing firewall and for privacy reason). - -* Added a bonus HUD bar feature for PMDG 737 (which I fly the most) and generic aircraft. This includes a stop watch and adjust sim rate function. - -* Fixed an outstanding issue where panel configuration information is not accurate (top, left, width, height). Even though application was still working correctly in previous version, the configuration data is not quite correct. In this release, these panel configuration information are mostly fixed. - -* Fixed an issue when applying hide title bar to panel, the location and size for the panel will be different than specified (off by about 9 pixels). With this fix, you will need to re-adjust the panel size for the hidden title bar panel. - -* Updated user profile and application setting data file format. This new file format is not backward compatible. During first launch of the application, data migration will automatically take place. Backup files will also be created in the event you need to go back to previous version of POPM. - -* Updated core code base to improve general application performance and resolve some outstanding bugs and issues regarding latest MSFS code SU12/AAU2. - -* Updated application to use latest SimConnect SDK and .NET Framework 7.0. - -* Added application rollback feature to restore previous version of the application (v3.4.6.0321) and restore backup of user profile and settings file. - -Known issues: - -* With rework of core panel configuration data structures, existing profile pop out panel placement may be off by a few pixels. Please use panel configuration function to adjust existing panel size and location if needed. This will only a one time ajustment per profile. - -* When applying hide title bar to panel, even though the panel will now correctly fit into bezel or monitor you specified, the aspect ratio of the inner display will mostly be incorrect. This is an MSFS issue and I'm still investigating a workaround for this problem. - +* Added workaround fix when using camera zoom setting with value other than 50 in MSFS general options will cause Pop Out Panel Manager pop out to fail. This is an existing MSFS bug where saving and loading of custom camera view is currently broken for zoom level other than 50. diff --git a/Shared/Shared.csproj b/Shared/Shared.csproj index fc5a47a..5147edc 100644 --- a/Shared/Shared.csproj +++ b/Shared/Shared.csproj @@ -11,9 +11,9 @@ https://github.com/hawkeye-stan/msfs-popout-panel-manager MSFSPopoutPanelManager.Shared x64 - 4.0.1.3 - 4.0.1.3 - 4.0.1.3 + 4.0.2.0 + 4.0.2.0 + 4.0.2.0 win-x64 Embedded Debug;Release;Local diff --git a/SimconnectAgent/Enums.cs b/SimconnectAgent/Enums.cs index 4e9532a..1d42601 100644 --- a/SimconnectAgent/Enums.cs +++ b/SimconnectAgent/Enums.cs @@ -4,7 +4,8 @@ { REQUIRED_DEFINITION = 0, HUDBAR_DEFINITION, - WRITEABLE_DEFINITION, + WRITEABLE_TRACKIR_DEFINITION, + WRITEABLE_COCKPITCAMERAZOOM_DEFINITION, NA } diff --git a/SimconnectAgent/SimConnectProvider.cs b/SimconnectAgent/SimConnectProvider.cs index bc8d2ac..b5e36c0 100644 --- a/SimconnectAgent/SimConnectProvider.cs +++ b/SimconnectAgent/SimConnectProvider.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; +using static MSFSPopoutPanelManager.SimConnectAgent.SimDataDefinitions; namespace MSFSPopoutPanelManager.SimConnectAgent { @@ -228,9 +229,14 @@ namespace MSFSPopoutPanelManager.SimConnectAgent Thread.Sleep(200); } + public void SetCockpitCameraZoomLevel(int zoomLevel) + { + _simConnector.SetDataObject(WriteableVariableName.CockpitCameraZoom, Convert.ToDouble(zoomLevel)); + } + private void SetTrackIREnable(bool enable) { - _simConnector.SetDataObject(SimDataDefinitions.WriteableVariableName.TrackIREnable, enable ? Convert.ToDouble(1) : Convert.ToDouble(0)); + _simConnector.SetDataObject(WriteableVariableName.TrackIREnable, enable ? Convert.ToDouble(1) : Convert.ToDouble(0)); } private void HandleSimConnected(object source, EventArgs e) diff --git a/SimconnectAgent/SimConnector.cs b/SimconnectAgent/SimConnector.cs index c10723b..b7f8718 100644 --- a/SimconnectAgent/SimConnector.cs +++ b/SimconnectAgent/SimConnector.cs @@ -6,6 +6,7 @@ using System.Diagnostics; using System.Reflection; using System.Threading.Tasks; using System.Timers; +using static MSFSPopoutPanelManager.SimConnectAgent.SimDataDefinitions; namespace MSFSPopoutPanelManager.SimConnectAgent { @@ -176,14 +177,22 @@ namespace MSFSPopoutPanelManager.SimConnectAgent } } - public void SetDataObject(string propName, object dValue) + public void SetDataObject(WriteableVariableName propName, object dValue) { try { var dataStruct = new WriteableDataStruct(); dataStruct.Prop0 = (double)dValue; - _simConnect.SetDataOnSimObject(DATA_DEFINITION.WRITEABLE_DEFINITION, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, dataStruct); + switch (propName) + { + case WriteableVariableName.TrackIREnable: + _simConnect.SetDataOnSimObject(DATA_DEFINITION.WRITEABLE_TRACKIR_DEFINITION, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, dataStruct); + break; + case WriteableVariableName.CockpitCameraZoom: + _simConnect.SetDataOnSimObject(DATA_DEFINITION.WRITEABLE_COCKPITCAMERAZOOM_DEFINITION, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, dataStruct); + break; + } } catch (Exception ex) { @@ -298,10 +307,12 @@ namespace MSFSPopoutPanelManager.SimConnectAgent } } - _simConnect.AddToDataDefinition(DATA_DEFINITION.WRITEABLE_DEFINITION, "TRACK IR ENABLE", "bool", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED); + _simConnect.AddToDataDefinition(DATA_DEFINITION.WRITEABLE_TRACKIR_DEFINITION, "TRACK IR ENABLE", "bool", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED); + _simConnect.AddToDataDefinition(DATA_DEFINITION.WRITEABLE_COCKPITCAMERAZOOM_DEFINITION, "COCKPIT CAMERA ZOOM", "percentage", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED); _simConnect.RegisterDataDefineStruct(DATA_DEFINITION.REQUIRED_DEFINITION); - _simConnect.RegisterDataDefineStruct(DATA_DEFINITION.WRITEABLE_DEFINITION); + _simConnect.RegisterDataDefineStruct(DATA_DEFINITION.WRITEABLE_TRACKIR_DEFINITION); + _simConnect.RegisterDataDefineStruct(DATA_DEFINITION.WRITEABLE_COCKPITCAMERAZOOM_DEFINITION); } private void AddHudBarDataDefinitions() diff --git a/SimconnectAgent/SimDataDefinitions.cs b/SimconnectAgent/SimDataDefinitions.cs index 68ab0b2..5c8a668 100644 --- a/SimconnectAgent/SimDataDefinitions.cs +++ b/SimconnectAgent/SimDataDefinitions.cs @@ -12,6 +12,7 @@ namespace MSFSPopoutPanelManager.SimConnectAgent definitions.Add(new SimConnectDataDefinition() { DefinitionId = DATA_DEFINITION.REQUIRED_DEFINITION, RequestId = DATA_REQUEST.REQUIRED_REQUEST, DataDefinitionType = DataDefinitionType.SimConnect, PropName = PropName.TrackIREnable, VariableName = "TRACK IR ENABLE", SimConnectUnit = "Bool", DataType = DataType.Float64 }); definitions.Add(new SimConnectDataDefinition() { DefinitionId = DATA_DEFINITION.REQUIRED_DEFINITION, RequestId = DATA_REQUEST.REQUIRED_REQUEST, DataDefinitionType = DataDefinitionType.SimConnect, PropName = PropName.PlaneInParkingSpot, VariableName = "ATC ON PARKING SPOT", SimConnectUnit = "Bool", DataType = DataType.Float64 }); definitions.Add(new SimConnectDataDefinition() { DefinitionId = DATA_DEFINITION.REQUIRED_DEFINITION, RequestId = DATA_REQUEST.REQUIRED_REQUEST, DataDefinitionType = DataDefinitionType.SimConnect, PropName = PropName.CameraState, VariableName = "CAMERA STATE", SimConnectUnit = "Number", DataType = DataType.Float64 }); + definitions.Add(new SimConnectDataDefinition() { DefinitionId = DATA_DEFINITION.REQUIRED_DEFINITION, RequestId = DATA_REQUEST.REQUIRED_REQUEST, DataDefinitionType = DataDefinitionType.SimConnect, PropName = PropName.CockpitCameraZoom, VariableName = "COCKPIT CAMERA ZOOM", SimConnectUnit = "Percentage", DataType = DataType.Float64 }); return definitions; } @@ -74,6 +75,7 @@ namespace MSFSPopoutPanelManager.SimConnectAgent public static string PlaneInParkingSpot = "PlaneInParkingSpot"; public static string CameraState = "CameraState"; public static string AircraftName = "AircraftName"; + public static string CockpitCameraZoom = "CockpitCameraZoom"; // Hud Bar data public static string ElevatorTrim = "ElevatorTrim"; @@ -87,9 +89,10 @@ namespace MSFSPopoutPanelManager.SimConnectAgent public static string SimRate = "SimRate"; } - public static class WriteableVariableName + public enum WriteableVariableName { - public static string TrackIREnable = "TRACK IR ENABLE"; + TrackIREnable, + CockpitCameraZoom } } diff --git a/SimconnectAgent/SimconnectAgent.csproj b/SimconnectAgent/SimconnectAgent.csproj index 5361579..c18fab9 100644 --- a/SimconnectAgent/SimconnectAgent.csproj +++ b/SimconnectAgent/SimconnectAgent.csproj @@ -11,9 +11,9 @@ https://github.com/hawkeye-stan/msfs-popout-panel-manager MSFSPopoutPanelManager.SimConnectAgent x64 - 4.0.1.3 - 4.0.1.3 - 4.0.1.3 + 4.0.2.0 + 4.0.2.0 + 4.0.2.0 win-x64 Embedded Debug;Release;Local diff --git a/VERSION.md b/VERSION.md index afc11b7..b1b36a4 100644 --- a/VERSION.md +++ b/VERSION.md @@ -1,10 +1,11 @@ # Version History
- -## Version 4.0.1.3 +## Version 4.0.2 * Added workaround for CJ4 CDU panel not popping out because of MSFS bug. +* Added workaround fix when using camera zoom setting with value other than 50 in MSFS general options will cause Pop Out Panel Manager pop out to fail. This is an existing MSFS bug where saving and loading of custom camera view is currently broken for zoom level other than 50. + ## Version 4.0.1.2 * Hotfix - Fixed issue where using touch panel feature may freeze computer and the application. diff --git a/WindowsAgent/WindowsAgent.csproj b/WindowsAgent/WindowsAgent.csproj index 5f47e92..f2e670e 100644 --- a/WindowsAgent/WindowsAgent.csproj +++ b/WindowsAgent/WindowsAgent.csproj @@ -11,9 +11,9 @@ https://github.com/hawkeye-stan/msfs-popout-panel-manager MSFSPopoutPanelManager.WindowsAgent x64 - 4.0.1.3 - 4.0.1.3 - 4.0.1.3 + 4.0.2.0 + 4.0.2.0 + 4.0.2.0 win-x64 Embedded Debug;Release;Local