mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-25 15:20:10 +00:00
68 lines
1.5 KiB
C#
68 lines
1.5 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MSFSPopoutPanelManager.Shared
|
|
{
|
|
public class UserProfileData
|
|
{
|
|
public UserProfileData()
|
|
{
|
|
PanelSourceCoordinates = new List<PanelSourceCoordinate>();
|
|
PanelConfigs = new List<PanelConfig>();
|
|
IsLocked = false;
|
|
}
|
|
|
|
public int ProfileId { get; set; }
|
|
|
|
public string ProfileName { get; set; }
|
|
|
|
public bool IsDefaultProfile { get; set; }
|
|
|
|
public bool IsLocked { get; set; }
|
|
|
|
public List<PanelSourceCoordinate> PanelSourceCoordinates;
|
|
|
|
public List<PanelConfig> PanelConfigs { get; set; }
|
|
|
|
public void Reset()
|
|
{
|
|
PanelSourceCoordinates.Clear();
|
|
PanelConfigs.Clear();
|
|
IsLocked = false;
|
|
}
|
|
}
|
|
|
|
public class PanelSourceCoordinate
|
|
{
|
|
public int PanelIndex { get; set; }
|
|
|
|
public int X { get; set; }
|
|
|
|
public int Y { get; set; }
|
|
}
|
|
|
|
public class PanelConfig
|
|
{
|
|
public int PanelIndex { get; set; }
|
|
|
|
public string PanelName { get; set; }
|
|
|
|
public PanelType PanelType { get; set; }
|
|
|
|
public int Top { get; set; }
|
|
|
|
public int Left { get; set; }
|
|
|
|
public int Width { get; set; }
|
|
|
|
public int Height { get; set; }
|
|
|
|
public bool AlwaysOnTop { get; set; }
|
|
|
|
public bool HideTitlebar { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public IntPtr PanelHandle { get; set; }
|
|
}
|
|
}
|