haibo19981984
23-06-2010 13:02:28
my layout:
If I remove "<Widget type="Widget" skin="Default" position="500 350 500 400" layer="Back" name="myDefault1">",
there is no problem:window1 is over window2.
But my problem displays just as image "layerError.jpg".
You see the statictext in 2 windows are made to lap over each other.
Whether my script should not write so or not?
<Widget type="Widget" skin="Default" position="500 350 500 400" layer="Back" name="myDefault1">
<Property key="Widget_Visible" value="true"/>
<Widget type="StaticImage" skin="Game/StaticImage" position_real="0 0 1 1" align="Stretch" layer="Wallpaper" name="myWallPaper">
<Property key="Image_Texture" value="Login.png"/>
</Widget>
<Widget type="Window" skin="Game/WindowCX" position="0 0 208 144" layer="Main" name="window1">
<Property key="Widget_Caption" value="RoleProperty1"/>
<Widget type="Edit" skin="Edit" position="28 25 112 32" layer="Back" name="window1_1">
<Property key="Widget_Caption" value="Edit1"/>
</Widget>
<Widget type="Button" skin="Button" position="28 65 88 24" layer="Back" name="window1_2">
<Property key="Widget_Caption" value="Button1" />
</Widget>
</Widget>
<Widget type="Window" skin="Game/WindowCX" position="0 150 208 144" layer="Back" name="window2">
<Property key="Widget_Caption" value="RoleProperty2"/>
<Widget type="Edit" skin="Edit" position="28 25 112 32" layer="Back" name="window2_1">
<Property key="Widget_Caption" value="Edit2"/>
</Widget>
<Widget type="Button" skin="Button" position="28 65 88 24" layer="Back" name="window2_2">
<Property key="Widget_Caption" value="Button2" />
</Widget>
</Widget>
</Widget>
If I remove "<Widget type="Widget" skin="Default" position="500 350 500 400" layer="Back" name="myDefault1">",
there is no problem:window1 is over window2.
But my problem displays just as image "layerError.jpg".
You see the statictext in 2 windows are made to lap over each other.
Whether my script should not write so or not?