Пример #1
0
 internal void OpenAt(UiCategoryTab cat, TransportSystemDefinition tsd)
 {
     if (cat == UiCategoryTab.LineListing && tsd.isTour())
     {
         cat = UiCategoryTab.TourListing;
     }
     if (tsd != null)
     {
         m_StripsSubcategories[cat].selectedIndex = m_StripsSubcategories[cat].Find <UIComponent>(tsd.GetDefType().Name)?.zOrder ?? -1;
     }
     TLMUtils.doLog($"OpenAt: {cat} ({(int)cat})=>{tsd.GetDefType()}");
     m_StripMain.selectedIndex = (int)cat;
     TLMController.instance.OpenTLMPanel();
 }
Пример #2
0
 internal void OpenAt(TransportSystemDefinition tsd)
 {
     m_stripMain.selectedIndex = m_stripMain.Find <UIComponent>(tsd.GetDefType().Name)?.zOrder ?? -1;
     TLMController.instance.OpenTLMPanel();
 }