Added The ability to override the plugin style

This commit is contained in:
Spider
2024-04-09 17:29:35 -05:00
parent 9feb70d262
commit 9412711050
3 changed files with 37 additions and 0 deletions
+5
View File
@@ -50,6 +50,9 @@ internal class Configuration : IPluginConfiguration {
public Dictionary<ChatType, uint> ChatColours = new();
public List<Tab> Tabs = new();
public bool OverrideStyle = false;
public string ChosenStyle = "";
public uint DatabaseMigration = LatestDbVersion;
internal void UpdateFrom(Configuration other) {
@@ -88,6 +91,8 @@ internal class Configuration : IPluginConfiguration {
ChatColours = other.ChatColours.ToDictionary(entry => entry.Key, entry => entry.Value);
Tabs = other.Tabs.Select(t => t.Clone()).ToList();
DatabaseMigration = other.DatabaseMigration;
OverrideStyle = other.OverrideStyle;
ChosenStyle = other.ChosenStyle;
}
public void Migrate() {