m ProbablePrime moved page DataPresetValue (Component) to Component:DataPresetValue: Creating component Namespace |
add info |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<!--T:1--> | <!--T:1--> | ||
Data Preset reference is a component that takes any value type for PresetValue. When this is triggered by a [[Component:DataPreset|DataPreset]], this sets <code>TargetField</code> to <code>PresetValue</code>. | |||
{{Infobox Component | {{Infobox Component | ||
|Image=DataPresetValue`1Component.png | |Image=DataPresetValue`1Component.png | ||
Line 9: | Line 9: | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|PresetValue| | |PresetValue|'''T'''|TypeAdv0=true|The value for the preset. Float is used as an example. Since this is a generic component, it can be used with any value. | ||
|TargetField|IField`1| | |TargetField|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv1=true|A reference to the field of the same type as PresetValue. | ||
}} | }} | ||
Line 21: | Line 21: | ||
{{stub}} | {{stub}} | ||
[[Category:Generics]] | [[Category:Generics]] | ||
[[Category:Components|Data Preset Value`1]] | [[Category:Components:Data:Presets{{#translation:}}|Data Preset Value`1]] | ||
[[Category:Components:Data: | [[Category:Components{{#translation:}}|Data Preset Value`1]] | ||
[[Category:Generic Components{{#translation:}}|Data Preset Value`1]] |
Latest revision as of 17:04, 1 May 2024
Data Preset reference is a component that takes any value type for PresetValue. When this is triggered by a DataPreset, this sets TargetField
to PresetValue
.
Component image
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
PresetValue
|
T | The value for the preset. Float is used as an example. Since this is a generic component, it can be used with any value. |
TargetField
|
direct RelayRef`1<IField`1<T>> | A reference to the field of the same type as PresetValue. |
Usage
See DataPreset for usage.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.