Can boot into the UI
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Dalamud.Game.Command;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using Dalamud.Plugin.Services;
|
||||
using OtterGui.Classes;
|
||||
using System;
|
||||
@@ -13,6 +12,7 @@ using CustomizePlus.UI.Windows.MainWindow;
|
||||
using static System.Windows.Forms.AxHost;
|
||||
using CustomizePlus.Profiles.Data;
|
||||
using CustomizePlus.Configuration.Data;
|
||||
using Dalamud.Interface.ImGuiNotification;
|
||||
|
||||
namespace CustomizePlus.Core.Services;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CustomizePlus.Core.Services;
|
||||
|
||||
public class DalamudServices
|
||||
{
|
||||
public static void AddServices(ServiceManager services, DalamudPluginInterface pi)
|
||||
public static void AddServices(ServiceManager services, IDalamudPluginInterface pi)
|
||||
{
|
||||
services.AddExistingService(pi)
|
||||
.AddExistingService(pi.UiBuilder)
|
||||
|
||||
@@ -15,7 +15,7 @@ public class FilenameService
|
||||
public readonly string TemplateDirectory;
|
||||
public readonly string TemplateFileSystem;
|
||||
|
||||
public FilenameService(DalamudPluginInterface pi)
|
||||
public FilenameService(IDalamudPluginInterface pi)
|
||||
{
|
||||
ConfigDirectory = pi.ConfigDirectory.FullName;
|
||||
ConfigFile = pi.ConfigFile.FullName;
|
||||
|
||||
@@ -55,6 +55,7 @@ public class HookingService : IDisposable
|
||||
ReloadHooks();
|
||||
}
|
||||
|
||||
[Obsolete("To be updated for Dawntrail")]
|
||||
public void ReloadHooks()
|
||||
{
|
||||
RenderHookFailed = false;
|
||||
@@ -64,7 +65,7 @@ public class HookingService : IDisposable
|
||||
{
|
||||
if (_configuration.PluginEnabled)
|
||||
{
|
||||
if (_renderManagerHook == null)
|
||||
/*if (_renderManagerHook == null)
|
||||
{
|
||||
var renderAddress = _sigScanner.ScanText(Constants.RenderHookAddress);
|
||||
_renderManagerHook = _hooker.HookFromAddress<RenderDelegate>(renderAddress, OnRender);
|
||||
@@ -83,7 +84,7 @@ public class HookingService : IDisposable
|
||||
_renderManagerHook.Enable();
|
||||
|
||||
_logger.Debug("Hooking movement functions");
|
||||
_gameObjectMovementHook.Enable();
|
||||
_gameObjectMovementHook.Enable();*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -22,14 +22,14 @@ public class SupportLogBuilderService
|
||||
private readonly TemplateManager _templateManager;
|
||||
private readonly ProfileManager _profileManager;
|
||||
private readonly ArmatureManager _armatureManager;
|
||||
private readonly DalamudPluginInterface _dalamudPluginInterface;
|
||||
private readonly IDalamudPluginInterface _dalamudPluginInterface;
|
||||
|
||||
public SupportLogBuilderService(
|
||||
PluginConfiguration configuration,
|
||||
TemplateManager templateManager,
|
||||
ProfileManager profileManager,
|
||||
ArmatureManager armatureManager,
|
||||
DalamudPluginInterface dalamudPluginInterface)
|
||||
IDalamudPluginInterface dalamudPluginInterface)
|
||||
{
|
||||
_configuration = configuration;
|
||||
_templateManager = templateManager;
|
||||
|
||||
Reference in New Issue
Block a user