From 1834f07d8c574df2c74332d0435fbbd7a197907e Mon Sep 17 00:00:00 2001 From: starfish <50672801+starfi5h@users.noreply.github.com> Date: Wed, 5 Jun 2024 00:51:36 +0800 Subject: [PATCH] Fix UIPlanetDetail in lobby --- NebulaPatcher/Patches/Dynamic/UIPlanetDetail_Patch.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NebulaPatcher/Patches/Dynamic/UIPlanetDetail_Patch.cs b/NebulaPatcher/Patches/Dynamic/UIPlanetDetail_Patch.cs index b963a6757..427202c09 100644 --- a/NebulaPatcher/Patches/Dynamic/UIPlanetDetail_Patch.cs +++ b/NebulaPatcher/Patches/Dynamic/UIPlanetDetail_Patch.cs @@ -41,13 +41,15 @@ public static bool _OnUpdate_Prefix(UIPlanetDetail __instance) return true; } - if (Time.frameCount % 30 == 0) + if (Time.frameCount % 30 == 0 && __instance.tabIndex == 0) { __instance.RefreshDynamicProperties(); + __instance.OnTabButtonClick(0); // baseInfoGroupGo.SetActive(true) } __instance.trslBg.SetActive(true); __instance.imgBg.SetActive(true); - + __instance.displayComboColorCard.color = ((__instance.uiGame.veinAmountDisplayFilter > 0) ? __instance.displayComboFilterColor : __instance.displayComboNormalColor); + __instance.RefreshTabPanel(); return false; }