public void DrawUI(EditorWindow parent) { if (dataStore.SelectVenue == null) { return; } EditorGUILayout.Space(); GUILayout.Box("", GUILayout.Width(parent.position.width - 10), GUILayout.Height(1)); EditorGUILayout.Space(); using (new EditorGUILayout.HorizontalScope()) { GUILayout.FlexibleSpace(); // タブを描画する //Styles.TabToggles, Styles.TabButtonStyle, Styles.TabButtonSize currentTab = (Tab)GUILayout.Toolbar((int)currentTab, new[] { "会場の設定", "アップロード" }); GUILayout.FlexibleSpace(); } if (currentTab == Tab.Edit) { editVenueView.DrawUI(parent); } else { uploadVenueView.DrawUI(); } }
void DrawUI() { using (new EditorGUILayout.HorizontalScope()) { GUILayout.FlexibleSpace(); currentTab = (Tab)GUILayout.Toolbar((int)currentTab, new[] { "会場の設定", "アップロード" }); GUILayout.FlexibleSpace(); } if (currentTab == Tab.Edit) { editVenueView.DrawUI(); } else { uploadVenueView.DrawUI(); } }