-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfiguration.cs
More file actions
30 lines (25 loc) · 860 Bytes
/
Copy pathConfiguration.cs
File metadata and controls
30 lines (25 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using Dalamud.Configuration;
using Dalamud.Plugin;
namespace QuestionableJsonBuilder;
[Serializable]
public sealed class Configuration : IPluginConfiguration
{
[NonSerialized]
private IDalamudPluginInterface? pluginInterface;
public int Version { get; set; } = 2;
public string DefaultAuthor { get; set; } = "YourName";
public string DefaultExportDirectory { get; set; } = string.Empty;
public bool PrettyPrintJson { get; set; } = true;
public bool ShowAdvancedFields { get; set; }
public string RemoteQuestIndexUrl { get; set; } =
"https://questionable-worker.epinephren.workers.dev/";
public void Initialize(IDalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
pluginInterface?.SavePluginConfig(this);
}
}