Dawn/assets/games/liminal/prefabs/VNTextbox.xml

48 lines
1.3 KiB
XML

<prefab name="VNTextbox" type="">
<asset type="truetype" name="font_arial" />
<asset type="texture" name="texture_border" />
<UIBorder
ref="border"
borderSize="16, 16"
alignment="50, 0, 0, 0"
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
ref="border"
alignX="UI_COMPONENT_ALIGN_END"
alignY="UI_COMPONENT_ALIGN_STRETCH"
texture="texture_border"
/>
<child>
<UIRichTextLabel
alignment="0, 0, 65, 192"
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignX="UI_COMPONENT_ALIGN_MIDDLE"
alignY="UI_COMPONENT_ALIGN_MIDDLE"
ref="uiLabel"
>
<font font="font_arial" size="32">
<font>Hello</font><font style="bold"> World
</font>
<font color="red">How are you today?
</font>
<font>I'm doing great, thanks!</font>
<font>
Thanks, me too!
Glad to hear it!
I'm glad to hear it too!
What a great day!
It sure is!
I'm glad we're friends!
Me too!
What are you up to?
Nothing much, just hanging out.
Cool, me too!
</font>
</font>
</UIRichTextLabel>
</child>
<VNTextboxScroller ref="textboxScroller" label="uiLabel" visibleLines="6" />
</prefab>