refactor: update for api 9
This commit is contained in:
parent
af01f73fe4
commit
f29c65755e
|
@ -11,7 +11,7 @@ namespace TextBoxStyler {
|
||||||
this.Plugin = plugin;
|
this.Plugin = plugin;
|
||||||
|
|
||||||
this.Plugin.CommandManager.AddHandler(CommandName, new CommandInfo(this.OnCommand) {
|
this.Plugin.CommandManager.AddHandler(CommandName, new CommandInfo(this.OnCommand) {
|
||||||
HelpMessage = $"Opens the settings for {this.Plugin.Name}",
|
HelpMessage = $"Opens the settings for {Plugin.Name}",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
using Dalamud.Game.Command;
|
using Dalamud.IoC;
|
||||||
using Dalamud.IoC;
|
|
||||||
using Dalamud.Plugin;
|
using Dalamud.Plugin;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
|
||||||
namespace TextBoxStyler {
|
namespace TextBoxStyler {
|
||||||
// ReSharper disable once ClassNeverInstantiated.Global
|
// ReSharper disable once ClassNeverInstantiated.Global
|
||||||
public class Plugin : IDalamudPlugin {
|
public class Plugin : IDalamudPlugin {
|
||||||
public string Name => "Text Box Styler";
|
internal static string Name => "Text Box Styler";
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
internal DalamudPluginInterface Interface { get; private init; } = null!;
|
internal DalamudPluginInterface Interface { get; private init; } = null!;
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
internal CommandManager CommandManager { get; private init; } = null!;
|
internal ICommandManager CommandManager { get; private init; } = null!;
|
||||||
|
|
||||||
internal PluginConfiguration Config { get; }
|
internal PluginConfiguration Config { get; }
|
||||||
internal PluginUi Ui { get; }
|
internal PluginUi Ui { get; }
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace TextBoxStyler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ImGui.Begin($"{this.Plugin.Name} settings", ref this._drawUi)) {
|
if (!ImGui.Begin($"{Plugin.Name} settings", ref this._drawUi)) {
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue