refactor: update for api 9

This commit is contained in:
Anna 2023-09-28 02:20:52 -04:00
parent af01f73fe4
commit f29c65755e
Signed by: anna
GPG Key ID: D0943384CD9F87D1
3 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ namespace TextBoxStyler {
this.Plugin = plugin;
this.Plugin.CommandManager.AddHandler(CommandName, new CommandInfo(this.OnCommand) {
HelpMessage = $"Opens the settings for {this.Plugin.Name}",
HelpMessage = $"Opens the settings for {Plugin.Name}",
});
}

View File

@ -1,17 +1,17 @@
using Dalamud.Game.Command;
using Dalamud.IoC;
using Dalamud.IoC;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
namespace TextBoxStyler {
// ReSharper disable once ClassNeverInstantiated.Global
public class Plugin : IDalamudPlugin {
public string Name => "Text Box Styler";
internal static string Name => "Text Box Styler";
[PluginService]
internal DalamudPluginInterface Interface { get; private init; } = null!;
[PluginService]
internal CommandManager CommandManager { get; private init; } = null!;
internal ICommandManager CommandManager { get; private init; } = null!;
internal PluginConfiguration Config { get; }
internal PluginUi Ui { get; }

View File

@ -36,7 +36,7 @@ namespace TextBoxStyler {
return;
}
if (!ImGui.Begin($"{this.Plugin.Name} settings", ref this._drawUi)) {
if (!ImGui.Begin($"{Plugin.Name} settings", ref this._drawUi)) {
ImGui.End();
return;
}