17 lines
542 B
C#
17 lines
542 B
C#
using HarmonyLib;
|
|
|
|
namespace IdleSpectator;
|
|
|
|
/// <summary>
|
|
/// After vanilla hover clears <see cref="UnitSelectionEffect.last_actor"/>,
|
|
/// re-pin the Idle Spectator focus so destination / lover / attack arrows still draw.
|
|
/// </summary>
|
|
[HarmonyPatch(typeof(UnitSelectionEffect), nameof(UnitSelectionEffect.update))]
|
|
internal static class FocusArrowPatches
|
|
{
|
|
[HarmonyPostfix]
|
|
private static void PinFocusAfterVanillaHover(UnitSelectionEffect __instance, float pElapsed)
|
|
{
|
|
FocusRelationshipArrows.PinFocusActor();
|
|
}
|
|
}
|