User Tools

Site Tools


pointlayout

PointLayout

The PointLayout positions the objects of a container based on a user defined list of xy coordinates.

Elements positioned at specific points in a point layout.
PointLayout screenshot
<TouchContainer x="500" y="20">
    <Image src="images/plane.jpg" scale=".3"/>
    <Image src="images/plane.jpg" scale=".3"/>
    <Image src="images/plane.jpg" scale=".3"/>
    <Image src="images/plane.jpg" scale=".3"/>
    <Image src="images/plane.jpg" scale=".3"/>
    <Image src="images/plane.jpg" scale=".3"/>
    <Layout classRef="PointLayout" points="10,400,200,250,450,350,400,400,523" tween="true" tweenTime="1500"/>   
    <!--The points list does not need to specify a coordinate for each child. Unspecified coordinates will remain 0.-->                  
</TouchContainer>
pointlayout.txt · Last modified: 2015/09/18 16:47 by glass