Module:Test2/doc: Difference between revisions

From Resonite Wiki
add example usage
 
No edit summary
Line 3: Line 3:
|Fields=
|Fields=
[
[
{"Name":"persistent", "FieldType":"Sync", "Type":"Bool"},
{"Name":"persistent", "FieldType":"Sync", "Type":"Bool", "Value": true},
{"Name":"UpdateOrder", "FieldType":"Sync", "Type":"Int"},
{"Name":"UpdateOrder", "FieldType":"Sync", "Type":"Int", "Value": 0},
{"Name":"Enabled", "FieldType":"Sync", "Type":"Bool"},
{"Name":"Enabled", "FieldType":"Sync", "Type":"Bool", "Value": true},
{"Name":"Font", "FieldType":"AssetRef", "Type":"FrooxEngine.FontSet"},
{"Name":"Font", "FieldType":"AssetRef", "Type":"FrooxEngine.FontSet", "Value": "FontChain on Root (ID16F00)"},
{"Name":"Content", "FieldType":"Sync", "Type":"String"},
{"Name":"Content", "FieldType":"Sync", "Type":"String", "Value": null},
{"Name":"ParseRichText", "FieldType":"Sync", "Type":"Bool"},
{"Name":"ParseRichText", "FieldType":"Sync", "Type":"Bool", "Value": true},
{"Name":"NullContent", "FieldType":"Sync", "Type":"String"},
{"Name":"NullContent", "FieldType":"Sync", "Type":"String", "Value": null},
{"Name":"Size", "FieldType":"Sync", "Type":"Float", "Range":[0.1, 128.0]},
{"Name":"Size", "FieldType":"Sync", "Type":"Float", "Range":[0.1, 128.0], "Value": 64.0},
{"Name":"HorizontalAlign", "FieldType":"Sync", "Type":"TextHorizontalAlignment"},
{"Name":"HorizontalAlign", "FieldType":"Sync", "Type":"TextHorizontalAlignment", "Value": "Left"},
{"Name":"VerticalAlign", "FieldType":"Sync", "Type":"TextVerticalAlignment"},
{"Name":"VerticalAlign", "FieldType":"Sync", "Type":"TextVerticalAlignment", "Value": "Top"},
{"Name":"AlignmentMode", "FieldType":"Sync", "Type":"Elements.Assets.AlignmentMode"},
{"Name":"AlignmentMode", "FieldType":"Sync", "Type":"Elements.Assets.AlignmentMode", "Value": "Geometric"},
{"Name":"Color", "FieldType":"Sync", "Type":"ColorX"},
{"Name":"Color", "FieldType":"Sync", "Type":"ColorX", "Value": [0,0,0,1,"sRGB"]},
{"Name":"Materials", "FieldType":"SyncAssetList", "Type":"Material"},
{"Name":"Materials", "FieldType":"SyncAssetList", "Type":"Material"},
{"Name":"LineHeight", "FieldType":"Sync", "Type":"Float", "Range":[0.25, 2.0]},
{"Name":"LineHeight", "FieldType":"Sync", "Type":"Float", "Range":[0.25, 2.0], "Value": 0.8},
{"Name":"MaskPattern", "FieldType":"Sync", "Type":"String"},
{"Name":"MaskPattern", "FieldType":"Sync", "Type":"String", "Value": null},
{"Name":"HorizontalAutoSize", "FieldType":"Sync", "Type":"Bool"},
{"Name":"HorizontalAutoSize", "FieldType":"Sync", "Type":"Bool", "Value": false},
{"Name":"VerticalAutoSize", "FieldType":"Sync", "Type":"Bool"},
{"Name":"VerticalAutoSize", "FieldType":"Sync", "Type":"Bool", "Value": false},
{"Name":"AutoSizeMin", "FieldType":"Sync", "Type":"Float"},
{"Name":"AutoSizeMin", "FieldType":"Sync", "Type":"Float", "Value": 8.0},
{"Name":"AutoSizeMax", "FieldType":"Sync", "Type":"Float"},
{"Name":"AutoSizeMax", "FieldType":"Sync", "Type":"Float", "Value": 64.0},
{"Name":"CaretPosition", "FieldType":"Sync", "Type":"Int"},
{"Name":"CaretPosition", "FieldType":"Sync", "Type":"Int", "Value": -1},
{"Name":"SelectionStart", "FieldType":"Sync", "Type":"Int"},
{"Name":"SelectionStart", "FieldType":"Sync", "Type":"Int", "Value": -1},
{"Name":"CaretColor", "FieldType":"Sync", "Type":"ColorX"},
{"Name":"CaretColor", "FieldType":"Sync", "Type":"ColorX", "Value": [0,0,0,0,"Linear"]},
{"Name":"SelectionColor", "FieldType":"Sync", "Type":"ColorX"},
{"Name":"SelectionColor", "FieldType":"Sync", "Type":"ColorX", "Value": [0,0,0,0,"Linear"]},
{"Name":"InteractionTarget", "FieldType":"Sync", "Type":"Bool"},
{"Name":"InteractionTarget", "FieldType":"Sync", "Type":"Bool", "Value": true},
{"Name":"_legacyFontMaterial", "FieldType":"SyncRef", "Type":"FontMaterial"},
{"Name":"_legacyFontMaterial", "FieldType":"SyncRef", "Type":"FontMaterial", "Value": null},
{"Name":"_legacyAlign", "FieldType":"Sync", "Type":"Alignment"}
{"Name":"_legacyAlign", "FieldType":"Sync", "Type":"Alignment", "Value": "TopLeft"}
]
]
|}}
|}}

Revision as of 15:36, 11 February 2024

Lua error in Module:Test2 at line 162: attempt to get length of field 'Value' (a nil value).