Dawn/assets/games/liminal/scenes/SceneBase.xml

42 lines
1.1 KiB
XML

<scene name="SceneBase">
<item lookAt="10, 10, 10, 0, 0, 0">
<Camera ref="backCamera" />
</item>
<item ref="eth" prefab="prefabs/EthPrefab" />
<item lookAt="0, 0, 5, 0, 0, 0" >
<!-- <item lookAt="5, 5, 5, 0, 0, 0" > -->
<Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" />
<!-- <Camera ref="camera" /> -->
<CameraTexture ref="camTexture" />
</item>
<item>
<UICanvas ref="canvas" camera="backCamera" />
<item ref="textbox" prefab="prefabs/VNTextbox" />
<item position="100, 0, 0">
<UIImage
alignment="0, 0, 50, 0"
alignX="UI_COMPONENT_ALIGN_START"
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT"
alignY="UI_COMPONENT_ALIGN_STRETCH"
ref="image"
texture="camTexture->renderTarget.getTexture()"
/>
</item>
</item>
<item ref="vnItem">
<VNManager ref="vnManager" />
</item>
<code type="init">
useEvent([&amp;]{
assertNotNull(camTexture);
assertNotNull(image);
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());
}, image->eventAlignmentUpdated);
</code>
</scene>