Vixen
02b45cc4
csharp
public record class PanelDescriptor

A panel the editor can show: an id, a name, and what fills it.

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

Remarks

⚠ A factory rather than an element, and the panel is built lazily. An editor with thirty registered panels shows six; building the other twenty-four at start-up would cost a scene view, a profiler and a node graph that nobody asked for. It is also what lets a saved layout name a panel a plugin has not registered yet — the tab appears when it does.

Fields and properties (5)

  • public string Id

    What a saved layout calls it. Stable across versions, because it is written into a file on the user's disk the first time they move the panel.

  • public StringId Title

    What its tab says.

  • public Action<DockPanel> Build

    Fills the panel. Called once, when the panel is first shown.

  • public bool CanClose

    Whether the user may close it.

  • public Action? Closed

    Called after the panel leaves the arrangement, however it left.

Methods (1)

  • public PanelDescriptor(string Id, StringId Title, Action<DockPanel> Build)

    A panel the editor can show: an id, a name, and what fills it.

Used by (8)

  • DockingWorkspaceVixen.Editor.Ui
  • EditorApplicationVixen.Editor.App
  • EditorSessionVixen.Editor.Testing
  • EditorShellVixen.Editor.Ui
  • LoadingTestsVixen.Editor.Plugin.Tests
  • MilestoneE3TestsVixen.Editor.App.Tests
  • PluginContextVixen.Editor.Plugin
  • TerrainPanelTestsVixen.Editor.App.Tests