I begin to create my own inventory,but something strange。。。

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

classfly
Just popping in
Just popping in
Posts: 17
Joined: Mon Feb 27, 2012 08:36

I begin to create my own inventory,but something strange。。。

Postby classfly » Mon Mar 26, 2012 14:50

Hi,i try to create the inventory for items.I divided my items in my game into three parts:amours,medicine and fishes(that may be werid).I create Master as the root and set it "DefaultWindow".And ButtomFrame is one of the childwindow of Master which is also set as "DefaultWindow"(In order to make the childwindow of BottomFrame react to the mouse event).And i put BottomFrame to the right and it takes a quarter of the screen.In BottomFrame i got three defaultwindows:amour,medicine and something else.And all of the three windows are streched as what BottomFrame does.Each of the three defaultwindows has some staticimages to obtain some items.But when i try to load the layout,a strange thing pops out:when i click the windows everything goes ok,but when i click the abesence space of the windows and then try to come back to a imagebutton,the imagebutton seems nothing has happened at all!Maybe i misunderstand the meaning of MousePassThroughEnabled.Sorry for my poor English.My environment is Ogre:1.7.3 CEGUI:0.7.5

classfly
Just popping in
Just popping in
Posts: 17
Joined: Mon Feb 27, 2012 08:36

Re: I begin to create my own inventory,but something strange

Postby classfly » Mon Mar 26, 2012 14:59

Here are my .layout

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<GUILayout >
    <Window Type="DefaultWindow" Name="Master" >
        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
        <Window Type="DefaultWindow" Name="Blocker" >
            <Property Name="UnifiedAreaRect" Value="{{1,-390},{0,0},{1,0},{0,768}}" />
        </Window>
        <Window Type="DefaultWindow" Name="BottomFrame" >
            <Property Name="UnifiedAreaRect" Value="{{1,-390},{0,0},{1,0},{0,768}}" />
            <Property Name="MousePassThroughEnabled" Value="True" />
           <Window Type="DefaultWindow" Name="SlotsEquipment" >
                <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
                <Property Name="MousePassThroughEnabled" Value="True" />
                <Window Type="GuiLook/StaticImage" Name="Slot1" >
                    <Property Name="UnifiedAreaRect" Value="{{0,78},{0,511},{0,110},{0,559}}" />
                </Window>
                <Window Type="GuiLook/StaticImage" Name="Slot2" >
                    <Property Name="UnifiedAreaRect" Value="{{0,118},{0,511},{0,150},{0,559}}" />
                </Window>
                <Window Type="GuiLook/StaticImage" Name="Slot3" >
                    <Property Name="UnifiedAreaRect" Value="{{0,158},{0,511},{0,190},{0,559}}" />
                </Window>
                <Window Type="GuiLook/StaticImage" Name="Slot4" >
                    <Property Name="UnifiedAreaRect" Value="{{0,198},{0,511},{0,230},{0,559}}" />
                </Window>
           </Window>
      </Window>
</Window>

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: I begin to create my own inventory,but something strange

Postby CrazyEddie » Tue Mar 27, 2012 11:21

I'm not reading this shit. Learn what paragraphs are. Also, read that big red text up there.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests