Interface IHudPlacedElement
The placement-only view of a HUD element: what the placement solvers read. Anything screen-anchored with HUD-style offsets — a HUD element, a leaderboard view element in the designer — satisfies it.
Namespace: Serenity.GameUi.Domain.Interfaces
Assembly: Serenity.GameUi.Domain.dll
Syntax
public interface IHudPlacedElement
Properties
Anchor
Which screen corner or edge the element is anchored to.
Declaration
UiAnchorType Anchor { get; }
Property Value
| Type | Description |
|---|---|
| UiAnchorType |
Remarks
Reuses the UI aggregate's nine-way anchor so anchor maths stays in UiAnchorMapper.
MirrorForPlayer
Whether a player-scoped element flips to the horizontally-opposite anchor, with its grow direction reversed, for odd player indices.
Declaration
bool MirrorForPlayer { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Offset
The nudge from that anchor, in reference-resolution pixels.
Declaration
HudOffset Offset { get; }
Property Value
| Type | Description |
|---|---|
| HudOffset |
PlayerIndex
The player this element belongs to, or -1 when it is not player-scoped.
Declaration
int PlayerIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
RotationDegrees
The turn applied to the whole element, in degrees counter-clockwise; zero is upright.
Declaration
float RotationDegrees { get; }
Property Value
| Type | Description |
|---|---|
| float |