logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum HudValueChangeDirection

    Which way a bound value moved, for an element's change feedback.

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

    Only a numeric comparison can tell increase from decrease — a health bar dropping wants the damage-flash definition, a health bar rising wants a different (or no) one, and only DECREASE can express that distinction. A non-numeric change (text, a bool, an enum) has no "more" or "less" to report, so it always classifies as ANY.

    Fields

    Name Description
    ANY

    Any change fires the feedback, regardless of direction. The default, so an element authored before this field existed keeps its old (direction-agnostic) behaviour with no migration step.

    DECREASE

    Fires only when the new value is numerically smaller than the previous one.

    INCREASE

    Fires only when the new value is numerically greater than the previous one.

    In this article
    © 2026 Serenity. All Rights Reserved