Problem having two or more plugin/layer containers

  • Building on my last post about Parent-Child relationships and the new type="container" (Parent - Child with the new type="container" *SOLVED*), It seems that I'm not able to define two containers like this:

    Code
    <layer name="floor1" keep="true" type="container" width="1" height="1" >
    		<layer name="child1" keep="true" url="common/mappoint.png" align="center" x="50" y="50" />
    		<layer name="child2" keep="true" url="common/mappoint.png" align="center" x="150" y="50" />
    </layer>
    <layer name="floor2" keep="true" type="container" width="1" height="1" >
    		<layer name="child1" keep="true" url="common/mappoint.png" align="center" x="100" y="150" />
    		<layer name="child2" keep="true" url="common/mappoint.png" align="center" x="150" y="150" />
    </layer>

    The first one appears but not the second one. Why? *unsure*

    ––––•(-• zyON •-)•––––

  • Hmmm... it seems like you can't duplicate layer/plugin names. It makes sense.
    it should be like this:

    Code
    <layer name="floor1" keep="true" type="container" width="1" height="1" >
    		<layer name="child1" keep="true" url="common/mappoint.png" align="center" x="50" y="50" />
    		<layer name="child2" keep="true" url="common/mappoint.png" align="center" x="150" y="50" />
    </layer>
    <layer name="floor2" keep="true" type="container" width="1" height="1" >
    		<layer name="child3" keep="true" url="common/mappoint.png" align="center" x="100" y="150" />
    		<layer name="child4" keep="true" url="common/mappoint.png" align="center" x="150" y="150" />
    </layer>

    ––––•(-• zyON •-)•––––

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!