DP-CustomResolution/CustomResolution/Configuration.cs

33 lines
702 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;
public bool IsDXVKDWMHackEnabled = false;
2024-02-14 00:05:07 +01:00
[NonSerialized]
private DalamudPluginInterface? pluginInterface;
internal void Initialize(DalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
pluginInterface!.SavePluginConfig(this);
}
}