<WorldInfo title='TextStringPrototype.x3d'/>
<ProtoDeclare name='TextString'>
<ProtoInterface>
<field name='offset' type='SFVec3f' value='0 0 0' accessType='inputOutput'/>
<field name='string' type='MFString' accessType='inputOutput'/>
<field name='size' type='SFFloat' value='1.0' accessType='initializeOnly'/>
<field name='color' type='SFColor' value='0.2 0.6 1' accessType='inputOutput'/>
<field name='justify' type='MFString' value='"MIDDLE" "MIDDLE"' accessType='initializeOnly'/>
<field name='style' type='SFString' value='PLAIN' accessType='initializeOnly'/>
<field name='family' type='MFString' value='"SANS" "SERIF"' accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform>
<IS>
<connect nodeField='translation' protoField='offset'/>
</IS>
<Shape>
<Appearance>
<Material>
<IS>
<connect nodeField='diffuseColor' protoField='color'/>
</IS>
</Material>
</Appearance>
<Text>
<IS>
<connect nodeField='string' protoField='string'/>
</IS>
<FontStyle>
<IS>
<connect nodeField='family' protoField='family'/>
<connect nodeField='justify' protoField='justify'/>
<connect nodeField='size' protoField='size'/>
<connect nodeField='style' protoField='style'/>
</IS>
</FontStyle>
</Text>
</Shape>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='TextString' DEF='MyTextStringInstance'>
<fieldValue name='color' value='0.3 0.7 1'/>
<fieldValue name='string' value='"This example TextString node" "creates a prototype instance" "that combines functionality" "of Text and FontStyle nodes"'/>
<fieldValue name='size' value='0.8'/>
<fieldValue name='style' value='BOLD'/>
</ProtoInstance>