diff --git a/Glamourer/Api/IpcProviders.cs b/Glamourer/Api/IpcProviders.cs
index 638d228..89ee2bf 100644
--- a/Glamourer/Api/IpcProviders.cs
+++ b/Glamourer/Api/IpcProviders.cs
@@ -12,7 +12,7 @@ public sealed class IpcProviders : IDisposable, IApiService
private readonly EventProvider _disposedProvider;
private readonly EventProvider _initializedProvider;
- public IpcProviders(DalamudPluginInterface pi, IGlamourerApi api)
+ public IpcProviders(IDalamudPluginInterface pi, IGlamourerApi api)
{
_disposedProvider = IpcSubscribers.Disposed.Provider(pi);
_initializedProvider = IpcSubscribers.Initialized.Provider(pi);
diff --git a/Glamourer/Automation/AutoDesignManager.cs b/Glamourer/Automation/AutoDesignManager.cs
index 1b95f73..da9b014 100644
--- a/Glamourer/Automation/AutoDesignManager.cs
+++ b/Glamourer/Automation/AutoDesignManager.cs
@@ -1,5 +1,5 @@
using Dalamud.Game.ClientState.Objects.Enums;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Designs;
using Glamourer.Designs.Special;
using Glamourer.Events;
diff --git a/Glamourer/Automation/FixedDesignMigrator.cs b/Glamourer/Automation/FixedDesignMigrator.cs
index 856561a..fb9bca4 100644
--- a/Glamourer/Automation/FixedDesignMigrator.cs
+++ b/Glamourer/Automation/FixedDesignMigrator.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Designs;
using Glamourer.Interop;
using Newtonsoft.Json.Linq;
diff --git a/Glamourer/Configuration.cs b/Glamourer/Configuration.cs
index dbd245f..d0b3f98 100644
--- a/Glamourer/Configuration.cs
+++ b/Glamourer/Configuration.cs
@@ -1,6 +1,6 @@
using Dalamud.Configuration;
using Dalamud.Game.ClientState.Keys;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Designs;
using Glamourer.Gui;
using Glamourer.Gui.Tabs.DesignTab;
diff --git a/Glamourer/Designs/Design.cs b/Glamourer/Designs/Design.cs
index f09e7bc..b8dc0a2 100644
--- a/Glamourer/Designs/Design.cs
+++ b/Glamourer/Designs/Design.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Automation;
using Glamourer.Designs.Links;
using Glamourer.Interop.Material;
diff --git a/Glamourer/Designs/DesignBase.cs b/Glamourer/Designs/DesignBase.cs
index 4910793..8132f07 100644
--- a/Glamourer/Designs/DesignBase.cs
+++ b/Glamourer/Designs/DesignBase.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.GameData;
using Glamourer.Interop.Material;
using Glamourer.Services;
diff --git a/Glamourer/Designs/DesignColors.cs b/Glamourer/Designs/DesignColors.cs
index 8bc5539..5577c2c 100644
--- a/Glamourer/Designs/DesignColors.cs
+++ b/Glamourer/Designs/DesignColors.cs
@@ -1,5 +1,5 @@
using Dalamud.Interface;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Interface.Utility.Raii;
using Glamourer.Gui;
using Glamourer.Services;
diff --git a/Glamourer/Designs/DesignFileSystem.cs b/Glamourer/Designs/DesignFileSystem.cs
index 00277c2..f154684 100644
--- a/Glamourer/Designs/DesignFileSystem.cs
+++ b/Glamourer/Designs/DesignFileSystem.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Events;
using Glamourer.Services;
using Newtonsoft.Json;
diff --git a/Glamourer/Designs/Links/DesignLinkLoader.cs b/Glamourer/Designs/Links/DesignLinkLoader.cs
index 4d438bd..f866f07 100644
--- a/Glamourer/Designs/Links/DesignLinkLoader.cs
+++ b/Glamourer/Designs/Links/DesignLinkLoader.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using OtterGui;
using OtterGui.Classes;
using OtterGui.Services;
@@ -16,12 +16,12 @@ public sealed class DesignLinkLoader(DesignStorage designStorage, MessageService
protected override void HandleChildNotFound(Design parent, LinkData data)
{
- Messager.AddMessage(new Notification(
+ Messager.AddMessage(new OtterGui.Classes.Notification(
$"Could not find the design {data.Identity}. If this design was deleted, please re-save {parent.Identifier}.",
NotificationType.Warning));
}
protected override void HandleChildNotSet(Design parent, Design child, string error)
- => Messager.AddMessage(new Notification($"Could not link {child.Identifier} to {parent.Identifier}: {error}",
+ => Messager.AddMessage(new OtterGui.Classes.Notification($"Could not link {child.Identifier} to {parent.Identifier}: {error}",
NotificationType.Warning));
}
diff --git a/Glamourer/EphemeralConfig.cs b/Glamourer/EphemeralConfig.cs
index 027685f..3e13dc4 100644
--- a/Glamourer/EphemeralConfig.cs
+++ b/Glamourer/EphemeralConfig.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Gui;
using Glamourer.Services;
using Newtonsoft.Json;
diff --git a/Glamourer/GameData/CustomizeManager.cs b/Glamourer/GameData/CustomizeManager.cs
index 57df104..37ad48f 100644
--- a/Glamourer/GameData/CustomizeManager.cs
+++ b/Glamourer/GameData/CustomizeManager.cs
@@ -1,4 +1,5 @@
using Dalamud.Interface.Internal;
+using Dalamud.Interface.Textures;
using Dalamud.Plugin.Services;
using OtterGui.Classes;
using OtterGui.Services;
@@ -32,7 +33,7 @@ public class CustomizeManager : IAsyncDataContainer
}
/// Get specific icons.
- public IDalamudTextureWrap GetIcon(uint id)
+ public ISharedImmediateTexture GetIcon(uint id)
=> _icons.LoadIcon(id)!;
/// Iterate over all supported genders and clans.
diff --git a/Glamourer/GameData/CustomizeSetFactory.cs b/Glamourer/GameData/CustomizeSetFactory.cs
index ba892ec..b837034 100644
--- a/Glamourer/GameData/CustomizeSetFactory.cs
+++ b/Glamourer/GameData/CustomizeSetFactory.cs
@@ -1,4 +1,5 @@
using Dalamud;
+using Dalamud.Game;
using Dalamud.Plugin.Services;
using Dalamud.Utility;
using Lumina.Excel;
diff --git a/Glamourer/Glamourer.cs b/Glamourer/Glamourer.cs
index 5dd6040..84312d9 100644
--- a/Glamourer/Glamourer.cs
+++ b/Glamourer/Glamourer.cs
@@ -28,7 +28,7 @@ public class Glamourer : IDalamudPlugin
private readonly ServiceManager _services;
- public Glamourer(DalamudPluginInterface pluginInterface)
+ public Glamourer(IDalamudPluginInterface pluginInterface)
{
try
{
@@ -128,7 +128,7 @@ public class Glamourer : IDalamudPlugin
[
"Penumbra", "MareSynchronos", "CustomizePlus", "SimpleHeels", "VfxEditor", "heliosphere-plugin", "Ktisis", "Brio", "DynamicBridge",
];
- var plugins = _services.GetService().InstalledPlugins
+ var plugins = _services.GetService().InstalledPlugins
.GroupBy(p => p.InternalName)
.ToDictionary(g => g.Key, g =>
{
diff --git a/Glamourer/Gui/Customization/CustomizationDrawer.cs b/Glamourer/Gui/Customization/CustomizationDrawer.cs
index 60251df..b73abda 100644
--- a/Glamourer/Gui/Customization/CustomizationDrawer.cs
+++ b/Glamourer/Gui/Customization/CustomizationDrawer.cs
@@ -1,4 +1,5 @@
using Dalamud.Interface.Internal;
+using Dalamud.Interface.Textures;
using Dalamud.Interface.Utility;
using Dalamud.Plugin;
using Glamourer.GameData;
@@ -13,7 +14,7 @@ using Penumbra.GameData.Structs;
namespace Glamourer.Gui.Customization;
public partial class CustomizationDrawer(
- DalamudPluginInterface pi,
+ IDalamudPluginInterface pi,
CustomizeService _service,
CodeService _codes,
Configuration _config,
@@ -22,7 +23,7 @@ public partial class CustomizationDrawer(
: IDisposable
{
private readonly Vector4 _redTint = new(0.6f, 0.3f, 0.3f, 1f);
- private readonly IDalamudTextureWrap? _legacyTattoo = GetLegacyTattooIcon(pi);
+ private readonly ISharedImmediateTexture? _legacyTattoo = GetLegacyTattooIcon(pi);
private Exception? _terminate;
@@ -190,7 +191,7 @@ public partial class CustomizationDrawer(
_raceSelectorWidth = _inputIntSize + _comboSelectorSize - _framedIconSize.X;
}
- private static IDalamudTextureWrap? GetLegacyTattooIcon(DalamudPluginInterface pi)
+ private static ISharedImmediateTexture? GetLegacyTattooIcon(IDalamudPluginInterface pi)
{
using var resource = Assembly.GetExecutingAssembly().GetManifestResourceStream("Glamourer.LegacyTattoo.raw");
if (resource == null)
diff --git a/Glamourer/Gui/MainWindow.cs b/Glamourer/Gui/MainWindow.cs
index 007d936..f21a2b7 100644
--- a/Glamourer/Gui/MainWindow.cs
+++ b/Glamourer/Gui/MainWindow.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Interface.Windowing;
using Dalamud.Plugin;
using Glamourer.Designs;
@@ -64,7 +64,7 @@ public class MainWindow : Window, IDisposable
public TabType SelectTab;
- public MainWindow(DalamudPluginInterface pi, Configuration config, SettingsTab settings, ActorTab actors, DesignTab designs,
+ public MainWindow(IDalamudPluginInterface pi, Configuration config, SettingsTab settings, ActorTab actors, DesignTab designs,
DebugTab debugTab, AutomationTab automation, UnlocksTab unlocks, TabSelected @event, MessagesTab messages, DesignQuickBar quickBar,
NpcTab npcs, MainWindowPosition position, PenumbraService penumbra)
: base("GlamourerMainWindow")
diff --git a/Glamourer/Gui/Tabs/ActorTab/ActorPanel.cs b/Glamourer/Gui/Tabs/ActorTab/ActorPanel.cs
index 8371232..01aeeb2 100644
--- a/Glamourer/Gui/Tabs/ActorTab/ActorPanel.cs
+++ b/Glamourer/Gui/Tabs/ActorTab/ActorPanel.cs
@@ -1,6 +1,6 @@
using Dalamud.Game.ClientState.Conditions;
using Dalamud.Interface;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Plugin.Services;
using FFXIVClientStructs.FFXIV.Client.Game;
using Glamourer.Automation;
diff --git a/Glamourer/Gui/Tabs/DebugTab/IpcTester/DesignIpcTester.cs b/Glamourer/Gui/Tabs/DebugTab/IpcTester/DesignIpcTester.cs
index 1a74778..918c7ad 100644
--- a/Glamourer/Gui/Tabs/DebugTab/IpcTester/DesignIpcTester.cs
+++ b/Glamourer/Gui/Tabs/DebugTab/IpcTester/DesignIpcTester.cs
@@ -10,7 +10,7 @@ using OtterGui.Services;
namespace Glamourer.Gui.Tabs.DebugTab.IpcTester;
-public class DesignIpcTester(DalamudPluginInterface pluginInterface) : IUiService
+public class DesignIpcTester(IDalamudPluginInterface pluginInterface) : IUiService
{
private Dictionary _designs = [];
private int _gameObjectIndex;
diff --git a/Glamourer/Gui/Tabs/DebugTab/IpcTester/IpcTesterPanel.cs b/Glamourer/Gui/Tabs/DebugTab/IpcTester/IpcTesterPanel.cs
index 5e6f4a2..8f561af 100644
--- a/Glamourer/Gui/Tabs/DebugTab/IpcTester/IpcTesterPanel.cs
+++ b/Glamourer/Gui/Tabs/DebugTab/IpcTester/IpcTesterPanel.cs
@@ -7,7 +7,7 @@ using Penumbra.GameData.Gui.Debug;
namespace Glamourer.Gui.Tabs.DebugTab.IpcTester;
public class IpcTesterPanel(
- DalamudPluginInterface pluginInterface,
+ IDalamudPluginInterface pluginInterface,
DesignIpcTester designs,
ItemsIpcTester items,
StateIpcTester state,
diff --git a/Glamourer/Gui/Tabs/DebugTab/IpcTester/ItemsIpcTester.cs b/Glamourer/Gui/Tabs/DebugTab/IpcTester/ItemsIpcTester.cs
index 3d61df7..fd5e92a 100644
--- a/Glamourer/Gui/Tabs/DebugTab/IpcTester/ItemsIpcTester.cs
+++ b/Glamourer/Gui/Tabs/DebugTab/IpcTester/ItemsIpcTester.cs
@@ -11,7 +11,7 @@ using Penumbra.GameData.Structs;
namespace Glamourer.Gui.Tabs.DebugTab.IpcTester;
-public class ItemsIpcTester(DalamudPluginInterface pluginInterface) : IUiService
+public class ItemsIpcTester(IDalamudPluginInterface pluginInterface) : IUiService
{
private int _gameObjectIndex;
private string _gameObjectName = string.Empty;
diff --git a/Glamourer/Gui/Tabs/DebugTab/IpcTester/StateIpcTester.cs b/Glamourer/Gui/Tabs/DebugTab/IpcTester/StateIpcTester.cs
index 81c8cab..f378625 100644
--- a/Glamourer/Gui/Tabs/DebugTab/IpcTester/StateIpcTester.cs
+++ b/Glamourer/Gui/Tabs/DebugTab/IpcTester/StateIpcTester.cs
@@ -18,7 +18,7 @@ namespace Glamourer.Gui.Tabs.DebugTab.IpcTester;
public class StateIpcTester : IUiService, IDisposable
{
- private readonly DalamudPluginInterface _pluginInterface;
+ private readonly IDalamudPluginInterface _pluginInterface;
private int _gameObjectIndex;
private string _gameObjectName = string.Empty;
@@ -41,7 +41,7 @@ public class StateIpcTester : IUiService, IDisposable
private int _numUnlocked;
- public StateIpcTester(DalamudPluginInterface pluginInterface)
+ public StateIpcTester(IDalamudPluginInterface pluginInterface)
{
_pluginInterface = pluginInterface;
StateChanged = Api.IpcSubscribers.StateChangedWithType.Subscriber(_pluginInterface, OnStateChanged);
diff --git a/Glamourer/Gui/Tabs/DesignTab/DesignDetailTab.cs b/Glamourer/Gui/Tabs/DesignTab/DesignDetailTab.cs
index ecac046..e9fbcf4 100644
--- a/Glamourer/Gui/Tabs/DesignTab/DesignDetailTab.cs
+++ b/Glamourer/Gui/Tabs/DesignTab/DesignDetailTab.cs
@@ -1,5 +1,5 @@
using Dalamud.Interface;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Designs;
using Glamourer.Services;
using ImGuiNET;
diff --git a/Glamourer/Gui/Tabs/DesignTab/DesignFileSystemSelector.cs b/Glamourer/Gui/Tabs/DesignTab/DesignFileSystemSelector.cs
index 2608dd3..11147c8 100644
--- a/Glamourer/Gui/Tabs/DesignTab/DesignFileSystemSelector.cs
+++ b/Glamourer/Gui/Tabs/DesignTab/DesignFileSystemSelector.cs
@@ -1,5 +1,5 @@
using Dalamud.Interface;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Plugin.Services;
using Glamourer.Designs;
using Glamourer.Events;
diff --git a/Glamourer/Gui/Tabs/DesignTab/DesignPanel.cs b/Glamourer/Gui/Tabs/DesignTab/DesignPanel.cs
index bf9ba69..49b76b6 100644
--- a/Glamourer/Gui/Tabs/DesignTab/DesignPanel.cs
+++ b/Glamourer/Gui/Tabs/DesignTab/DesignPanel.cs
@@ -1,6 +1,6 @@
using Dalamud.Interface;
using Dalamud.Interface.ImGuiFileDialog;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using FFXIVClientStructs.FFXIV.Client.System.Framework;
using Glamourer.Automation;
using Glamourer.Designs;
diff --git a/Glamourer/Gui/Tabs/DesignTab/DesignTab.cs b/Glamourer/Gui/Tabs/DesignTab/DesignTab.cs
index 7fca8c2..9832451 100644
--- a/Glamourer/Gui/Tabs/DesignTab/DesignTab.cs
+++ b/Glamourer/Gui/Tabs/DesignTab/DesignTab.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Interface.Utility;
using Glamourer.Designs;
using Glamourer.Interop;
diff --git a/Glamourer/Gui/Tabs/DesignTab/ModAssociationsTab.cs b/Glamourer/Gui/Tabs/DesignTab/ModAssociationsTab.cs
index 1915241..9db8c19 100644
--- a/Glamourer/Gui/Tabs/DesignTab/ModAssociationsTab.cs
+++ b/Glamourer/Gui/Tabs/DesignTab/ModAssociationsTab.cs
@@ -1,5 +1,5 @@
using Dalamud.Interface;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Interface.Utility;
using Dalamud.Utility;
using Glamourer.Designs;
diff --git a/Glamourer/Gui/Tabs/NpcTab/NpcPanel.cs b/Glamourer/Gui/Tabs/NpcTab/NpcPanel.cs
index c08d5c9..974912e 100644
--- a/Glamourer/Gui/Tabs/NpcTab/NpcPanel.cs
+++ b/Glamourer/Gui/Tabs/NpcTab/NpcPanel.cs
@@ -1,5 +1,5 @@
using Dalamud.Interface;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using FFXIVClientStructs.FFXIV.Client.Game.Object;
using Glamourer.Designs;
using Glamourer.Gui.Customization;
diff --git a/Glamourer/Interop/ContextMenuService.cs b/Glamourer/Interop/ContextMenuService.cs
index 8cd5391..f236d8d 100644
--- a/Glamourer/Interop/ContextMenuService.cs
+++ b/Glamourer/Interop/ContextMenuService.cs
@@ -47,7 +47,7 @@ public class ContextMenuService : IDisposable
};
}
- private unsafe void OnMenuOpened(MenuOpenedArgs args)
+ private unsafe void OnMenuOpened(IMenuOpenedArgs args)
{
if (args.MenuType is ContextMenuType.Inventory)
{
@@ -96,7 +96,7 @@ public class ContextMenuService : IDisposable
public void Dispose()
=> Disable();
- private void OnClick(MenuItemClickedArgs _)
+ private void OnClick(IMenuItemClickedArgs _)
{
var (id, playerData) = _objects.PlayerData;
if (!playerData.Valid)
diff --git a/Glamourer/Interop/ImportService.cs b/Glamourer/Interop/ImportService.cs
index 9587feb..7dc3313 100644
--- a/Glamourer/Interop/ImportService.cs
+++ b/Glamourer/Interop/ImportService.cs
@@ -1,5 +1,5 @@
using Dalamud.Interface.DragDrop;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Designs;
using Glamourer.Interop.CharaFile;
using Glamourer.Services;
diff --git a/Glamourer/Interop/ObjectManager.cs b/Glamourer/Interop/ObjectManager.cs
index f59e95c..f8f5813 100644
--- a/Glamourer/Interop/ObjectManager.cs
+++ b/Glamourer/Interop/ObjectManager.cs
@@ -14,7 +14,7 @@ public class ObjectManager(
IFramework framework,
IClientState clientState,
IObjectTable objects,
- DalamudPluginInterface pi,
+ IDalamudPluginInterface pi,
Logger log,
ActorManager actors,
ITargetManager targets)
diff --git a/Glamourer/Interop/PalettePlus/PaletteImport.cs b/Glamourer/Interop/PalettePlus/PaletteImport.cs
index 8513036..93c3fa2 100644
--- a/Glamourer/Interop/PalettePlus/PaletteImport.cs
+++ b/Glamourer/Interop/PalettePlus/PaletteImport.cs
@@ -6,7 +6,7 @@ using OtterGui.Services;
namespace Glamourer.Interop.PalettePlus;
-public class PaletteImport(DalamudPluginInterface pluginInterface, DesignManager designManager, DesignFileSystem designFileSystem) : IService
+public class PaletteImport(IDalamudPluginInterface pluginInterface, DesignManager designManager, DesignFileSystem designFileSystem) : IService
{
private string ConfigFile
=> Path.Combine(Path.GetDirectoryName(pluginInterface.GetPluginConfigDirectory())!, "PalettePlus.json");
diff --git a/Glamourer/Interop/PalettePlus/PalettePlusChecker.cs b/Glamourer/Interop/PalettePlus/PalettePlusChecker.cs
index 6a23e90..13c1571 100644
--- a/Glamourer/Interop/PalettePlus/PalettePlusChecker.cs
+++ b/Glamourer/Interop/PalettePlus/PalettePlusChecker.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Plugin;
using OtterGui.Classes;
using OtterGui.Services;
@@ -9,9 +9,9 @@ public sealed class PalettePlusChecker : IRequiredService, IDisposable
{
private readonly Timer _paletteTimer;
private readonly Configuration _config;
- private readonly DalamudPluginInterface _pluginInterface;
+ private readonly IDalamudPluginInterface _pluginInterface;
- public PalettePlusChecker(Configuration config, DalamudPluginInterface pluginInterface)
+ public PalettePlusChecker(Configuration config, IDalamudPluginInterface pluginInterface)
{
_config = config;
_pluginInterface = pluginInterface;
@@ -36,7 +36,7 @@ public sealed class PalettePlusChecker : IRequiredService, IDisposable
{
var subscriber = _pluginInterface.GetIpcSubscriber("PalettePlus.ApiVersion");
subscriber.InvokeFunc();
- Glamourer.Messager.AddMessage(new Notification(
+ Glamourer.Messager.AddMessage(new OtterGui.Classes.Notification(
"You currently have Palette+ installed. This conflicts with Glamourers advanced options and will cause invalid state.\n\n"
+ "Please uninstall Palette+ and restart your game. Palette+ is deprecated and no longer supported by Mare Synchronos.",
NotificationType.Warning, 10000));
diff --git a/Glamourer/Interop/Penumbra/PenumbraService.cs b/Glamourer/Interop/Penumbra/PenumbraService.cs
index 58422d7..1c2b0c6 100644
--- a/Glamourer/Interop/Penumbra/PenumbraService.cs
+++ b/Glamourer/Interop/Penumbra/PenumbraService.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Dalamud.Plugin;
using Glamourer.Events;
using OtterGui.Classes;
@@ -36,7 +36,7 @@ public unsafe class PenumbraService : IDisposable
public const int RequiredPenumbraBreakingVersion = 5;
public const int RequiredPenumbraFeatureVersion = 0;
- private readonly DalamudPluginInterface _pluginInterface;
+ private readonly IDalamudPluginInterface _pluginInterface;
private readonly EventSubscriber _tooltipSubscriber;
private readonly EventSubscriber _clickSubscriber;
private readonly EventSubscriber _creatingCharacterBase;
@@ -68,7 +68,7 @@ public unsafe class PenumbraService : IDisposable
public int CurrentMinor { get; private set; }
public DateTime AttachTime { get; private set; }
- public PenumbraService(DalamudPluginInterface pi, PenumbraReloaded penumbraReloaded)
+ public PenumbraService(IDalamudPluginInterface pi, PenumbraReloaded penumbraReloaded)
{
_pluginInterface = pi;
_penumbraReloaded = penumbraReloaded;
diff --git a/Glamourer/Interop/ScalingService.cs b/Glamourer/Interop/ScalingService.cs
index 66036d9..aabaf8f 100644
--- a/Glamourer/Interop/ScalingService.cs
+++ b/Glamourer/Interop/ScalingService.cs
@@ -14,7 +14,7 @@ public unsafe class ScalingService : IDisposable
{
interop.InitializeFromAttributes(this);
_setupMountHook =
- interop.HookFromAddress((nint)Character.MountContainer.MemberFunctionPointers.SetupMount, SetupMountDetour);
+ interop.HookFromAddress(MountContainer.MemberFunctionPointers.SetupMount, SetupMountDetour);
_setupOrnamentHook = interop.HookFromAddress((nint)Ornament.MemberFunctionPointers.SetupOrnament, SetupOrnamentDetour);
_calculateHeightHook =
interop.HookFromAddress((nint)Character.MemberFunctionPointers.CalculateHeight, CalculateHeightDetour);
@@ -33,7 +33,7 @@ public unsafe class ScalingService : IDisposable
_calculateHeightHook.Dispose();
}
- private delegate void SetupMount(Character.MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4);
+ private delegate void SetupMount(MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4);
private delegate void SetupOrnament(Ornament* ornament, uint* unk1, float* unk2);
private delegate void PlaceMinion(Companion* character);
private delegate float CalculateHeight(Character* character);
@@ -48,7 +48,7 @@ public unsafe class ScalingService : IDisposable
[Signature("48 89 5C 24 ?? 55 57 41 57 48 8D 6C 24", DetourName = nameof(PlaceMinionDetour))]
private readonly Hook _placeMinionHook = null!;
- private void SetupMountDetour(Character.MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4)
+ private void SetupMountDetour(MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4)
{
var (race, clan, gender) = GetScaleRelevantCustomize(&container->OwnerObject->Character);
SetScaleCustomize(&container->OwnerObject->Character, container->OwnerObject->Character.GameObject.DrawObject);
diff --git a/Glamourer/Services/CollectionOverrideService.cs b/Glamourer/Services/CollectionOverrideService.cs
index 691118f..9069682 100644
--- a/Glamourer/Services/CollectionOverrideService.cs
+++ b/Glamourer/Services/CollectionOverrideService.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Interop.Penumbra;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
diff --git a/Glamourer/Services/DalamudServices.cs b/Glamourer/Services/DalamudServices.cs
index fd001d7..02df634 100644
--- a/Glamourer/Services/DalamudServices.cs
+++ b/Glamourer/Services/DalamudServices.cs
@@ -8,7 +8,7 @@ namespace Glamourer.Services;
public class DalamudServices
{
- public static void AddServices(ServiceManager services, DalamudPluginInterface pi)
+ public static void AddServices(ServiceManager services, IDalamudPluginInterface pi)
{
services.AddExistingService(pi);
services.AddExistingService(pi.UiBuilder);
diff --git a/Glamourer/Services/FilenameService.cs b/Glamourer/Services/FilenameService.cs
index e19e289..cd25c64 100644
--- a/Glamourer/Services/FilenameService.cs
+++ b/Glamourer/Services/FilenameService.cs
@@ -19,7 +19,7 @@ public class FilenameService
public readonly string NpcAppearanceFile;
public readonly string CollectionOverrideFile;
- public FilenameService(DalamudPluginInterface pi)
+ public FilenameService(IDalamudPluginInterface pi)
{
ConfigDirectory = pi.ConfigDirectory.FullName;
ConfigFile = pi.ConfigFile.FullName;
diff --git a/Glamourer/Services/ServiceManager.cs b/Glamourer/Services/ServiceManager.cs
index 005944e..75e2a27 100644
--- a/Glamourer/Services/ServiceManager.cs
+++ b/Glamourer/Services/ServiceManager.cs
@@ -33,7 +33,7 @@ namespace Glamourer.Services;
public static class StaticServiceManager
{
- public static ServiceManager CreateProvider(DalamudPluginInterface pi, Logger log, Glamourer glamourer)
+ public static ServiceManager CreateProvider(IDalamudPluginInterface pi, Logger log, Glamourer glamourer)
{
EventWrapperBase.ChangeLogger(log);
var services = new ServiceManager(log)
diff --git a/Glamourer/Services/TextureService.cs b/Glamourer/Services/TextureService.cs
index 0619279..4355700 100644
--- a/Glamourer/Services/TextureService.cs
+++ b/Glamourer/Services/TextureService.cs
@@ -1,5 +1,7 @@
using Dalamud.Interface;
using Dalamud.Interface.Internal;
+using Dalamud.Interface.Textures;
+using Dalamud.Interface.Textures.TextureWraps;
using Dalamud.Plugin.Services;
using OtterGui.Classes;
using Penumbra.GameData.Enums;
@@ -10,7 +12,7 @@ namespace Glamourer.Services;
public sealed class TextureService(UiBuilder uiBuilder, IDataManager dataManager, ITextureProvider textureProvider)
: TextureCache(dataManager, textureProvider), IDisposable
{
- private readonly IDalamudTextureWrap?[] _slotIcons = CreateSlotIcons(uiBuilder);
+ private readonly ISharedImmediateTexture?[] _slotIcons = CreateSlotIcons(uiBuilder);
public (nint, Vector2, bool) GetIcon(EquipItem item, EquipSlot slot)
{
@@ -32,9 +34,9 @@ public sealed class TextureService(UiBuilder uiBuilder, IDataManager dataManager
}
}
- private static IDalamudTextureWrap?[] CreateSlotIcons(UiBuilder uiBuilder)
+ private static ISharedImmediateTexture?[] CreateSlotIcons(UiBuilder uiBuilder)
{
- var ret = new IDalamudTextureWrap?[12];
+ var ret = new ISharedImmediateTexture?[12];
using var uldWrapper = uiBuilder.LoadUld("ui/uld/ArmouryBoard.uld");
@@ -63,7 +65,7 @@ public sealed class TextureService(UiBuilder uiBuilder, IDataManager dataManager
{
try
{
- ret[slot.ToIndex()] = uldWrapper.LoadTexturePart("ui/uld/ArmouryBoard_hr1.tex", index)!;
+ ret[slot.ToIndex()] = (ISharedImmediateTexture?)uldWrapper.LoadTexturePart("ui/uld/ArmouryBoard_hr1.tex", index)!;
}
catch (Exception ex)
{
diff --git a/Glamourer/State/FunModule.cs b/Glamourer/State/FunModule.cs
index 25b8946..0b59f5a 100644
--- a/Glamourer/State/FunModule.cs
+++ b/Glamourer/State/FunModule.cs
@@ -1,5 +1,5 @@
using Dalamud.Game.ClientState.Objects.Enums;
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Designs;
using Glamourer.Gui;
using Glamourer.Services;
@@ -198,7 +198,7 @@ public unsafe class FunModule : IDisposable
private static bool ValidFunTarget(Actor actor)
=> actor.IsCharacter
- && actor.AsObject->ObjectKind is (byte)ObjectKind.Player
+ && actor.AsObject->ObjectKind is (FFXIVClientStructs.FFXIV.Client.Game.Object.ObjectKind)(byte)ObjectKind.Player
&& !actor.IsTransformed
&& actor.AsCharacter->CharacterData.ModelCharaId == 0;
diff --git a/Glamourer/Unlocks/FavoriteManager.cs b/Glamourer/Unlocks/FavoriteManager.cs
index 33242c9..de22ea8 100644
--- a/Glamourer/Unlocks/FavoriteManager.cs
+++ b/Glamourer/Unlocks/FavoriteManager.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using Glamourer.Services;
using Newtonsoft.Json;
using OtterGui.Classes;
diff --git a/Glamourer/Unlocks/UnlockDictionaryHelpers.cs b/Glamourer/Unlocks/UnlockDictionaryHelpers.cs
index 28f5793..edc9472 100644
--- a/Glamourer/Unlocks/UnlockDictionaryHelpers.cs
+++ b/Glamourer/Unlocks/UnlockDictionaryHelpers.cs
@@ -1,4 +1,4 @@
-using Dalamud.Interface.Internal.Notifications;
+using Dalamud.Interface.ImGuiNotification;
using OtterGui.Classes;
namespace Glamourer.Unlocks;