1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 02:53:29 +08:00
This commit is contained in:
2025-04-22 19:17:40 +08:00
parent e765f0f42d
commit 5c187fb32e
2 changed files with 9 additions and 8 deletions

View File

@@ -168,6 +168,7 @@ public static class PlayerPatch
public static void OnUpdate()
{
if (!UIRoot.instance.uiGame.starmap.active) return;
if (_toggleAllStarsNameKey.keyValue)
{
ToggleAllStarsName();
@@ -175,9 +176,9 @@ public static class PlayerPatch
_forceShowAllStarsName = _forceShowAllStarsNameExternal || _showAllStarsNameKey.IsKeyPressing();
}
[HarmonyPostfix]
[HarmonyPatch(typeof(UIStarmap), nameof(UIStarmap._OnClose))]
private static void UIStarmap__OnClose_Postfix()
[HarmonyPrefix]
[HarmonyPatch(typeof(UIStarmap), nameof(UIStarmap._OnOpen))]
private static void UIStarmap__OnOpen_Prefix()
{
_showAllStarsNameStatus = 0;
}