Vixen
02b45cc4
csharp
public record class SettingsCategory

One page of a settings window: a line in the rail, and what fills the pane.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A factory rather than an element, for PanelDescriptor's reason. A settings window with nine pages builds one; building the other eight would stand up nine inspectors over nine settings objects the user has not asked to look at. It is also what makes Revert a rebuild rather than nine drawers each having to know how to un-edit themselves.

Fields and properties (5)

  • public string Id

    What a saved selection and a search result call it.

  • public StringId Title

    What the rail says.

  • public Action<UiElement> Build

    Fills the pane. Called the first time the page is shown, and again after a revert.

  • public Action? Reset

    Puts this page's settings back to their defaults, or if it cannot.

  • public Func<IEnumerable<string>>? Keywords

    The words a search over every setting should match this page on.

Methods (1)

  • public SettingsCategory(string Id, StringId Title, Action<UiElement> Build)

    One page of a settings window: a line in the rail, and what fills the pane.

Used by (3)

  • EditorApplicationVixen.Editor.App
  • SettingsViewVixen.Editor.Ui
  • SettingsWindowTestsVixen.Editor.App.Tests