CooldownTileElement record
One cooldown/debuff tile for the CooldownBar: a fixed icon square (game-asset art via Icon/Uv) with an Accent-tinted outline, a foot fill-bar (width = Fill01, 0..1), an optional ★ corner badge when IsImagine, an optional ×N charge count when ChargeCount > 1, and a centred Seconds caption below — all poll-diffed each refresh. The framework binds the boxed texture on the window’s refresh pass (renders without the runtime ticker, unlike GameTextureElement), so it appears immediately. Compose pooled tiles inside a RowElement wrapped in ConditionalElements for active-only collapse.
public record CooldownTileElement : IEquatable<HudElement>Public Members
Section titled “Public Members”| name | description |
|---|---|
| CooldownTileElement(…) | One cooldown/debuff tile for the CooldownBar: a fixed icon square (game-asset art via Icon/Uv) with an Accent-tinted outline, a foot fill-bar (width = Fill01, 0..1), an optional ★ corner badge when IsImagine, an optional ×N charge count when ChargeCount > 1, and a centred Seconds caption below — all poll-diffed each refresh. The framework binds the boxed texture on the window’s refresh pass (renders without the runtime ticker, unlike GameTextureElement), so it appears immediately. Compose pooled tiles inside a RowElement wrapped in ConditionalElements for active-only collapse. |
| Accent { get; set; } | Tile accent — outline + fill + caption tint (e.g. cyan = cooldown, red = debuff). |
| ChargeCount { get; set; } | When > 1, a ×N badge shows remaining charges. |
| FallbackLabel { get; set; } | Drawn centered on the tile only when Icon() is null (e.g. a 2-letter abbreviation). Null/empty = nothing. |
| Fill01 { get; set; } | Foot fill-bar fraction (0..1) — typically cooldown/debuff completion. |
| Icon { get; set; } | Supplies the boxed UnityEngine.Texture for the tile art (null = neutral box). |
| IsImagine { get; set; } | When true, a ★ corner badge marks an Imagine-lockout tile. |
| OnClick { get; set; } | When non-null, clicking anywhere on the tile calls this action. |
| Seconds { get; set; } | Remaining-time caption shown below the icon. |
| Uv { get; set; } | The atlas UV sub-rect for the art (0..1, bottom-left origin). |
See Also
Section titled “See Also”- record HudElement
- namespace Stellar.Abstractions.Services