1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 23:33:33 +08:00

finished new mechanism for blueprint building sorting

This commit is contained in:
2025-06-18 01:39:00 +08:00
parent b79cfbc994
commit b7abb3a32a
3 changed files with 142 additions and 118 deletions

View File

@@ -764,8 +764,15 @@ public static class LogisticsPatch
public static void Enable(bool on)
{
if (_stationTipsRoot)
_stationTipsRoot.SetActive(on);
if (_stationTipsRoot == null) return;
if (!on)
{
_stationTipsRoot.SetActive(false);
return;
}
if (DSPGame.IsMenuDemo || !GameMain.isRunning) return;
_lastPlanet = GameMain.localPlanet;
_stationTipsRoot.SetActive(on && _lastPlanet != null);
}
public static void EnableBars(bool on)