Make meta hooks respect Enable Mod setting and fix EQP composition.

This commit is contained in:
Ottermandias 2024-06-19 22:34:59 +02:00
parent a90e253c73
commit 29f8c91306
12 changed files with 121 additions and 33 deletions

View file

@ -31,7 +31,21 @@ public class Configuration : IPluginConfiguration, ISavable, IService
public ChangeLogDisplayType ChangeLogDisplayType { get; set; } = ChangeLogDisplayType.New;
public bool EnableMods { get; set; } = true;
public event Action<bool>? ModsEnabled;
[JsonIgnore]
private bool _enableMods = true;
public bool EnableMods
{
get => _enableMods;
set
{
_enableMods = value;
ModsEnabled?.Invoke(value);
}
}
public string ModDirectory { get; set; } = string.Empty;
public string ExportDirectory { get; set; } = string.Empty;