Vixen
02b45cc4
csharp
public sealed class ProxyShapeView

A body's proxy shapes: the list, one shape's fields, and what the audit says.

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

Remarks

The three things D13 asks of this panel are the ones that cannot be got any other way: the coarse set generated with a per-shape override, the symmetry toggle, and the validation pass — including the check nobody can make by reading either file, which is a name present in one body's set and missing from another's.

The numbers here are one of two ways to size a shape and the slower one. ProxyShapeGizmoTarget is the other: the shapes draw through DrawShapes and a viewport's gizmo takes hold of one through the same IGizmoTarget an entity goes through. A panel that could only type numbers would be one nobody uses for the first pass; a viewport with no numbers would be one nobody can use for the last centimetre.

Fields and properties (16)

  • 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 Button AddShape

    Adds a shape.

  • public Button RemoveShape

    Removes the selected shape.

  • public Button MirrorShape

    Puts the selected shape on the other side of the body.

  • public Button Coarsen

    Marks the coarse subset from a generated one.

  • public Button Check

    Runs the validation pass.

  • public Viewport Stage

    Where the body and its shapes are drawn.

  • public SceneViewport Scene

    The camera, the gizmo and the navigation over it.

  • public DebugDraw Draw

    The rig and the shapes, as lines for whoever renders the stage.

  • public UiElement List

    The shapes.

  • public UiElement Fields

    The selected shape's fields.

  • public UiElement Report

    What the last validation pass said.

  • public ProxyShapeRecord? Selected

    Which shape is selected, or .

  • public ProxyShapeSetContent? Against

    Another body's set to compare names against, or .

Methods (6)

  • protected override void OnCreated()

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

  • public void Update(TimeSpan delta)

    Advances the pane: the camera, the gizmo, and what is drawn.

  • public void Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

  • public void Show(ProxyShapeDocument set)

    Shows a set.

  • public void Reload(ProxyShapeDocument set)

    Rebuilds from the document.

  • public void Reload()

    Rebuilds the list.

Used by (2)

  • ProxyShapeEditorFactoryVixen.Editor.AssetEditors
  • ProxyShapeEditorTestsVixen.Editor.AssetEditors.Tests