Can boot into the UI
This commit is contained in:
@@ -10,12 +10,12 @@ namespace CustomizePlus.UI;
|
||||
public class CPlusWindowSystem : IDisposable
|
||||
{
|
||||
private readonly WindowSystem _windowSystem = new("Customize+");
|
||||
private readonly UiBuilder _uiBuilder;
|
||||
private readonly IUiBuilder _uiBuilder;
|
||||
private readonly MainWindow _mainWindow;
|
||||
private readonly PopupSystem _popupSystem;
|
||||
|
||||
public CPlusWindowSystem(
|
||||
UiBuilder uiBuilder,
|
||||
IUiBuilder uiBuilder,
|
||||
MainWindow mainWindow,
|
||||
CPlusChangeLog changelog,
|
||||
PopupSystem popupSystem,
|
||||
|
||||
@@ -21,6 +21,7 @@ public class CPlusChangeLog
|
||||
Add2_0_4_0(Changelog);
|
||||
Add2_0_4_1(Changelog);
|
||||
Add2_0_4_4(Changelog);
|
||||
//Add2_0_5_0(Changelog);
|
||||
}
|
||||
|
||||
private (int, ChangeLogDisplayType) ConfigData()
|
||||
@@ -33,6 +34,13 @@ public class CPlusChangeLog
|
||||
_config.Save();
|
||||
}
|
||||
|
||||
private static void Add2_0_5_0(Changelog log)
|
||||
=> log.NextVersion("Version 2.0.5.0")
|
||||
.RegisterHighlight("Customize+ has been updated to support Dawntrail.")
|
||||
.RegisterEntry("Added \"Copy Support Info to Clipboard\" button to Settings tab.")
|
||||
.RegisterEntry("Renamed \"Default profile\" to \"Apply to all players and retainers\" to try and improve understanding of the function by the users. (2.0.4.5)")
|
||||
.RegisterEntry("Improved UI behavior when \"Apply to all players and retainers\" is enabled. (2.0.4.5)");
|
||||
|
||||
private static void Add2_0_4_4(Changelog log)
|
||||
=> log.NextVersion("Version 2.0.4.4")
|
||||
.RegisterHighlight("Added edit button to the template selector in the profile editor which allows to quickly begin editing associated template.")
|
||||
|
||||
@@ -47,7 +47,7 @@ public class MainWindow : Window, IDisposable
|
||||
private Action? _actionAfterTabSwitch = null;
|
||||
|
||||
public MainWindow(
|
||||
DalamudPluginInterface pluginInterface,
|
||||
IDalamudPluginInterface pluginInterface,
|
||||
SettingsTab settingsTab,
|
||||
TemplatesTab templatesTab,
|
||||
ProfilesTab profilesTab,
|
||||
@@ -59,7 +59,7 @@ public class MainWindow : Window, IDisposable
|
||||
PluginConfiguration configuration,
|
||||
HookingService hookingService,
|
||||
TemplateEditorEvent templateEditorEvent
|
||||
) : base($"Customize+ v{Plugin.Version}###CPlusMainWindow")
|
||||
) : base($"Customize+ {Plugin.Version}###CPlusMainWindow")
|
||||
{
|
||||
_settingsTab = settingsTab;
|
||||
_templatesTab = templatesTab;
|
||||
|
||||
@@ -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