private static void StationWindowOverviewTab_OnSelect_prf(StationWindowOverviewTab __instance) { StationWindowOverviewTabExtender tabExt = __instance.gameObject.GetComponent <StationWindowOverviewTabExtender>(); if (tabExt != null) { tabExt.OnSelect(); } }
private static void ResourceView_ShowItem_pof(ResourceView __instance, Item item) { if (__instance.transform.parent == _actualTargetItemsContainer) { StationWindowOverviewTabExtender tabExt = __instance.transform.GetComponentInParent <StationWindowOverviewTabExtender>(); if (tabExt) { Dictionary <Item, int> demandedItems = tabExt.DemandedItems; if (demandedItems != null && demandedItems.TryGetValue(item, out int count)) { __instance.ShowItem(item, count); } } } }
private static void VehicleWindowScheduleTab_Initialize_prf(VehicleWindowScheduleTab __instance, StationWindow window) { StationWindowOverviewTabExtender tabExt = __instance.gameObject.AddComponent <StationWindowOverviewTabExtender>(); tabExt.Initialize(window); }