Add power bar suppression API, pin imgui.ini, bump SDK to v56
- New PowerbarHooks scaffold hooking gmPowerbarUI's RecvNotice_Begin/Level/ Finish trio. SetPowerbarSuppressed exposed via the plugin contract; current implementation no-ops the notices (a deeper SetVisible/HidePowerBar path crashed on the captured pointer, so full hide is parked for later). - ImGuiController pins io.IniFilename to a stable absolute path (C:\Games\RynthSuite\RynthAi\imgui.ini) so window positions, sizes, and dock layout persist across RL hot-reload and AC restarts. Default ImGui behavior wrote into the host process working dir which varied per launch. - PluginContract version bumped to 56 with SetPowerbarSuppressedFn added to RynthCoreAPI; SDK exposes Has/Set methods on RynthCoreHost. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
01c7a549bd
commit
cd3ccfd550
7 changed files with 276 additions and 3 deletions
|
|
@ -497,6 +497,12 @@ internal struct RynthCoreAPI
|
|||
/// gmMainChatUI each frame, hiding the retail chatbox entirely.
|
||||
/// Requires API v55+.</summary>
|
||||
public IntPtr SetChatSuppressedFn;
|
||||
|
||||
/// <summary>Function pointer: void SetPowerbarSuppressed(int enabled)
|
||||
/// When enabled=1, the engine no-ops gmPowerbarUI's RecvNotice_(Begin/
|
||||
/// Level/Finish), so the retail attack/magic power bar never renders.
|
||||
/// Requires API v56+.</summary>
|
||||
public IntPtr SetPowerbarSuppressedFn;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -504,7 +510,7 @@ internal struct RynthCoreAPI
|
|||
/// <summary>Current API version. Bump when adding fields to RynthCoreAPI.</summary>
|
||||
internal static class PluginContractVersion
|
||||
{
|
||||
public const uint Current = 55;
|
||||
public const uint Current = 56;
|
||||
}
|
||||
|
||||
internal static class ClientActionHookFlags
|
||||
|
|
@ -907,5 +913,8 @@ internal unsafe delegate int GetRadarRectCallbackDelegate(int* x0, int* y0, int*
|
|||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate void SetRadarSuppressedCallbackDelegate(int enabled);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate void SetPowerbarSuppressedCallbackDelegate(int enabled);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate void SetChatSuppressedCallbackDelegate(int enabled);
|
||||
|
|
|
|||
Loading…
Reference in a new issue