Initial HSMappy release (fork of Mappy)

Made-with: Cursor
This commit is contained in:
2026-02-26 03:54:51 -05:00
commit 9659f7a7d1
72 changed files with 6625 additions and 0 deletions
@@ -0,0 +1,33 @@
using FFXIVClientStructs.FFXIV.Client.UI;
namespace Mappy.Extensions;
public static unsafe class AddonAreaMapExtensions
{
public static void ForceOffscreen(this ref AddonAreaMap addon)
{
if (!addon.IsReady) return;
if (addon.RootNode is null) return;
addon.RootNode->SetPositionFloat(-9001.0f, -9001.0f);
}
public static void RestorePosition(this ref AddonAreaMap addon)
{
if (!addon.IsReady) return;
if (addon.RootNode is null) return;
addon.RootNode->SetPositionFloat(addon.X, addon.Y);
}
public static bool IsOffscreen(this ref AddonAreaMap addon)
{
if (!addon.IsReady) return false;
if (addon.RootNode is null) return false;
var xAdjusted = addon.RootNode->X < -9000.0f;
var yAdjusted = addon.RootNode->Y < -9000.0f;
return xAdjusted && yAdjusted;
}
}