Skip to content
Version 2.11.0
↓ Get the launcher

ConditionalElement record

React-style conditional. Both subtrees are built once; the renderer SetActive-toggles them each refresh from When (no reconciliation). Else may be null. Fill = the active branch expands to fill leftover height in a fixed-size (Resizable) window (so e.g. a meter’s list scroll grows with the window). Default false — no effect in content-sized windows.

public record ConditionalElement : IEquatable<HudElement>
name description
ConditionalElement(…) React-style conditional. Both subtrees are built once; the renderer SetActive-toggles them each refresh from When (no reconciliation). Else may be null. Fill = the active branch expands to fill leftover height in a fixed-size (Resizable) window (so e.g. a meter’s list scroll grows with the window). Default false — no effect in content-sized windows.
Else { get; set; }
Fill { get; set; }
Then { get; set; }
When { get; set; }