I begin to create my own inventory,but something strange。。。
Moderators: CEGUI MVP, CEGUI Team
I begin to create my own inventory,but something strange。。。
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
Re: I begin to create my own inventory,but something strange
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>
- 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
I'm not reading this shit. Learn what paragraphs are. Also, read that big red text up there.
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 5 guests