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
|
|
|
|
|
}
|
|
|
|
|
}
|