1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 13:50:14 +00:00
msfs-popout-panel-manager/DomainModel/Setting/AfterPopOutCameraView.cs

25 lines
704 B
C#
Raw Normal View History

2023-07-12 22:41:31 +00:00
using MSFSPopoutPanelManager.Shared;
using Newtonsoft.Json;
namespace MSFSPopoutPanelManager.DomainModel.Setting
{
public class AfterPopOutCameraView : ObservableObject
{
2024-02-28 02:44:21 +00:00
public bool IsEnabled { get; set; } = true;
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public AfterPopOutCameraViewType CameraView { get; set; } = AfterPopOutCameraViewType.CockpitCenterView;
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public string KeyBinding { get; set; } = "1";
2023-07-12 22:41:31 +00:00
// Use for MVVM binding only
[JsonIgnore]
2024-02-28 02:44:21 +00:00
public bool IsEnabledCustomCameraKeyBinding => IsEnabled && CameraView == AfterPopOutCameraViewType.CustomCameraView;
2023-07-12 22:41:31 +00:00
}
public enum AfterPopOutCameraViewType
{
CockpitCenterView,
CustomCameraView
}
}