a auto fade window like tooltip[resolved]
Posted: Thu Nov 09, 2006 04:35
i notice that tooltip can auto fadein and fadeout.
for some reason, i need a window like this.
so i inherit a class from CEGUI::Window, and override updateSelf() method like Tooptip. and mark multi-window-state such as Active/FadeOut
then i create a window with it, like below
like System::setDefaultTooltip does below
but, nothing happen!
the system does not invoke my updateSelf implement.
is there something goes wrong?
for some reason, i need a window like this.
so i inherit a class from CEGUI::Window, and override updateSelf() method like Tooptip. and mark multi-window-state such as Active/FadeOut
then i create a window with it, like below
Code: Select all
MyOwnWindow* WindowPtr = static_cast<MyOwnWindow*>(m_WindowMgr->createWindow(WindowType, WindowName))
like System::setDefaultTooltip does below
Code: Select all
d_defaultTooltip = static_cast<Tooltip*>(WindowManager::getSingleton().createWindow(tooltipType, "CEGUI::System::default__auto_tooltip__"));
but, nothing happen!
the system does not invoke my updateSelf implement.
is there something goes wrong?