Vixen
02b45cc4
csharp
public sealed class StatisticsView

What is in the scene, against what somebody said should be.

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

Remarks

⚠ Every row carries its budget as a bar rather than only as a number. "48 233 entities" says nothing on its own; "48 233 of 100 000" is a fact somebody can act on, and a bar is how a person reads that at a glance while they are doing something else.

⚠ Warnings are listed rather than only coloured. A row tinted amber is invisible to anyone who is not looking at that row, and the whole value of a statistics panel is that it is noticed by somebody who opened it for another reason.

Fields and properties (8)

  • 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 Toolbar

    The strip along the top.

  • public Button Refresh

    What takes a fresh count.

  • public UiElement Body

    Where the counted things go.

  • public UiElement Warnings

    Where the warnings go.

  • public Func<SceneStatistics>? Source

    What produces a fresh count, or when nothing can.

  • public SceneStatistics? Statistics

    The count on screen.

Methods (3)

  • public void Take()

    Takes a fresh count, if there is anything to count.

  • public void Show(SceneStatistics statistics)

    Shows a count somebody else took.

  • protected override void OnCreated()

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

Used by (2)

  • DiagnosticsModuleVixen.Editor.Diagnostics
  • DiagnosticsPanelTestsVixen.Editor.App.Tests