TextBoxStyler/TextBoxStyler/Plugin.cs

37 lines
1.1 KiB
C#
Raw Permalink Normal View History

2023-09-28 06:20:52 +00:00
using Dalamud.IoC;
2021-08-29 17:49:52 +00:00
using Dalamud.Plugin;
2023-09-28 06:20:52 +00:00
using Dalamud.Plugin.Services;
2021-05-26 23:12:06 +00:00
namespace TextBoxStyler {
// ReSharper disable once ClassNeverInstantiated.Global
public class Plugin : IDalamudPlugin {
2023-09-28 06:20:52 +00:00
internal static string Name => "Text Box Styler";
2021-05-26 23:12:06 +00:00
2021-08-29 17:49:52 +00:00
[PluginService]
internal DalamudPluginInterface Interface { get; private init; } = null!;
2021-05-26 23:12:06 +00:00
2021-08-29 17:49:52 +00:00
[PluginService]
2023-09-28 06:20:52 +00:00
internal ICommandManager CommandManager { get; private init; } = null!;
2021-05-26 23:12:06 +00:00
2021-08-29 17:49:52 +00:00
internal PluginConfiguration Config { get; }
internal PluginUi Ui { get; }
private Styler Styler { get; }
private Commands Commands { get; }
public Plugin() {
2021-05-26 23:12:06 +00:00
this.Config = this.Interface.GetPluginConfig() as PluginConfiguration ?? new PluginConfiguration();
this.Config.Initialise(this);
this.Styler = new Styler(this);
this.Ui = new PluginUi(this);
this.Commands = new Commands(this);
}
public void Dispose() {
this.Commands.Dispose();
this.Ui.Dispose();
this.Styler.Dispose();
}
}
}