Question about setMouseCursor
Moderators: CEGUI MVP, CEGUI Team
Re: Question about setMouseCursor
Oh ok, thx Kulik. But why arent the stuff in 0.7.5? and can you expect these fixes to be in some 0.7.x release? Sorry i just dont know what your plans are for this 
Re: Question about setMouseCursor
Probably because it wasn't there when 0.7.5 was released
0.7.6 release would be nice but I am unsure whether that will happen. Releasing is a lot of pain and the focus is on 0.8
Re: Question about setMouseCursor
So I assume its going to be in 0.8.
thx
thx
setDefaultMouseCursor Fix [CEGUI 0.7.x]
Hello,
I know the topic is quite old but I stumbled across the same problem and found a fix. In my code I also change the global mouse cursor when the user clicks on a certain button but as long as the mouse is still on that button the user won't see the changes. Here is what I had to add:
Now the new cursor will be drawn immediately.
Greetings
BrightBit
I know the topic is quite old but I stumbled across the same problem and found a fix. In my code I also change the global mouse cursor when the user clicks on a certain button but as long as the mouse is still on that button the user won't see the changes. Here is what I had to add:
Code: Select all
bool Button::onClick(const CEGUI::EventArgs& args)
{
CEGUI::System::getSingleton().setDefaultMouseCursor("CustomImageset", "NewMouseIcon");
// THE FIX: these two lines will force the button to draw the new mouse cursor immediately
CEGUI::Window* win = CEGUI::System::getSingleton().getWindowContainingMouse();
win->setMouseCursor(CEGUI::System::getSingleton().getDefaultMouseCursor());
}
Now the new cursor will be drawn immediately.
Greetings
BrightBit
"Yeah so if you ever need info about anyone [...] Just ask. [...] They 'trust me'. Dumb fucks." - Mark Zuckerberg (Facebook CEO)
Who is online
Users browsing this forum: No registered users and 18 guests
