1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-10-16 06:00:45 +00:00

Add SimConnect download indicator

This commit is contained in:
hawkeye 2023-08-18 17:02:03 -04:00
parent 6c2bacda6c
commit f9b504574f
12 changed files with 56 additions and 19 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.0.2.4</Version>
<AssemblyVersion>4.0.2.4</AssemblyVersion>
<FileVersion>4.0.2.4</FileVersion>
<Version>4.0.2.5</Version>
<AssemblyVersion>4.0.2.5</AssemblyVersion>
<FileVersion>4.0.2.5</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -67,7 +67,10 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="200" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0,0,0,0">
<StackPanel
Grid.Column="0"
Margin="0,0,0,0"
Orientation="Horizontal">
<Button
Margin="0"
Padding="0"
@ -88,6 +91,27 @@
</Style>
</Button.Style>
</Button>
<Button
Width="{StaticResource IconSize}"
Height="{StaticResource IconSize}"
Margin="5,4,0,0"
Padding="0"
HorizontalAlignment="Left"
ToolTip="Receiving SimConnect data">
<Button.Style>
<Style BasedOn="{StaticResource MaterialDesignIconButton}" TargetType="Button">
<Style.Triggers>
<DataTrigger Binding="{Binding FlightSimData.IsSimConnectDataReceived}" Value="True">
<Setter Property="Foreground" Value="LightGreen" />
</DataTrigger>
<DataTrigger Binding="{Binding FlightSimData.IsSimConnectDataReceived}" Value="False">
<Setter Property="Foreground" Value="White" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<materialDesign:PackIcon Kind="DownloadOutline" />
</Button>
</StackPanel>
<StackPanel Grid.Column="1" Width="Auto">
<TextBlock

View file

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

View file

@ -40,6 +40,8 @@ namespace MSFSPopoutPanelManager.MainApp.ViewModel
// Set Always on Top
if (Orchestrator.AppSettingData.ApplicationSetting.GeneralSetting.AlwaysOnTop)
WindowActionManager.ApplyAlwaysOnTop(ApplicationHandle, PanelType.PopOutManager, Orchestrator.AppSettingData.ApplicationSetting.GeneralSetting.AlwaysOnTop);
}
public void WindowClosing()

View file

@ -39,6 +39,8 @@ namespace MSFSPopoutPanelManager.Orchestration
public bool IsSimulatorStarted { get; set; }
public bool IsSimConnectDataReceived { get; set; }
public bool IsInCockpit { get; set; }
public IHudBarData HudBarData { get; set; }

View file

@ -6,6 +6,7 @@ using MSFSPopoutPanelManager.WindowsAgent;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace MSFSPopoutPanelManager.Orchestration
{
@ -53,6 +54,7 @@ namespace MSFSPopoutPanelManager.Orchestration
_simConnectProvider.OnDisconnected += (sender, e) =>
{
_flightSimData.IsSimConnectDataReceived = false;
_flightSimData.IsSimConnectActive = false;
WindowProcessManager.GetSimulatorProcess(); // refresh simulator process
_flightSimData.Reset();
@ -60,6 +62,7 @@ namespace MSFSPopoutPanelManager.Orchestration
_simConnectProvider.OnException += (sender, e) =>
{
_flightSimData.IsSimConnectDataReceived = false;
_flightSimData.IsSimConnectActive = false;
};
@ -84,6 +87,8 @@ namespace MSFSPopoutPanelManager.Orchestration
var cameraViewTypeAndIndex1 = Convert.ToInt32(e.Find(d => d.PropertyName == SimDataDefinitions.PropName.CameraViewTypeAndIndex1).Value);
if (cameraViewTypeAndIndex1 != _flightSimData.CameraViewTypeAndIndex1)
_flightSimData.CameraViewTypeAndIndex1 = cameraViewTypeAndIndex1;
_flightSimData.IsSimConnectDataReceived = true;
};
_simConnectProvider.OnSimConnectDataHudBarRefreshed += (sender, e) =>

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.0.2.4</Version>
<AssemblyVersion>4.0.2.4</AssemblyVersion>
<FileVersion>4.0.2.4</FileVersion>
<Version>4.0.2.5</Version>
<AssemblyVersion>4.0.2.5</AssemblyVersion>
<FileVersion>4.0.2.5</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -11,4 +11,6 @@
* Added configurable keyboard shortcut to initiate pop out process (default is Ctrl-Shift-O). This keyboard shortcut can be configured in preference setting. This setting can be disabled to improve computing resource needed to constantly detect keyboard inputs.
* Added indicator to show SimConnect is receiving data.
* Fixed issue where full screen mode for pop out panel does not work on certain aircraft configuration.

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.0.2.4</Version>
<AssemblyVersion>4.0.2.4</AssemblyVersion>
<FileVersion>4.0.2.4</FileVersion>
<Version>4.0.2.5</Version>
<AssemblyVersion>4.0.2.5</AssemblyVersion>
<FileVersion>4.0.2.5</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.0.2.4</Version>
<AssemblyVersion>4.0.2.4</AssemblyVersion>
<FileVersion>4.0.2.4</FileVersion>
<Version>4.0.2.5</Version>
<AssemblyVersion>4.0.2.5</AssemblyVersion>
<FileVersion>4.0.2.5</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -14,6 +14,8 @@
* Added configurable keyboard shortcut to initiate pop out process (default is Ctrl-Shift-O). This keyboard shortcut can be configured in preference setting. This setting can be disabled to improve computing resource needed to constantly detect keyboard inputs.
* Added indicator to show SimConnect is receiving data.
* Fixed issue where full screen mode for pop out panel does not work on certain aircraft configuration.
## Version 4.0.1.2

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.0.2.4</Version>
<AssemblyVersion>4.0.2.4</AssemblyVersion>
<FileVersion>4.0.2.4</FileVersion>
<Version>4.0.2.5</Version>
<AssemblyVersion>4.0.2.5</AssemblyVersion>
<FileVersion>4.0.2.5</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>