ImageElement record
Escape hatch: plugin supplies its own PNG; framework displays it. Consistency is the plugin’s responsibility here (the one unenforced spot).
public record ImageElement : IEquatable<HudElement>Public Members
Section titled “Public Members”| name | description |
|---|---|
| ImageElement(…) | Escape hatch: plugin supplies its own PNG; framework displays it. Consistency is the plugin’s responsibility here (the one unenforced spot). |
| Height { get; set; } | |
| Live { get; set; } | Re-pull Png on every refresh and swap the picture when the returned array changes (a REFERENCE compare, so return cached arrays — never a freshly read/allocated one per call). For an image whose picture follows live data, e.g. a pooled grid slot that shows a different item’s icon after a filter or a scroll (framework 2.30.0). A transient null keeps the last picture. Default false = the picture is read ONCE when the window is built, unchanged. An init property (binary-compatible). |
| Png { get; set; } | |
| Tint { get; set; } | Per-refresh tint multiplied into the picture (alpha honoured), for a flat WHITE glyph PNG drawn in a theme colour (an accent star, a muted icon) or faded with its row (framework 2.30.0). Poll-diffed: only a change writes anything. Null Func (default) or a null result = untinted white, the picture’s own colours, unchanged. An init property (binary-compatible). |
| Width { get; set; } |
See Also
Section titled “See Also”- record HudElement
- namespace Stellar.Abstractions.Services