Prefab Generator Refactor

This commit is contained in:
2023-05-16 08:56:05 -07:00
parent a7aec06aec
commit bce6dbffa6
35 changed files with 734 additions and 270 deletions

View File

@ -1,5 +1,6 @@
<prefab name="VNTextbox" type="">
<asset type="truetype" name="font_main" />
<asset type="texture" name="texture_border" />
<UIBorder
ref="border"
@ -7,13 +8,14 @@
alignment="50, 0, 0, 0"
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
ref="border"
alignX="UI_COMPONENT_ALIGN_STRETCH"
alignX="UI_COMPONENT_ALIGN_END"
alignY="UI_COMPONENT_ALIGN_STRETCH"
texture="texture_border"
/>
<child>
<UILabel
text="This shows how I can now make UI elements align based on percentages of the screen."
text="This is the text box."
font="font_main"
fontSize="32"
alignment="16, 16, 0, 0"

View File

@ -0,0 +1,23 @@
<scene name="SceneBase">
<item ref="eth" prefab="preafbs/characters/EthPrefab" />
<item ref="camNew">
<Camera fov="0.436332" />
<CameraTexture />
</item>
<item ref="canvasItem">
<UICanvas ref="canvas" />
<item ref="textbox" prefab="prefabs/VNTextbox" />
<item>
<UIImage
alignment="0, 0, 50, 0"
alignX="UI_COMPONENT_ALIGN_START"
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENTAGE"
alignY="UI_COMPONENT_ALIGN_STRETCH"
ref="image"
/>
</item>
</item>
</scene>

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB