public void UnsetTabDisplaySetting() { if (currentDisplaySetting == null) { return; } DestroyAllTabs(); currentDisplaySetting = null; }
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); } } }