DP-CustomResolution/CustomResolution/Configuration.cs

45 lines
798 B
C#
Raw Normal View History

2024-02-14 00:05:07 +01:00
using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
namespace CustomResolution;
[Serializable]
public class Configuration : IPluginConfiguration
{
public int Version { get; set; } = 0;
2024-02-18 22:48:02 +01:00
public bool IsEnabled = true;
2024-02-14 00:05:07 +01:00
public bool IsScale = true;
public float Scale = 1f;
public uint Width = 1024;
public uint Height = 1024;
[NonSerialized]
private DalamudPluginInterface? pluginInterface;
internal void Initialize(DalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
pluginInterface!.SavePluginConfig(this);
}
}
public enum CullingMode
{
None,
OnlyInFront,
OnlyInView
}
public enum DutyMode
{
Always,
OutsideContent,
InContent
}