Component:LocaleStringDriver: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
Automated: update SyncDelegates
 
Line 17: Line 17:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|SetArgumentSource[[Type:Action`2|Action`2]]<[[Type:String|String]], [[Type:IField|IField]]>|[[Type:Action`2|Action`2]]<[[Type:String|String]], [[Type:IField|IField]]>|false|
|SetArgumentSource:[[Type:Action`2|Action`2]]<[[Type:String|String]], [[Type:IField|IField]]>|[[Type:Action`2|Action`2]]<[[Type:String|String]], [[Type:IField|IField]]>|false|
|SetArgumentValue[[Type:Func`3|Func`3]]<[[Type:String|String]], [[Type:Object|Object]], [[Type:Bool|Bool]]>|[[Type:Func`3|Func`3]]<[[Type:String|String]], [[Type:Object|Object]], [[Type:Bool|Bool]]>|false|
|SetArgumentValue:[[Type:Func`3|Func`3]]<[[Type:String|String]], [[Type:Object|Object]], [[Type:Bool|Bool]]>|[[Type:Func`3|Func`3]]<[[Type:String|String]], [[Type:Object|Object]], [[Type:Bool|Bool]]>|false|
}}
}}



Latest revision as of 06:31, 17 March 2025

Component image 
Locale String Driver component as seen in the Scene Inspector

The LocaleStringDriver component is used to turn a key into a translated string from a locale, and then fill its value arguments with field contents or values.

Fields

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. Some components stop their functionality when this field is disabled, but some don't.
Target field drive of String The string field to drive with the final locale translation.
Key String The locale key to get a translation with.
Format String How to format the output.
Locale LocaleResource The locale resource to use Key on to get the translated string for.
ArgumentSources direct SyncDictionary`2<String, RelayRef`1<IField>> A list of argument strings in a locale translation and their fields to get the values for them from.
ArgumentValues direct SyncDictionary`2<String, SyncVar> A list of argument strings in a locale translation and their values.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
SetArgumentSource:Action`2<String, IField> Action`2<String, IField> X
SetArgumentValue:Func`3<String, Object, Bool> Func`3<String, Object, Bool> X

See Also