-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfiguration.cs
More file actions
48 lines (37 loc) · 1.25 KB
/
Copy pathConfiguration.cs
File metadata and controls
48 lines (37 loc) · 1.25 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using Dalamud.Configuration;
using System;
using System.Collections.Generic;
namespace CreateXIV;
[Serializable]
public class Configuration : IPluginConfiguration
{
public int Version { get; set; } = 1;
public bool IsMainWindowMovable { get; set; } = true;
public bool SendChatConfirmations { get; set; } = true;
public int NextAliasNumber { get; set; } = 1;
public bool WaitOneToZeroMigrationDone { get; set; } = false;
public List<AliasEntry> Aliases { get; set; } = new();
/// Per-category row colors stored as #RRGGBB (no alpha)
public Dictionary<string, string> CategoryColors { get; set; } = new(StringComparer.OrdinalIgnoreCase);
public void Save()
{
Plugin.PluginInterface.SavePluginConfig(this);
}
}
public enum AliasKind
{
Macro = 0,
Command = 1,
}
[Serializable]
public class AliasEntry
{
public int Number { get; set; } = 0;
public string Alias { get; set; } = string.Empty;
public string Command { get; set; } = string.Empty;
public AliasKind Kind { get; set; } = AliasKind.Command;
public string Category { get; set; } = string.Empty;
public bool Pinned { get; set; } = false;
public bool Enabled { get; set; } = true;
public int CooldownMs { get; set; } = 0;
}