mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
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:
1 parent
06a8445907
commit
2903019cb5
2 files changed
+10
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user