Skip to content

Commit

Permalink
Fix UIPlanetDetail in lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
starfi5h committed Jun 5, 2024
1 parent b5c2e37 commit 1834f07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NebulaPatcher/Patches/Dynamic/UIPlanetDetail_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1834f07

Please sign in to comment.