Iterate through MouseCursor Images
Posted: Thu Feb 01, 2007 09:56
Hi, I want to change the mouse-cursor-image every time, I click the right mouse button. My problem is, I dont know how to get the name of the images I need.
This is how I want to implement it, but what returns is the name of the Imageset, so it is "TaharezLook", which is a bit senseless 
What I want to get is the name of the actual image, like "MouseMoveCursor". Using is senseless too, because I have to give a searchstring to the method.
Code: Select all
CEGUI::Imageset *imgSet = CEGUI::ImagesetManager::getSingleton().getImageset("TaharezLook");
CEGUI::Imageset::ImageIterator itrImage = imgSet->getIterator();
if(!itrImage.isAtEnd() )
{
CEGUI::String testStr = imgSet->getName();
itrImage++;
}
else
itrImage.toStart();
This is how I want to implement it, but what
Code: Select all
imgSet->getName()

What I want to get is the name of the actual image, like "MouseMoveCursor". Using
Code: Select all
imgSet->getImage()