Scene change support

This commit is contained in:
2023-06-30 07:33:22 -07:00
parent 282d999603
commit 29048234a7
32 changed files with 236 additions and 135 deletions

View File

@ -4,4 +4,5 @@
# https://opensource.org/licenses/MIT
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/EthPrefab.xml)
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextbox.xml)
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextbox.xml)
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextboxMonologue.xml)

View File

@ -3,7 +3,6 @@
<asset type="texture" name="texture_border" />
<UIBorder
ref="border"
borderSize="16, 16"
alignment="50, 0, 0, 0"
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"

View File

@ -0,0 +1,28 @@
<prefab name="VNTextboxMonologue" type="">
<asset type="truetype" name="font_main" />
<UIEmpty
ref="container"
alignment="20, 20, 20, 20"
alignUnitTop="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignUnitBottom="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignX="UI_COMPONENT_ALIGN_STRETCH"
alignY="UI_COMPONENT_ALIGN_STRETCH"
/>
<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"
>
</UIRichTextLabel>
</child>
<VNTextboxScroller ref="textboxScroller" label="uiLabel" visibleLines="6" />
</prefab>