Add radar rect API, jump primitives, account profile tweaks

- Hook gmRadarUI::DrawObjects to capture the UI singleton; expose
  host.TryGetRadarRect via UIElement::GetSurfaceBox (API v53).
- Plumb CommenceJump/DoJump/LaunchJumpWithMotion through
  ClientActionHooks and PlayerPhysicsHooks.
- Account profile dialog + LaunchAccountProfile adjustments.
- Viewport platform backend tweak.
This commit is contained in:
tombohar 2026-04-22 21:28:29 -04:00
commit 2c3d2410a8
13 changed files with 540 additions and 15 deletions

View file

@ -244,6 +244,38 @@ internal static class CommandInterpreterHooks
}
}
public static bool CommenceJump()
{
if (!TryBindDelegates())
return false;
try
{
_commenceJump!(_boundCmdInterp);
return true;
}
catch
{
return false;
}
}
public static bool DoJump(bool autonomous)
{
if (!TryBindDelegates())
return false;
try
{
_doJump!(_boundCmdInterp, autonomous ? 1 : 0);
return true;
}
catch
{
return false;
}
}
private static bool TryBindDelegates()
{
IntPtr selectedStaticAddr = IntPtr.Zero;