This commit is contained in:
2025-08-09 12:43:58 +03:00
parent 5bec99dd48
commit 28fa041cba
31 changed files with 90 additions and 50 deletions

View File

@@ -1,7 +1,7 @@
using System;
using Dalamud.Interface;
using Dalamud.Utility;
using ImGuiNET;
using Dalamud.Bindings.ImGui;
namespace CustomizePlus.Core.Helpers;
@@ -66,8 +66,8 @@ public static class CtrlHelper
}
public static bool ArrowToggle(string label, ref bool value)
{
var toggled = ImGui.ArrowButton(label, value ? ImGuiDir.Down : ImGuiDir.Right);
{//ImGuiNative.ArrowButton(label, value ? ImGuiDir.Down : ImGuiDir.Right);
var toggled = false;
if (toggled)
{

View File

@@ -25,6 +25,7 @@ using CustomizePlus.UI.Windows.MainWindow.Tabs.Debug;
using CustomizePlus.UI.Windows.MainWindow.Tabs.Profiles;
using CustomizePlus.UI.Windows.MainWindow.Tabs.Templates;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
using Microsoft.Extensions.DependencyInjection;
using OtterGui.Classes;
using OtterGui.Log;
@@ -58,10 +59,10 @@ public static class ServiceManagerBuilder
.AddApi();
DalamudServices.AddServices(services, pi);
services.AddDalamudService<ISeStringEvaluator>(pi);
services.AddIServices(typeof(EquipItem).Assembly);
services.AddIServices(typeof(Plugin).Assembly);
services.AddIServices(typeof(CutsceneService).Assembly);
services.AddIServices(typeof(CutsceneService).Assembly);
services.AddIServices(typeof(ImRaii).Assembly);
services.CreateProvider();

View File

@@ -92,25 +92,25 @@ public class HookingService : IDisposable
_logger.Debug("Render hook established");
}
if (_gameObjectMovementHook == null)
/*if (_gameObjectMovementHook == null)
{
var movementAddress = _sigScanner.ScanText(Constants.MovementHookAddress);
_gameObjectMovementHook = _hooker.HookFromAddress<GameObjectMovementDelegate>(movementAddress, OnGameObjectMove);
_logger.Debug("Movement hook established");
}
}*/
_logger.Debug("Hooking render manager");
_renderManagerHook.Enable();
_logger.Debug("Hooking movement functions");
_gameObjectMovementHook.Enable();
// _logger.Debug("Hooking movement functions");
// _gameObjectMovementHook.Enable();
}
else
{
_logger.Debug("Unhooking...");
_renderManagerHook?.Disable();
_gameObjectMovementHook?.Disable();
// _gameObjectMovementHook?.Disable();
}
}
catch (Exception e)