Is there any easy way to make all windows have the same cursor image (setMouseCursor() function)? I'm currently making layouts in the editor using WindowsLook buttons and TaharezLook frameWindows, and the cursor changes from the arrow to the target cursor a lot.
If there isn't an easy way to do this, how do I go about iterating through all the windows to set each cursor image? I briefly saw the CEGUI::WindowManager::getIterator function, but how do I use this? (does that return an iterator to the beginning of a list of all the windows? If so, how do I know where the end of the list is, to properly make a for loop?)
Thanks in advance
question using setMouseCursor
Moderators: CEGUI MVP, CEGUI Team
- kungfoomasta
- Not too shy to talk
- Posts: 34
- Joined: Wed Apr 06, 2005 08:25
Set the mouse cursor ONE TIME when you create your ROOT Sheet (window) in code (or in ONE XML file) and don't set the cursor in all your XML files.
Example in code:
Example in code:
Code: Select all
CEGUI::System::getSingleton().setDefaultMouseCursor((CEGUI::utf8*)CEGUILOOK, (CEGUI::utf8*)"MouseArrow");
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 12 guests