use IDatamudPluginInterface

This commit is contained in:
2024-07-10 11:12:58 +02:00
committed by Pascal
parent 681419e11b
commit b40f0d5b87
3 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ namespace PlayerTags.Features
private DalamudContextMenu? m_ContextMenu;
public CustomTagsContextMenuFeature(PluginConfiguration pluginConfiguration, PluginData pluginData, DalamudPluginInterface pluginInterface) : base(pluginConfiguration, pluginData)
public CustomTagsContextMenuFeature(PluginConfiguration pluginConfiguration, PluginData pluginData, IDalamudPluginInterface pluginInterface) : base(pluginConfiguration, pluginData)
{
m_ContextMenu = new DalamudContextMenu(pluginInterface);
m_ContextMenu.OnOpenGameObjectContextMenu += ContextMenuHooks_ContextMenuOpened;

View File

@@ -31,7 +31,7 @@ namespace PlayerTags
private readonly NameplateTagTargetFeature nameplatesTagTargetFeature;
private readonly ChatTagTargetFeature chatTagTargetFeature;
public Plugin(DalamudPluginInterface pluginInterface)
public Plugin(IDalamudPluginInterface pluginInterface)
{
PluginServices.Initialize(pluginInterface);
Pilz.Dalamud.PluginServices.Initialize(pluginInterface);

View File

@@ -13,7 +13,7 @@ namespace PlayerTags
{
public class PluginServices
{
[PluginService] public static DalamudPluginInterface DalamudPluginInterface { get; set; } = null!;
[PluginService] public static IDalamudPluginInterface DalamudPluginInterface { get; set; } = null!;
[PluginService] public static IPluginLog PluginLog { get; set; } = null;
[PluginService] public static IGameConfig GameConfig { get; set; } = null;
[PluginService] public static IChatGui ChatGui { get; set; } = null!;
@@ -26,7 +26,7 @@ namespace PlayerTags
[PluginService] public static IPartyList PartyList { get; set; } = null!;
[PluginService] public static IGameInteropProvider GameInteropProvider { get; set; } = null;
public static void Initialize(DalamudPluginInterface pluginInterface)
public static void Initialize(IDalamudPluginInterface pluginInterface)
{
pluginInterface.Create<PluginServices>();
}