Can boot into the UI
This commit is contained in:
@@ -50,13 +50,13 @@ public class IPCTestTab //: IDisposable
|
||||
private readonly Func<Guid, int> _disableProfileByUniqueIdIpcFunc;
|
||||
|
||||
[EzIPC("Profile.GetActiveProfileIdOnCharacter")]
|
||||
private readonly Func<Character, (int, Guid?)> _getActiveProfileIdOnCharacterIpcFunc;
|
||||
private readonly Func<ICharacter, (int, Guid?)> _getActiveProfileIdOnCharacterIpcFunc;
|
||||
|
||||
[EzIPC("Profile.SetTemporaryProfileOnCharacter")]
|
||||
private readonly Func<Character, string, (int, Guid?)> _setTemporaryProfileOnCharacterIpcFunc;
|
||||
private readonly Func<ICharacter, string, (int, Guid?)> _setTemporaryProfileOnCharacterIpcFunc;
|
||||
|
||||
[EzIPC("Profile.DeleteTemporaryProfileOnCharacter")]
|
||||
private readonly Func<Character, int> _deleteTemporaryProfileOnCharacterIpcFunc;
|
||||
private readonly Func<ICharacter, int> _deleteTemporaryProfileOnCharacterIpcFunc;
|
||||
|
||||
[EzIPC("Profile.DeleteTemporaryProfileByUniqueId")]
|
||||
private readonly Func<Guid, int> _deleteTemporaryProfileByUniqueIdIpcFunc;
|
||||
@@ -80,7 +80,7 @@ public class IPCTestTab //: IDisposable
|
||||
private string _targetProfileId = "";
|
||||
|
||||
public IPCTestTab(
|
||||
DalamudPluginInterface pluginInterface,
|
||||
IDalamudPluginInterface pluginInterface,
|
||||
IObjectTable objectTable,
|
||||
ProfileManager profileManager,
|
||||
PopupSystem popupSystem,
|
||||
@@ -311,16 +311,16 @@ public class IPCTestTab //: IDisposable
|
||||
}
|
||||
|
||||
[EzIPCEvent("Profile.OnUpdate")]
|
||||
private void OnProfileUpdate(Character Character, Guid ProfileUniqueId)
|
||||
private void OnProfileUpdate(ICharacter Character, Guid ProfileUniqueId)
|
||||
{
|
||||
_logger.Debug($"IPC Test Tab - OnProfileUpdate: Character: {Character.Name.ToString().Incognify()}, Profile ID: {(ProfileUniqueId != Guid.Empty ? ProfileUniqueId.ToString() : "no id")}");
|
||||
}
|
||||
|
||||
private Character? FindCharacterByAddress(nint address)
|
||||
private ICharacter? FindCharacterByAddress(nint address)
|
||||
{
|
||||
foreach (var obj in _objectTable)
|
||||
if (obj.Address == address)
|
||||
return (Character)obj;
|
||||
return (ICharacter)obj;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//using CustomizePlus.UI.Windows.Debug;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Utility;
|
||||
using ImGuiNET;
|
||||
using OtterGui.Classes;
|
||||
@@ -15,6 +13,7 @@ using CustomizePlus.Profiles;
|
||||
using CustomizePlus.Templates;
|
||||
using CustomizePlus.Core.Helpers;
|
||||
using CustomizePlus.Armatures.Services;
|
||||
using Dalamud.Interface.ImGuiNotification;
|
||||
|
||||
namespace CustomizePlus.UI.Windows.MainWindow.Tabs;
|
||||
|
||||
|
||||
@@ -11,12 +11,9 @@ using System;
|
||||
using System.Numerics;
|
||||
using static CustomizePlus.UI.Windows.MainWindow.Tabs.Templates.TemplateFileSystemSelector;
|
||||
using Newtonsoft.Json;
|
||||
using System.Windows.Forms;
|
||||
using System.Linq;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using Dalamud.Interface.ImGuiFileDialog;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using CustomizePlus.Templates;
|
||||
using CustomizePlus.Configuration.Data;
|
||||
using CustomizePlus.Profiles;
|
||||
@@ -28,9 +25,8 @@ using CustomizePlus.Profiles.Events;
|
||||
using CustomizePlus.Templates.Data;
|
||||
using CustomizePlus.Configuration.Helpers;
|
||||
using CustomizePlus.Configuration.Data.Version3;
|
||||
using CustomizePlus.GameData.Data;
|
||||
using static OtterGui.Classes.MessageService;
|
||||
using CustomizePlus.Configuration.Data.Version2;
|
||||
using Dalamud.Interface.ImGuiNotification;
|
||||
|
||||
namespace CustomizePlus.UI.Windows.MainWindow.Tabs.Templates;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
|
||||
Reference in New Issue
Block a user