Enum AttributeValueType
Definition
Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll
Types allowed for the value of an Attribute.
Inheritance
Object ⇦ ValueType ⇦ Enum ⇦ AttributeValueType
Fields
Name | Value | Description |
---|---|---|
Literal | 0 | The value is the literal string in the markup, i.e. it is the actual string representation of the target data type such as an integer, enumeration or another string. |
AssetBinding | 1 | A read-only binding which obtains the value from a named game asset. |
TranslationBinding | 2 | A read-only binding which obtains the value from a translation key registered with SMAPI. |
InputBinding | 3 | A one-way data binding which obtains the value from the context data and assigns it to the view. |
OneTimeBinding | 4 | A special type of InputBinding that only reads the value a single time, and does not update subsequently afterward. |
OutputBinding | 5 | A one-way data binding which obtains the value from the view and assigns it to the context data. |
TwoWayBinding | 6 | A two-way data binding which both assigns the context data's value to the view, and the view's value to the context data, depending on which one was most recently changed. |
TemplateBinding | 7 | Binds to the attribute value of the containing template; only valid within a template node. |