API reference
Class PromptGlyphStyle
Namespace: MicroEngine.UI
Assembly: MicroEngine.dll
Guide: UI widgets
Colours of prompt glyphs (PromptText): key caps, gamepad buttons and touch controls.
public sealed record PromptGlyphStyle : IEquatable<PromptGlyphStyle>Inheritance
Implements
Constructors
PromptGlyphStyle(Color, Color, Color)
Colours of prompt glyphs (PromptText): key caps, gamepad buttons and touch controls.
public PromptGlyphStyle(Color Cap, Color CapBorder, Color CapText)Parameters
Cap Color
Fill of key caps and of gamepad buttons without a colour of their own.
CapBorder Color
Outline of caps, pills and touch rings.
CapText Color
Text on caps and buttons.
Fields
Default
Light caps with dark text, readable on most backgrounds.
public static readonly PromptGlyphStyle DefaultField Value
Properties
Cap
Fill of key caps and of gamepad buttons without a colour of their own.
public Color Cap { get; init; }Property Value
CapBorder
Outline of caps, pills and touch rings.
public Color CapBorder { get; init; }Property Value
CapText
Text on caps and buttons.
public Color CapText { get; init; }Property Value
ColoredFaceButtons
Whether Xbox and Nintendo face buttons are filled with their usual colours (A green, B red, X blue, Y yellow).
public bool ColoredFaceButtons { get; init; }Property Value
Methods
<Clone>$()
public PromptGlyphStyle <Clone>$()Returns
Deconstruct(out Color, out Color, out Color)
public void Deconstruct(out Color Cap, out Color CapBorder, out Color CapText)Parameters
Cap Color
CapBorder Color
CapText Color
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(PromptGlyphStyle?)
public bool Equals(PromptGlyphStyle? other)Parameters
other PromptGlyphStyle?
Returns
From(UiTheme)
Caps in a theme’s text colour, outlined with its shadow, labelled in its panel colour.
public static PromptGlyphStyle From(UiTheme theme)Parameters
theme UiTheme
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(PromptGlyphStyle?, PromptGlyphStyle?)
public static bool operator ==(PromptGlyphStyle? left, PromptGlyphStyle? right)Parameters
left PromptGlyphStyle?
right PromptGlyphStyle?
Returns
operator !=(PromptGlyphStyle?, PromptGlyphStyle?)
public static bool operator !=(PromptGlyphStyle? left, PromptGlyphStyle? right)Parameters
left PromptGlyphStyle?
right PromptGlyphStyle?