Class ScaledSpaceNode
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
A specialized HUD space node that rescales the X/Y (Right/Up) plane of its parent's plane-to-world transformation matrix, enlarging or shrinking all child UI elements attached to it uniformly.
public class ScaledSpaceNode : HudSpaceNodeBase, IReadOnlyHudNode, IReadOnlyHudSpaceNode, IReadOnlyHudParent
- Inheritance
-
ScaledSpaceNode
- Implements
- Inherited Members
Remarks
This node creates a modified copy of the parent PlaneToWorldRef transform and applies a uniform scale factor (PlaneScale) to the Right and Up vectors.
Constructors
ScaledSpaceNode(HudParentBase)
public ScaledSpaceNode(HudParentBase parent = null)
Parameters
parentHudParentBase
Properties
PlaneScale
Uniform scale factor applied to the X/Y plane (Right / Up) of the parent's plane-to-world matrix. A value of 1.0f represents no scaling, >1.0f enlarges, <1.0f shrinks.
public float PlaneScale { get; set; }
Property Value
UpdateScaleFunc
Optional delegate that, when assigned, is invoked every frame during RichHudFramework.UI.ScaledSpaceNode.Layout() to dynamically update PlaneScale.
public Func<float> UpdateScaleFunc { get; set; }