예제 #1
0
 public void UnsetTabDisplaySetting()
 {
     if (currentDisplaySetting == null)
     {
         return;
     }
     DestroyAllTabs();
     currentDisplaySetting = null;
 }
예제 #2
0
 public void SetTabDisplaySetting(TabDisplaySetting setting)
 {
     UnsetTabDisplaySetting();
     currentDisplaySetting = setting;
     for (int i = 0; i < setting.TabDisplayInfos.Length; i++)
     {
         ContentTab t = CreateTab(setting.TabDisplayInfos[i]);
         t.ContentTabSelectToggleEvent += OnContentTabSelectToggleEvent;
         if (i == 0)
         {
             t.ToggleSelected(true);
         }
         else
         {
             t.ToggleSelected(false);
         }
     }
 }