Sorry for horrible english, I try show schematic:




could be fixed changing source CEGUITooltip.cpp :
Code: Select all
void Tooltip::setTargetWindow(Window* wnd)
{
if (!wnd)
{
d_target = wnd;
}
else if (wnd != this)
{
if (d_target != wnd)
{
d_target = wnd; //add this
hide(); //add this
System::getSingleton().getGUISheet()->addChildWindow(this);
// d_target = wnd; comment this
}
// set text to that of the tooltip text of the target
setText(wnd->getTooltipText());
// set size and potition of the tooltip window.
sizeSelf();
positionSelf();
if (d_target != NULL) show(); //add this
}
resetTimer();
}