Prob: Text Layer allways on top

Human Bug

01-07-2008 00:34:25

Hello i have problem since i updated on RC2.2.
With 2.2 all kind of text ist on top even if is overlaped with an other Widget.

Is it a Bug or a Feature??
when will it be fixed or should i downdate?


Best Bug

my.name

01-07-2008 09:33:01

it is a feature.

use "Overlapped" layer.

for example:

MyGUI::ButtonPtr button = mGUI->createWidget<MyGUI::Button>("Button", MyGUI::IntCoord(100, 100, 340, 26), MyGUI::ALIGN_DEFAULT, "Overlapped");

in core.layer:

<Layer name="Overlapped" overlapped="true" peek="true"/>

Human Bug

04-07-2008 20:10:55

sorry but that not work

Altren

04-07-2008 20:43:48

Show me, how you create widgets.

Human Bug

05-07-2008 17:09:05

it´s the short version
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout">
<Widget type="StaticImage" skin="StaticImage" position_real="0 0 1 1" layer="Back" name="Root">
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++ EditorTopWindow ++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<Widget type="StaticImage" skin="StaticImage" position_real="0 0.04 0.75 0.5" layer="Back" name="topwindow">
<Property key="Image_Texture" value="window.dds"/>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++ BlockStyleTopWindow ++++++++++++++++++++++++++++++++++++++++++++++++++-->
<Widget type="StaticImage" skin="StaticImage" position_real="0 0 1 1" layer="Back" name="blockstyle_window">
<Property key="Widget_Show" value="false"/>
<Widget type="StaticText" skin="StaticText" position_real="0.0442708321 0.0662983432 0.939583328 0.0580110513" layer="Main" name="blockstyle_caption">
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_FontHeight" value="20"/>
<Property key="Widget_Caption" value="settings / blockstyle /"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
</Widget>
<Widget type="StaticImage" skin="StaticImage" position_real="0.0533854179 0.179558009 0.416666657 0.638121545" layer="Main" name="blockstyle_levelpic">
</Widget>
<Widget type="List" skin="List" position_real="0.536458313 0.168508291 0.419270843 0.65193373" layer="Main" name="blockstyle_list"/>
<Widget type="Button" skin="DropDownButton" position_real="0.173177078 0.9 0.186197922 0.09" layer="Main" name="blockstyle_ok">
<Property key="Widget_AlignText" value="ALIGN_CENTER"/>
<Property key="Widget_Caption" value="ok"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_FontHeight" value="20"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
</Widget>
<Widget type="Button" skin="DropDownButton" position_real="0.604166687 0.9 0.2265625 0.09" layer="Main" name="blockstyle_cancel">
<Property key="Widget_AlignText" value="ALIGN_CENTER"/>
<Property key="Widget_Caption" value="cancel"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_FontHeight" value="20"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
</Widget>
</Widget>
</Widget>

<!--++++++++++++++++++++++++++++++++++++++++++++++++++ fileDropMenu ++++++++++++++++++++++++++++++++++++++++++++++++++-->
<Widget type="StaticImage" skin="StaticImage" position_real="0.005 0.04 0.20 0.315" layer="Popup" name="fileDropMenu">
<Property key="Image_Texture" value="box.dds"/>
<Property key="Widget_Show" value="false"/>
<Widget type="Button" skin="DropDownButton" position_real="0.02 0 0.96 0.19" layer="Popup" name="new">
<Property key="Widget_Caption" value="new"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_AlignText" value="ALIGN_LEFT ALIGN_VCENTER"/>
<Property key="Widget_FontHeight" value="25"/>
</Widget>
<Widget type="Button" skin="DropDownButton" position_real="0.02 0.19 0.96 0.19" layer="Popup" name="load">
<Property key="Widget_Caption" value="load"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_AlignText" value="ALIGN_LEFT ALIGN_VCENTER"/>
<Property key="Widget_FontHeight" value="25"/>
</Widget>
<Widget type="Button" skin="DropDownButton" position_real="0.02 0.38 0.96 0.19" layer="Popup" name="save">
<Property key="Widget_Caption" value="save"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_AlignText" value="ALIGN_LEFT ALIGN_VCENTER"/>
<Property key="Widget_FontHeight" value="25"/>
</Widget>
<Widget type="StaticImage" skin="StaticImage" position_real="0 0.583 4 0.0075" layer="Popup" name="line1">
<Property key="Image_Texture" value="black.dds"/>
</Widget>
<Widget type="Button" skin="DropDownButton" position_real="0.02 0.62 0.96 0.19" layer="Popup" name="mainmenu">
<Property key="Widget_Caption" value="Mainmenu"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_AlignText" value="ALIGN_LEFT ALIGN_VCENTER"/>
<Property key="Widget_FontHeight" value="25"/>
</Widget>
<Widget type="Button" skin="DropDownButton" position_real="0.02 0.81 0.96 0.19" layer="Popup" name="quit">
<Property key="Widget_Caption" value="quit"/>
<Property key="Widget_FontName" value="BlockBall.18"/>
<Property key="Widget_Colour" value="#555555"/>
<Property key="Widget_AlignText" value="ALIGN_LEFT ALIGN_VCENTER"/>
<Property key="Widget_FontHeight" value="25"/>
</Widget>
</Widget>
</Widget>
</MyGUI>


My "blockstyle_caption"(Main-Layer) is on top, although my "fileDropMenu"(Popup-Layer) should over.

my.name

05-07-2008 19:09:39

attribute 'layer' only for root widget