|
Window Framework for UI Toolkit v2.0.x
|
Holds resolved player theme values keyed by canonical framework semantic token. More...
Public Member Functions | |
| void | SetColor (string token, Color color) |
| Sets one resolved colour for a framework token. | |
| void | SetNumber (string token, float value) |
| Supplies a resolved numeric value without inventing a baseline. | |
| void | SetTexture (string token, Texture2D texture) |
| Supplies a texture reference; null explicitly clears an image. | |
| bool | TryGetColor (string token, out Color color) |
| Looks up an explicitly supplied colour without synthesizing defaults. | |
| bool | TryGetNumber (string token, out float value) |
| Looks up a supplied dimension. | |
| bool | TryGetTexture (string token, out Texture2D texture) |
| Looks up a supplied texture, including an explicit null image. | |
Properties | |
| string | FontId [get, private set] |
| Gets the selected shipped font identifier, or null when no font override was supplied. | |
Static Private Member Functions | |
| static bool | Finite (float value) |
Private Attributes | |
| readonly Dictionary< string, Color > | _colors = new Dictionary<string, Color>(StringComparer.Ordinal) |
| readonly Dictionary< string, float > | _numbers = new Dictionary<string, float>(StringComparer.Ordinal) |
| readonly Dictionary< string, Texture2D > | _textures = new Dictionary<string, Texture2D>(StringComparer.Ordinal) |
Holds resolved player theme values keyed by canonical framework semantic token.
Contains no built-in default palette. Values must be supplied by the authoritative theme snapshot or validated importer. Friendly JSON keys will map to these tokens through the shared schema catalog. This type does not deserialize or execute source.
|
inlinestaticprivate |

|
inline |
Sets one resolved colour for a framework token.
| token | Canonical semantic token, not a selector or executable expression. |
| color | Resolved finite RGBA colour. |
| ArgumentException | Token is empty or colour is not finite. |

|
inline |
Supplies a resolved numeric value without inventing a baseline.
| token | Canonical framework semantic token. |
| value | Finite dimension, or a signed offset within its catalog limits. |
| ArgumentException | Token is empty or value is invalid. |

|
inline |
Supplies a texture reference; null explicitly clears an image.
| token | Canonical image token. |
| texture | Texture owned by the importing theme, not this value model. |
| ArgumentException | Token is empty. |
Never destroys textures. The theme owner must remove bindings before releasing them.

|
inline |
Looks up an explicitly supplied colour without synthesizing defaults.
| token | Canonical semantic token. |
| color | Supplied colour when found. |

|
inline |
Looks up a supplied dimension.
| token | Canonical token. |
| value | Dimension when present. |

|
inline |
Looks up a supplied texture, including an explicit null image.
| token | Canonical image token. |
| texture | Owned texture reference when present. |

|
private |
|
private |
|
private |
|
getprivate set |
Gets the selected shipped font identifier, or null when no font override was supplied.