Here's part of the code;
When I set default tooltip
Code: Select all
CEGUI::System::getSingleton().getDefaultGUIContext().setDefaultTooltipType("GlossySerpent/Tooltip");
When I render the tooltip, forging a setVisible(true) to show it! (Fix??)
Code: Select all
CEGUI::System::getSingleton().getDefaultGUIContext().getDefaultTooltipObject()
->update(Time::getSingleton().getElapsedTimef());
CEGUI::System::getSingleton().renderAllGUIContexts();
LookNFeel of Tooltip's GlossySerpent
Code: Select all
<!--
***************************************************
GlossySerpent/Tooltip
(based on the Taharez Look)
***************************************************
-->
<WidgetLook name="GlossySerpent/Tooltip">
<NamedArea name="TextArea">
<Area>
<Dim type="LeftEdge" ><ImageDim name="GlossySerpent/TooltipLeftEdge" dimension="Width" /></Dim>
<Dim type="TopEdge" ><ImageDim name="GlossySerpent/TooltipTopEdge" dimension="Height" /></Dim>
<Dim type="RightEdge" >
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="RightEdge" />
<ImageDim name="GlossySerpent/TooltipRightEdge" dimension="Width" />
</OperatorDim>
</Dim>
<Dim type="BottomEdge" >
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="BottomEdge" />
<ImageDim name="GlossySerpent/TooltipBottomEdge" dimension="Height" />
</OperatorDim>
</Dim>
</Area>
</NamedArea>
<ImagerySection name="main">
<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="GlossySerpent/TooltipTopLeft" />
<Image component="TopRightCorner" name="GlossySerpent/TooltipTopRight" />
<Image component="BottomLeftCorner" name="GlossySerpent/TooltipBottomLeft" />
<Image component="BottomRightCorner" name="GlossySerpent/TooltipBottomRight" />
<Image component="LeftEdge" name="GlossySerpent/TooltipLeftEdge" />
<Image component="RightEdge" name="GlossySerpent/TooltipRightEdge" />
<Image component="TopEdge" name="GlossySerpent/TooltipTopEdge" />
<Image component="BottomEdge" name="GlossySerpent/TooltipBottomEdge" />
<Image component="Background" name="GlossySerpent/TooltipMiddle" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="label">
<TextComponent>
<Area>
<Dim type="LeftEdge" ><ImageDim name="GlossySerpent/TooltipLeftEdge" dimension="Width" /></Dim>
<Dim type="TopEdge" ><ImageDim name="GlossySerpent/TooltipTopEdge" dimension="Height" /></Dim>
<Dim type="RightEdge" >
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="RightEdge" />
<ImageDim name="GlossySerpent/TooltipRightEdge" dimension="Width" />
</OperatorDim>
</Dim>
<Dim type="BottomEdge" >
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="BottomEdge" />
<ImageDim name="GlossySerpent/TooltipBottomEdge" dimension="Height" />
</OperatorDim>
</Dim>
</Area>
<Colours topLeft="FFFFE6DA" topRight="FFFFE6DA" bottomLeft="FFFFFBFA" bottomRight="FFFFFBFA" />
<VertFormat type="CentreAligned" />
<HorzFormat type="CentreAligned" />
</TextComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="main">
<Colours topLeft="BFCDCDCD" topRight="BFCDCDCD" bottomLeft="BFCDCDCD" bottomRight="BFCDCDCD" />
</Section>
<Section section="label" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="main">
<Colours topLeft="BFEAEAEA" topRight="BFEAEAEA" bottomLeft="BFEAEAEA" bottomRight="BFEAEAEA" />
</Section>
<Section section="label" />
</Layer>
</StateImagery>
<AnimationDefinition name="FadeIn" duration="0.33" replayMode="once">
<Affector property="Alpha" interpolator="float">
<KeyFrame position="0" sourceProperty="Alpha" />
<KeyFrame position="0.33" value="1" progression="linear" />
</Affector>
<Subscription event="TooltipActive" action="Start" />
</AnimationDefinition>
<AnimationDefinition name="FadeOut" duration="0.33" replayMode="once">
<Affector property="Alpha" interpolator="float">
<KeyFrame position="0" sourceProperty="Alpha" />
<KeyFrame position="0.33" value="0" progression="linear" />
</Affector>
<Affector property="Visible" interpolator="bool">
<KeyFrame position="0" sourceProperty="Visible" />
<KeyFrame position="0.33" value="false" progression="discrete" />
</Affector>
<Subscription event="TooltipInactive" action="Start" />
</AnimationDefinition>
</WidgetLook>
I'm using v0.8.7. I used 0.8.2 version and it doesn't draw it too.