1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-12-27 14:52:01 +00:00

Version 4.1.0 Release

This commit is contained in:
hawkeye 2024-03-12 09:14:17 -04:00
parent 29f616324e
commit 54c7f96e0f
15 changed files with 53 additions and 40 deletions

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.DomainModel</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.1.0.3</Version>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Version>4.1.0.4</Version>
<AssemblyVersion>4.1.0.4</AssemblyVersion>
<FileVersion>4.1.0.4</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -216,7 +216,10 @@
<!-- Panel configurations -->
<StackPanel Width="440" VerticalAlignment="Center">
<StackPanel
Width="440"
VerticalAlignment="Center"
IsEnabled="{c:Binding 'DataItem.IsFloating'}">
<StackPanel
x:Name="StackPanelAdjustment"
Width="440"

View file

@ -14,9 +14,9 @@
<RootNamespace>MSFSPopoutPanelManager.MainApp</RootNamespace>
<ApplicationIcon>logo.ico</ApplicationIcon>
<Platforms>x64</Platforms>
<Version>4.1.0.3</Version>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Version>4.1.0.4</Version>
<AssemblyVersion>4.1.0.4</AssemblyVersion>
<FileVersion>4.1.0.4</FileVersion>
<DebugType>embedded</DebugType>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<!-- Publishing options -->

View file

@ -1,4 +1,5 @@
using MSFSPopoutPanelManager.Shared;
using MSFSPopoutPanelManager.WindowsAgent;
namespace MSFSPopoutPanelManager.Orchestration
{
@ -16,5 +17,16 @@ namespace MSFSPopoutPanelManager.Orchestration
protected AppSettingData AppSettingData => _sharedStorage.AppSettingData;
protected FlightSimData FlightSimData => _sharedStorage.FlightSimData;
protected void CloseAllPopOuts()
{
foreach (var panelConfig in ProfileData.ActiveProfile.PanelConfigs)
{
if (panelConfig.FloatingPanel.IsEnabled && !panelConfig.IsFloating)
panelConfig.IsFloating = true;
}
WindowActionManager.CloseAllPopOuts();
}
}
}

View file

@ -40,7 +40,7 @@ namespace MSFSPopoutPanelManager.Orchestration
public static void Attach(FlightSimData flightSimData, AppSettingData appSettingData)
{
if (appSettingData == null || !appSettingData.ApplicationSetting.DynamicLodSetting.IsEnabled || _isActive)
if (appSettingData == null || _isActive)
return;
_flightSimData = flightSimData;
@ -76,7 +76,7 @@ namespace MSFSPopoutPanelManager.Orchestration
if (_appSettingData == null)
return;
if (_appSettingData.ApplicationSetting.DynamicLodSetting.IsEnabled && _appSettingData.ApplicationSetting.DynamicLodSetting.ResetEnabled)
if (_appSettingData.ApplicationSetting.DynamicLodSetting.ResetEnabled)
{
WriteTlod(_appSettingData.ApplicationSetting.DynamicLodSetting.ResetTlod);
WriteOlod(_appSettingData.ApplicationSetting.DynamicLodSetting.ResetOlod);

View file

@ -40,7 +40,9 @@ namespace MSFSPopoutPanelManager.Orchestration
WindowProcessManager.GetSimulatorProcess(); // refresh simulator process
DetectMsfsExit();
DynamicLodManager.Attach(FlightSimData, AppSettingData); // Attach in memory override for Dynamic LOD
// Attach in memory override for Dynamic LOD
if (AppSettingData != null && AppSettingData.ApplicationSetting.DynamicLodSetting.IsEnabled)
DynamicLodManager.Attach(FlightSimData, AppSettingData);
};
_simConnectProvider.OnDisconnected += (_, _) =>
@ -390,7 +392,9 @@ namespace MSFSPopoutPanelManager.Orchestration
FlightSimData.IsFlightStarted = true;
DynamicLodManager.Attach(FlightSimData, AppSettingData); // Attach in memory override for Dynamic LOD
// Attach in memory override for Dynamic LOD
if (AppSettingData != null && AppSettingData.ApplicationSetting.DynamicLodSetting.IsEnabled)
DynamicLodManager.Attach(FlightSimData, AppSettingData);
}
private void HandleOnFlightStopped(object sender, EventArgs e)
@ -398,14 +402,16 @@ namespace MSFSPopoutPanelManager.Orchestration
ProfileData.ResetActiveProfile();
OnFlightStopped?.Invoke(this, EventArgs.Empty);
WindowActionManager.CloseAllPopOuts();
CloseAllPopOuts();
FlightSimData.HudBarData?.Clear();
FlightSimData.IsFlightStarted = false;
DynamicLodManager.Detach(); // Detach in memory override for Dynamic LOD
// Detach in memory override for Dynamic LOD
if (AppSettingData != null && AppSettingData.ApplicationSetting.DynamicLodSetting.IsEnabled)
DynamicLodManager.Detach();
}
private void DetectMsfsExit()

View file

@ -139,7 +139,6 @@ namespace MSFSPopoutPanelManager.Orchestration
PreferenceConfigurationDetection,
StartPopOutKeyboardShortcut,
FloatingPanelDetection,
FloatingPanel,
FloatingPanel
}
}

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Orchestration</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.1.0.3</Version>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Version>4.1.0.4</Version>
<AssemblyVersion>4.1.0.4</AssemblyVersion>
<FileVersion>4.1.0.4</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -32,7 +32,7 @@ namespace MSFSPopoutPanelManager.Orchestration
_keyboardOrchestrator.OnKeystrokeDetected += (_, e) =>
{
if (ActiveProfile == null)
if (ProfileData == null || ActiveProfile == null)
return;
var panel = ActiveProfile.PanelConfigs.FirstOrDefault(p => p.Id == e.PanelId);

View file

@ -95,8 +95,7 @@ namespace MSFSPopoutPanelManager.Orchestration
public void ClosePopOut()
{
// Close all existing custom pop out panels
WindowActionManager.CloseAllPopOuts();
CloseAllPopOuts();
if (ActiveProfile != null)
ActiveProfile.IsPoppedOut = false;
@ -144,7 +143,7 @@ namespace MSFSPopoutPanelManager.Orchestration
ProfileData.ResetActiveProfile();
// Close all existing custom pop out panels
WindowActionManager.CloseAllPopOuts();
CloseAllPopOuts();
// Close all panel source overlays
_panelSourceOrchestrator.CloseAllPanelSource();
@ -262,14 +261,8 @@ namespace MSFSPopoutPanelManager.Orchestration
panelConfig.IsSelectedPanelSource = true;
//if(!AppSetting.GeneralSetting.TurboMode)
// _panelSourceOrchestrator.ShowPanelSourceNonEdit(panelConfig);
if(panelConfig.PanelSource.X != null && panelConfig.PanelSource.Y != null)
InputEmulationManager.PrepareToPopOutPanel((int)panelConfig.PanelSource.X, (int)panelConfig.PanelSource.Y, AppSetting.GeneralSetting.TurboMode);
//if(!AppSetting.GeneralSetting.TurboMode)
// _panelSourceOrchestrator.ClosePanelSourceNonEdit(panelConfig);
ExecuteCustomPopout(panelConfig, builtInPanelHandles, index++);

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Shared</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.1.0.3</Version>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Version>4.1.0.4</Version>
<AssemblyVersion>4.1.0.4</AssemblyVersion>
<FileVersion>4.1.0.4</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.SimConnectAgent</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.1.0.3</Version>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Version>4.1.0.4</Version>
<AssemblyVersion>4.1.0.4</AssemblyVersion>
<FileVersion>4.1.0.4</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -55,7 +55,7 @@ namespace MSFSPopoutPanelManager.WindowsAgent
MoveAppWindowFromLeftClickPoint(x, y);
LeftClick(x + 30, y); // Left click outside the circle area to focus game window
LeftClick(x, y); // Left click outside the circle area to focus game window
// Force cursor reset and focus
PInvoke.SetCursorPos(x, y);

View file

@ -189,7 +189,7 @@ namespace MSFSPopoutPanelManager.WindowsAgent
return;
}
if (panelConfig.FloatingPanel.IsEnabled && panelConfig.IsFloating) // do not update coordinate if floating panel
if (panelConfig.FloatingPanel.IsEnabled && !panelConfig.IsFloating) // do not update coordinate if floating panel
return;
panelConfig.Left = rect.Left;

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.WindowsAgent</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.1.0.3</Version>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Version>4.1.0.4</Version>
<AssemblyVersion>4.1.0.4</AssemblyVersion>
<FileVersion>4.1.0.4</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>