Prefab Generator Refactor
This commit is contained in:
@ -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"
|
||||
|
23
assets/games/liminal/scenes/scene-base.xml
Normal file
23
assets/games/liminal/scenes/scene-base.xml
Normal 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>
|
BIN
assets/games/liminal/textures/texture_test.png
Normal file
BIN
assets/games/liminal/textures/texture_test.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user