1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 23:30:10 +00:00
msfs-popout-panel-manager/Modules/UserData.cs

81 lines
1.8 KiB
C#
Raw Normal View History

2021-09-30 02:17:20 +00:00
using System;
using System.Collections.Generic;
2021-10-17 16:18:45 +00:00
using Newtonsoft.Json;
2021-09-30 02:17:20 +00:00
namespace MSFSPopoutPanelManager
{
public class UserData
{
public UserData()
{
Profiles = new List<UserPlaneProfile>();
DefaultProfileId = 1;
}
public List<UserPlaneProfile> Profiles { get; set; }
public int DefaultProfileId { get; set; }
}
public class UserPlaneProfile
{
public UserPlaneProfile()
{
PanelSourceCoordinates = new List<PanelSourceCoordinate>();
PanelSettings = new PanelSettings();
}
public int ProfileId { get; set; }
public PanelSettings PanelSettings { get; set; }
public List<PanelSourceCoordinate> PanelSourceCoordinates;
}
public class PanelSourceCoordinate
{
public int PanelIndex { get; set; }
public int X { get; set; }
public int Y { get; set; }
}
public class PanelSettings
{
public PanelSettings()
{
PanelDestinationList = new List<PanelDestinationInfo>();
AlwaysOnTop = false;
HidePanelTitleBar = false;
}
public List<PanelDestinationInfo> PanelDestinationList { get; set; }
public bool AlwaysOnTop { get; set; }
public bool HidePanelTitleBar { get; set; }
}
public class PanelDestinationInfo
{
public string PanelName { get; set; }
2021-10-17 16:18:45 +00:00
2021-09-30 02:17:20 +00:00
public int Top { get; set; }
public int Left { get; set; }
public int Width { get; set; }
public int Height { get; set; }
2021-10-17 16:18:45 +00:00
public WindowType PanelType { get; set; }
[JsonIgnore]
public IntPtr PanelHandle { get; set; }
[JsonIgnore]
public bool IsOpened { get; set; }
2021-09-30 02:17:20 +00:00
}
}