logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum HudValueTransformKind

    How a bound value is reshaped before it reaches a representation.

    Namespace: Serenity.GameUi.Domain.Types
    Assembly: Serenity.GameUi.Domain.dll
    Syntax
    public enum HudValueTransformKind
    Remarks

    Named "value transform" rather than "transform": HudTransformPlacement and HudElementTransformWriter already own "transform" for an element's placement (offset, scale, stretch, rotation). This is a different axis entirely — it reshapes the number a binding reads, not where the element sits.

    Fields

    Name Description
    NONE

    No reshaping; the bound value renders exactly as read. The default, so a legacy element that deserializes without this field behaves exactly as it always has.

    REMAP_RANGE

    Linearly maps a source range onto a display range, e.g. turning a 0–1 fraction the game already tracks into 0–100 for the HUD.

    SCALE_AND_OFFSET

    Multiplies the value, then adds an offset: value * multiplier + offset.

    In this article
    © 2026 Serenity. All Rights Reserved