fix(uxassist): dismiss entity hover tips on opening pause menu

Clear the native hover target when the menu opens, since paused UI updates stop before general tips can dismiss it. Native hover tracking can reopen the tip after resuming.

Refs #76
This commit is contained in:
soarqin committed 2026-10-11 03:49:05 +08:00
1 parent 06a8445907
commit 2903019cb5
2 files changed
+10

No files matched your search

+8
View File
@@ -35,6 +35,14 @@ public class UIPatch : PatchImpl<UIPatch>
GameLogicProc.OnGameBegin -= PlanetVeinUtilization.OnGameBegin;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(UIEscMenu), nameof(UIEscMenu._OnOpen))]
private static void UIEscMenu__OnOpen_Postfix()
{
// Pausing stops general-tip updates before they can dismiss the hovered entity.
UIGeneralTips.instance?.entityBriefInfo?.SetInfo(null, 0);
}
private class PlanetVeinUtilization : PatchImpl<PlanetVeinUtilization>
{
private const float CountLabelGap = 4f;