logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum HudGrowDirection

    The direction in which a repeating HUD representation (a bullet stack, a life strip, a pip row) adds its next item.

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

    This is deliberately separate from the element's screen anchor. An anchor says WHERE the element sits; a grow direction says which way its contents extend from there. A bottom-right ammo counter is anchored BOTTOM_RIGHT but grows RIGHT_TO_LEFT — a single fused enum cannot express that pairing.

    Fields

    Name Description
    BOTTOM_TO_TOP

    Items extend upwards.

    LEFT_TO_RIGHT

    Items extend towards the right.

    RIGHT_TO_LEFT

    Items extend towards the left.

    TOP_TO_BOTTOM

    Items extend downwards.

    In this article
    © 2026 Serenity. All Rights Reserved