I'm posting this time because of a bug encountered on OpenDungeons when using the v0-8 branch of the bitbucket repository:
Here is the whole issue: https://github.com/OpenDungeons/OpenDungeons/issues/965
Basically, our code is working fine when using cegui 0.8.4, but when using cegui v0-8 from bitbucket and trying to load a FrameWindow , the following error is displayed:
Code: Select all
(Error) CEGUI::UnknownObjectException in function 'CEGUI::NamedElement* CEGUI::NamedElement::getChildElement(const CEGUI::String&) const' (~/src/cegui/cegui/src/NamedElement.cpp:150) : The Element object referenced by '__auto_titlebar__' is not attached to Element at 'SettingsWindow'.
Link to the full cegui.log: https://gist.github.com/t4im/834e72d0112c6351a0e0
Also, here is our lnf config for framewindows:
Code: Select all
<WidgetLook name="OD/FrameWindow">
<PropertyLinkDefinition initialValue="FFFFFFFF" name="CaptionColour" targetProperty="CaptionColour" widget="__auto_titlebar__" />
<PropertyLinkDefinition name="TitlebarFont" targetProperty="Font" widget="__auto_titlebar__" />
<Property name="NSSizingCursorImage" value="OpenDungeonsSkin/MouseNoSoCursor" />
<Property name="EWSizingCursorImage" value="OpenDungeonsSkin/MouseEsWeCursor" />
<Property name="NWSESizingCursorImage" value="OpenDungeonsSkin/MouseNwSeCursor" />
<Property name="NESWSizingCursorImage" value="OpenDungeonsSkin/MouseNeSwCursor" />
<NamedArea name="ClientWithTitleWithFrame">
<Area />
</NamedArea>
<NamedArea name="ClientWithTitleNoFrame">
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="BottomEdge"><WidgetDim dimension="BottomEdge" /></Dim>
</Area>
</NamedArea>
<NamedArea name="ClientNoTitleWithFrame">
<Area>
<Dim type="LeftEdge"><ImageDim dimension="Width" name="OpenDungeonsSkin/WindowTopLeft" /></Dim>
<Dim type="TopEdge"><ImageDim dimension="Height" name="OpenDungeonsSkin/WindowTopEdge" /></Dim>
<Dim type="RightEdge">
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="RightEdge" />
<ImageDim dimension="Width" name="OpenDungeonsSkin/WindowTopRight" />
</OperatorDim>
</Dim>
<Dim type="BottomEdge">
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="BottomEdge" />
<ImageDim dimension="Height" name="OpenDungeonsSkin/WindowBottomEdge" />
</OperatorDim>
</Dim>
</Area>
</NamedArea>
<NamedArea name="ClientNoTitleNoFrame">
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height"><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
</NamedArea>
<Child nameSuffix="__auto_titlebar__" type="OD/Titlebar">
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height">
<FontDim padding="12" type="LineSpacing" />
</Dim>
</Area>
<Property name="AlwaysOnTop" value="False" />
<Property name="WantsMultiClickEvents" value="False" />
</Child>
<Child nameSuffix="__auto_closebutton__" type="OD/SystemButton">
<Area>
<Dim type="LeftEdge">
<OperatorDim op="Subtract"><UnifiedDim scale="1" type="LeftEdge" />
<OperatorDim op="Add">
<ImageDim dimension="Width" name="OpenDungeonsSkin/SysAreaRight" />
<ImageDim dimension="Width" name="OpenDungeonsSkin/SysAreaMiddle" />
</OperatorDim>
</OperatorDim>
</Dim>
<Dim type="TopEdge">
<OperatorDim op="Multiply">
<AbsoluteDim value="0.5" />
<OperatorDim op="Subtract">
<WidgetDim dimension="Height" widget="__auto_titlebar__" />
<ImageDim dimension="Width" name="OpenDungeonsSkin/CloseButtonNormal" />
</OperatorDim>
</OperatorDim>
</Dim>
<Dim type="Width"><ImageDim dimension="Width" name="OpenDungeonsSkin/CloseButtonNormal" /></Dim>
<Dim type="Height"><ImageDim dimension="Width" name="OpenDungeonsSkin/CloseButtonNormal" /></Dim>
</Area>
<Property name="AlwaysOnTop" value="True" />
<Property name="NormalImage" value="OpenDungeonsSkin/CloseButtonNormal" />
<Property name="HoverImage" value="OpenDungeonsSkin/CloseButtonHover" />
<Property name="PushedImage" value="OpenDungeonsSkin/CloseButtonPressed" />
</Child>
<ImagerySection name="withtitle_frame">
<FrameComponent>
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge">
<WidgetDim dimension="BottomEdge" widget="__auto_titlebar__" />
<UnifiedDim offset="0" type="Height" />
</Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
<Image component="TopEdge" name="OpenDungeonsSkin/WindowTopEdge" />
<Image component="TopLeftCorner" name="OpenDungeonsSkin/WindowTopLeft" />
<Image component="TopRightCorner" name="OpenDungeonsSkin/WindowTopRight" />
<Image component="BottomLeftCorner" name="OpenDungeonsSkin/WindowBottomLeft" />
<Image component="BottomRightCorner" name="OpenDungeonsSkin/WindowBottomRight" />
<Image component="LeftEdge" name="OpenDungeonsSkin/WindowLeftEdge" />
<Image component="RightEdge" name="OpenDungeonsSkin/WindowRightEdge" />
<Image component="BottomEdge" name="OpenDungeonsSkin/WindowBottomEdge" />
<Image component="Background" name="OpenDungeonsSkin/ClientBrush" />
<VertFormat type="Tiled" />
<HorzFormat type="Tiled" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="notitle_frame">
<FrameComponent>
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height"><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image component="TopLeftCorner" name="OpenDungeonsSkin/WindowTopLeft" />
<Image component="TopRightCorner" name="OpenDungeonsSkin/WindowTopRight" />
<Image component="BottomLeftCorner" name="OpenDungeonsSkin/WindowBottomLeft" />
<Image component="BottomRightCorner" name="OpenDungeonsSkin/WindowBottomRight" />
<Image component="LeftEdge" name="OpenDungeonsSkin/WindowLeftEdge" />
<Image component="RightEdge" name="OpenDungeonsSkin/WindowRightEdge" />
<Image component="BottomEdge" name="OpenDungeonsSkin/WindowBottomEdge" />
<Image component="Background" name="OpenDungeonsSkin/ClientBrush" />
<VertFormat type="Tiled" />
<HorzFormat type="Tiled" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="withtitle_noframe_client_area">
<ImageryComponent>
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge">
<WidgetDim dimension="BottomEdge" widget="__auto_titlebar__" />
<UnifiedDim offset="0" type="Height" />
</Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
<Image name="OpenDungeonsSkin/ClientBrush" />
<VertFormat type="Tiled" />
<HorzFormat type="Tiled" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="notitle_noframe_client_area">
<ImageryComponent>
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height"><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image name="OpenDungeonsSkin/ClientBrush" />
<VertFormat type="Tiled" />
<HorzFormat type="Tiled" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="ActiveWithTitleWithFrame">
<Layer>
<Section section="withtitle_frame" />
</Layer>
</StateImagery>
<StateImagery name="InactiveWithTitleWithFrame">
<Layer>
<Section section="withtitle_frame" />
</Layer>
</StateImagery>
<StateImagery name="DisabledWithTitleWithFrame">
<Layer>
<Section section="withtitle_frame">
<Colours bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" topLeft="FF7F7F7F" topRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="ActiveWithTitleNoFrame">
<Layer>
<Section section="withtitle_noframe_client_area" />
</Layer>
</StateImagery>
<StateImagery name="InactiveWithTitleNoFrame">
<Layer>
<Section section="withtitle_noframe_client_area" />
</Layer>
</StateImagery>
<StateImagery name="DisabledWithTitleNoFrame">
<Layer>
<Section section="withtitle_noframe_client_area">
<Colours bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" topLeft="FF7F7F7F" topRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="ActiveNoTitleWithFrame">
<Layer>
<Section section="notitle_frame" />
</Layer>
</StateImagery>
<StateImagery name="InactiveNoTitleWithFrame">
<Layer>
<Section section="notitle_frame" />
</Layer>
</StateImagery>
<StateImagery name="DisabledNoTitleWithFrame">
<Layer>
<Section section="notitle_frame">
<Colours bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" topLeft="FF7F7F7F" topRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="ActiveNoTitleNoFrame">
<Layer>
<Section section="notitle_noframe_client_area" />
</Layer>
</StateImagery>
<StateImagery name="InactiveNoTitleNoFrame">
<Layer>
<Section section="notitle_noframe_client_area" />
</Layer>
</StateImagery>
<StateImagery name="DisabledNoTitleNoFrame">
<Layer>
<Section section="notitle_noframe_client_area">
<Colours bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" topLeft="FF7F7F7F" topRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
Any ideas of what I could be doing wrong with the development codebase of 0-8?
Best regards,
Bertram