private void DisplaySelectedTodoGroup() { if (_selectedGroup == null || _showTodoGroup == false) { return; } // Backup original GUI settings int originalTextFieldFontSize = GUI.skin.textField.fontSize; int originalTextAreaFontSize = GUI.skin.textArea.fontSize; // Change font size GUI.skin.textField.fontSize = 14; GUI.skin.textArea.fontSize = 12; /** Display TodoGroup */ float height = Mathf.Max((float)TodoLayout.MinTodoGroupHeight, Screen.height / 4f); using (new VerticalGroup(EditorStyles.helpBox, GUILayout.Height(height))) { // Top bar using (new HorizontalGroup()) { GUIStyle labelStyle = new GUIStyle(EditorStyles.boldLabel); labelStyle.fontSize = 14; labelStyle.padding = new RectOffset(4, 4, 4, 4); labelStyle.normal.textColor = Color.white; GUILayout.Label("Info", labelStyle); if (GUILayout.Button("", "ToolbarSeachCancelButton")) { HideTodoGroup(); } } // Group contents _selectedGroup.title = GUILayout.TextField(_selectedGroup.title, 50, GUILayout.Height((float)TodoLayout.TodoGroupTitleHeight)); // Tag using (new HorizontalGroup()) { GUILayout.Label("Tag ", GUILayout.ExpandWidth(false)); int tagIndex = EditorGUILayout.Popup(_selectedGroup.tag.index, _config.GetTagNames()); // Switch tag if (tagIndex != _selectedGroup.tag.index) { _selectedGroup.tag = _config.GetTagByIndex(tagIndex); RefreshVisibleGroups(); } _selectedGroup.tag.color = EditorGUILayout.ColorField(_selectedGroup.tag.color, GUILayout.Width((float)TodoLayout.TagColorWidth), GUILayout.Height((float)TodoLayout.TodoGroupTitleHeight)); } // Asset using (new HorizontalGroup()) { GUILayout.Label("Asset ", GUILayout.ExpandWidth(false)); _selectedGroup.reference = EditorGUILayout.ObjectField(_selectedGroup.reference, typeof(UnityEngine.Object), false); } // Note GUILayout.Space((float)TodoLayout.TodoGroupSpace); GUILayout.Label("Note "); _selectedGroup.note = GUILayout.TextArea(_selectedGroup.note, GUILayout.ExpandHeight(true)); } // Rollback original GUI settings GUI.skin.textField.fontSize = originalTextFieldFontSize; GUI.skin.textArea.fontSize = originalTextAreaFontSize; }