void ShowAdvancedOptions() { EditorGUILayout.BeginVertical(EditorGuiHelper.MakeBackgroundStyle(EditorGuiHelper.RedColor)); ShowNameAndEditButton(); EditorGUI.indentLevel++; EditorGUILayout.HelpBox("See documentation for information.", MessageType.Info); if (showAdvanced.boolValue) { ShowTrialTableOptions(); EditorGUILayout.Space(); ShowBlockOrderConfiguration(); EditorGUILayout.Space(); ShowSettingsFields(); EditorGUILayout.Space(); EditorGUILayout.Space(); } EditorGUI.indentLevel--; EditorGUILayout.EndVertical(); }
void ShowViewers(Dictionary <string, VariableViewer> viewerDict, string title, Color background) { EditorGUILayout.LabelField($"{title}: {viewerDict.Count}", EditorStyles.boldLabel); EditorGUILayout.BeginVertical(EditorGuiHelper.MakeBackgroundStyle(background)); EditorGUILayout.Space(); EditorGUILayout.Space(); EditorGUI.indentLevel++; if (viewerDict.Count == 0) { EditorGUILayout.LabelField("None"); } foreach (KeyValuePair <string, VariableViewer> item in viewerDict) { item.Value.DrawInspector(); } EditorGUILayout.EndVertical(); EditorGUI.indentLevel--; EditorGUILayout.Space(); }