Vixen
02b45cc4
csharp
public sealed class MoveSetView

A move set as a table, with the filter box that is a live query.

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

Remarks

The filter box is the point of the whole panel. Typing the same query the runtime would build shows what would be selected, in score order, with the breakdown — matched facets, numeric proximity, penalties. "Why did it pick that clip" is otherwise unanswerable, and the thing an author reaches for instead is a pairwise table they can read, which is the design this document exists to avoid.

⚠ The query runs against the table and not against a content build. Preview bakes every row against nothing — selection reads facets and traits and never touches a motion — so the answer is available while somebody is still typing the row. An editor that needed the clips built to answer this would be one nobody waits for.

⚠ Rows overridden by an overlay are struck through and named. A composed set shows the winner; the row underneath it is still in somebody's file, and a table that silently showed only the winner is how an author spends an afternoon editing a row that no longer has any effect.

Fields and properties (11)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Bar

    The bar across the top.

  • public TextBox Filter

    The query. Facets as key=value, plus speed: and turn:.

  • public Button AddMove

    Adds a row.

  • public Button RemoveMove

    Removes the selected row.

  • public ToggleButton Coverage

    Whether the coverage sweep is showing instead of the table.

  • public UiElement Table

    The table.

  • public UiElement Fields

    What the selected row is, and why it scored what it did.

  • public MoveEntryRecord? Selected

    Which row is selected, or .

  • public IReadOnlyList<MoveExplanation> Ranked

    What the last query said, best first, or empty when the box is empty.

Methods (4)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(MoveSetDocument set)

    Shows a set.

  • public void Reload(MoveSetDocument set)

    Rebuilds from the document.

  • public void Reload()

    Rebuilds the table, or the coverage sweep in its place.

Used by (2)

  • MoveSetEditorFactoryVixen.Editor.AssetEditors
  • MoveSetTestsVixen.Editor.AssetEditors.Tests