Page 1 of 1

How I can compare 2 StaticImage?

Posted: Mon Feb 12, 2007 13:26
by Vetal_28
Hello, I need to often change mouse cursor image. And for this I need to check, what image I have now (usual or abrogated(cursor has induction on button). For this I see method:
(CEGUI::StaticImage *)CEGUI::MouseCursor::getSingleton().getImage();

How I can compare this image whis another image, for example ("WindowsLook", "MouseArrow")

Or, you propose anozer variants for decision my problem :idea:

Thanks for help in advanced ;-0))

Posted: Fri Feb 16, 2007 15:24
by Pompei2
What about using this ?

Code: Select all

CEGUI::MouseCursor::getSingleton( ).getImage( )->getName( )

Posted: Tue Feb 20, 2007 12:41
by Vetal_28
Pompei2 wrote:What about using this ?

Code: Select all

CEGUI::MouseCursor::getSingleton( ).getImage( )->getName( )


It work, I was tryed this variant, but just otherwise, and it doesn't work. But now its all good. Thanks! :wink: