1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 06:13:36 +08:00

some fixes

This commit is contained in:
2024-09-20 17:34:10 +08:00
parent 2d2602d8b9
commit 177c74d6e9
3 changed files with 50 additions and 32 deletions

View File

@@ -397,7 +397,9 @@ public static class LogisticsPatch
var storage = stationEntry.station?.storage;
if (storage == null) return;
var itemId = storage.Length > slot ? storage[slot].itemId : 0;
var controlPanelWindow = UIRoot.instance?.uiGame?.controlPanelWindow;
var uiRoot = UIRoot.instance;
if (!uiRoot) return;
var controlPanelWindow = uiRoot.uiGame?.controlPanelWindow;
if (controlPanelWindow == null) return;
var filterPanel = controlPanelWindow.filterPanel;
if (filterPanel == null) return;
@@ -487,7 +489,8 @@ public static class LogisticsPatch
public static void Enable(bool on)
{
_stationTipRoot?.SetActive(on);
if (_stationTipRoot)
_stationTipRoot.SetActive(on);
}
public static void EnableBars(bool on)