Module:Test2/doc: Difference between revisions

From Resonite Wiki
No edit summary
No edit summary
Line 1: Line 1:
<h2>The [[Component:Text|Text]] Component</h2>
{{#Invoke:Test2|GenerateUI
{{#Invoke:Test2|GenerateUI
|Name=Text
|Name=Text
Line 29: Line 31:
{"Name":"_legacyFontMaterial", "FieldType":"SyncRef", "Type":"FontMaterial", "Value": null},
{"Name":"_legacyFontMaterial", "FieldType":"SyncRef", "Type":"FontMaterial", "Value": null},
{"Name":"_legacyAlign", "FieldType":"Sync", "Type":"Alignment", "Value": "TopLeft"}
{"Name":"_legacyAlign", "FieldType":"Sync", "Type":"Alignment", "Value": "TopLeft"}
]
|}}
<h2>The [[Component:RelativePositioner|RelativePositioner]] Component</h2>
{{#Invoke:Test2|GenerateUI
|Name=RelativePositioner
|Fields=[
{"Name":"persistent", "FieldType":"Sync", "Type":"Bool", "Value": true},
{"Name":"UpdateOrder", "FieldType":"Sync", "Type":"Int", "Value": 0},
{"Name":"Enabled", "FieldType":"Sync", "Type":"Bool", "Value": true},
{"Name":"Reference", "FieldType":"SyncRef", "Type":"Slot", "Value": null},
{"Name":"ReferenceBoundsSpace", "FieldType": "SyncObject", "Type": "RootSpace", "Fields": [
  {"Name": "LocalSpace", "FieldType":"SyncRef", "Type":"Slot", "Value": null},
  {"Name": "UseParentSpace", "FieldType":"Sync", "Type":"Bool", "Value": false},
  {"Name": "Default", "FieldType":"Sync", "Type":"DefaultSpace", "Value": "WorldRoot"},
  {"Name": "OverrideRootSpace", "FieldType":"SyncRef", "Type":"RootSpace", "Value": null}, <!-- it's actually a RelayRef, but it looks the same -->
  {"Name": "Use Global Space", "FieldType": "DelegateButton"},
  {"Name": "Use Local Space", "FieldType": "DelegateButton"},
  {"Name": "Use Parent Space", "FieldType": "DelegateButton"}
]},
{"Name":"ReferenceAnchor", "FieldType":"Sync", "Type":"Float3", "Value": [0,0,0]},
{"Name":"ReferenceOffset", "FieldType":"Sync", "Type":"Float3", "Value": [0,0,0]},
{"Name":"DestroyAfterDone", "FieldType":"Sync", "Type":"Bool", "Value": false},
{"Name": "_target", "FieldType":"SyncRef", "Type":"float3", "Value": null} <!-- it's actually a FieldDrive, but it looks the same -->
]
]
|}}
|}}

Revision as of 16:37, 11 February 2024

The Text Component

Text
Duplicate
Destroy
persistent:
Sync<Bool>
UpdateOrder:
Sync<Int>
Enabled:
Sync<Bool>
Font:
FontChain on Root (ID16F00)
Content:
null
ParseRichText:
Sync<Bool>
NullContent:
null
Size:
Sync<Float>
HorizontalAlign:
Sync<TextHorizontalAlignment>
VerticalAlign:
Sync<TextVerticalAlignment>
AlignmentMode:
Sync<Elements.Assets.AlignmentMode>
Color:
Sync<ColorX>
Materials (list):
0:
UI_TextUnlitMaterial on Root (ID1A600)
X
Add
LineHeight:
Sync<Float>
MaskPattern:
null
HorizontalAutoSize:
Sync<Bool>
VerticalAutoSize:
Sync<Bool>
AutoSizeMin:
Sync<Float>
AutoSizeMax:
Sync<Float>
CaretPosition:
Sync<Int>
SelectionStart:
Sync<Int>
CaretColor:
Sync<ColorX>
SelectionColor:
Sync<ColorX>
InteractionTarget:
Sync<Bool>
_legacyFontMaterial:
null
_legacyAlign:
Sync<Alignment>

The RelativePositioner Component

RelativePositioner
Duplicate
Destroy
persistent:
Sync<Bool>
UpdateOrder:
Sync<Int>
Enabled:
Sync<Bool>
Reference:
null
ReferenceBoundsSpace:
LocalSpace:
null
UseParentSpace:
Sync<Bool>
Default:
Sync<DefaultSpace>
OverrideRootSpace:
null
Use Global Space
Use Local Space
Use Parent Space
ReferenceAnchor:
Sync<Float3>
ReferenceOffset:
Sync<Float3>
DestroyAfterDone:
Sync<Bool>
_target:
null