public virtual void OnGUI(Setting setting) { if (PaneGUI.BeginPart(setting.label, this)) { PaneGUI.DrawSettings(settings); } PaneGUI.EndPart(); }
protected override void OnFooterGUI() { PaneGUI.Space(5); if (GUILayout.Button("Use Defaults", GUILayout.Width(120))) { GUI.FocusControl(""); Reset(); GUI.changed = true; } }
public override void OnGUI(string searchContext) { settingsContainer?.Check(); EditorGUILayout.BeginVertical(Styles.paneStyle); EditorGUIUtility.labelWidth = 250; PaneGUI.DrawSettings(settingsContainer?.GetSettings()); OnFooterGUI(); EditorGUILayout.EndVertical(); if (GUI.changed) { settingsContainer?.Save(); OnChange?.Invoke(); } }