Table of Contents

Class CustomSpaceNode

Namespace
RichHudFramework.UI
Assembly
RichHudClient.dll

HudSpace node that uses a completely user-supplied world matrix each frame. If no delegate is assigned, the node simply inherits its parent's Plane-to-World matrix.

Ideal for attaching UI to moving cockpits, turret bases, custom billboards, etc.

public class CustomSpaceNode : HudSpaceNodeBase, IReadOnlyHudNode, IReadOnlyHudSpaceNode, IReadOnlyHudParent
Inheritance
CustomSpaceNode
Implements
Inherited Members

Constructors

CustomSpaceNode(HudParentBase)

public CustomSpaceNode(HudParentBase parent = null)

Parameters

parent HudParentBase

Properties

UpdateMatrixFunc

Delegate called every frame to retrieve the current Plane-to-World matrix. If null, the node falls back to its parent's matrix.

public Func<MatrixD> UpdateMatrixFunc { get; set; }

Property Value

Func<MatrixD>

Methods

Layout()

Updates the node's Plane-to-World matrix either from UpdateMatrixFunc or by copying the parent's matrix.

protected override void Layout()