mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 05:40:11 +00:00
33 lines
878 B
C#
33 lines
878 B
C#
|
using MSFSPopoutPanelManager.Shared;
|
|||
|
using Newtonsoft.Json;
|
|||
|
|
|||
|
namespace MSFSPopoutPanelManager.DomainModel.Setting
|
|||
|
{
|
|||
|
public class AfterPopOutCameraView : ObservableObject
|
|||
|
{
|
|||
|
public AfterPopOutCameraView()
|
|||
|
{
|
|||
|
// Default values
|
|||
|
IsEnabled = true;
|
|||
|
CameraView = AfterPopOutCameraViewType.CockpitCenterView;
|
|||
|
KeyBinding = "1";
|
|||
|
}
|
|||
|
|
|||
|
public bool IsEnabled { get; set; }
|
|||
|
|
|||
|
public AfterPopOutCameraViewType CameraView { get; set; }
|
|||
|
|
|||
|
public string KeyBinding { get; set; }
|
|||
|
|
|||
|
// Use for MVVM binding only
|
|||
|
[JsonIgnore]
|
|||
|
public bool IsEnabledCustomCameraKeyBinding { get { return IsEnabled && CameraView == AfterPopOutCameraViewType.CustomCameraView; } }
|
|||
|
}
|
|||
|
|
|||
|
public enum AfterPopOutCameraViewType
|
|||
|
{
|
|||
|
CockpitCenterView,
|
|||
|
CustomCameraView
|
|||
|
}
|
|||
|
}
|