Added code support, not great but hey it works
This commit is contained in:
@ -5,4 +5,18 @@
|
||||
<QuadMeshHost />
|
||||
<SimpleBillboardedMaterial texture="texture_eth" />
|
||||
<TiledSprite tile="0" ref="tiledSprite" sizeType="TILED_SPRITE_SIZE_TYPE_WIDTH_RATIO" />
|
||||
|
||||
<code type="properties">
|
||||
TilesetGrid grid;
|
||||
</code>
|
||||
|
||||
<code type="init">
|
||||
this->grid = TilesetGrid(
|
||||
1, 13,
|
||||
741, 10270,
|
||||
0, 0,
|
||||
0, 0
|
||||
);
|
||||
tiledSprite->tileset = &grid;
|
||||
</code>
|
||||
</prefab>
|
@ -4,13 +4,13 @@
|
||||
</item>
|
||||
|
||||
<item ref="eth" prefab="prefabs/EthPrefab" />
|
||||
<item ref="craig" prefab="prefabs/SimpleSpinningCubePrefab" />
|
||||
<!-- <item ref="craig" prefab="prefabs/SimpleSpinningCubePrefab" />
|
||||
<item ref="bg" prefab="prefabs/SimpleSpinningCubePrefab" />
|
||||
<item ref="square" prefab="prefabs/SimpleSpinningCubePrefab" />
|
||||
<item ref="square" prefab="prefabs/SimpleSpinningCubePrefab" /> -->
|
||||
|
||||
<item lookAt="0, 0, 5, 0, 0, 0" >
|
||||
<Camera fov="0.436332" ref="cameraNew" />
|
||||
<CameraTexture />
|
||||
<item lookAt="5, 5, 5, 0, 0, 0" >
|
||||
<Camera fov="0.436332" />
|
||||
<CameraTexture ref="camTexture" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
@ -24,7 +24,16 @@
|
||||
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignY="UI_COMPONENT_ALIGN_STRETCH"
|
||||
ref="image"
|
||||
texture="camTexture->renderTarget.getTexture()"
|
||||
/>
|
||||
</item>
|
||||
</item>
|
||||
|
||||
<code type="init">
|
||||
useEvent([&]{
|
||||
assertNotNull(camTexture);
|
||||
assertNotNull(image);
|
||||
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());
|
||||
}, image->eventAlignmentUpdated);
|
||||
</code>
|
||||
</scene>
|
@ -1,6 +1,6 @@
|
||||
<vnscene name="VNSceneTest" extend="scenes/SceneBase">
|
||||
<events>
|
||||
<position item="eth" x="0" y="0" z="5" />
|
||||
<position item="eth" x="0" y="0" z="0" />
|
||||
|
||||
<text character="eth">
|
||||
<string lang="en">Hi, I'm Ethereality.</string>
|
||||
|
Reference in New Issue
Block a user