Page 1 of 1
Mouse cursor active point
Posted: Fri Mar 14, 2008 22:25
by prager
I am working on a new skin for CEGUI, and have some problems with the cursors. Please, how to set the "active pixel" for each cursor? Couldn't find it in any of the skin files.
Many thanks...
Posted: Sat Mar 15, 2008 19:49
by CrazyEddie
Hi,
This is done in the imageset definition by way of the XOffset and YOffset attributes - just include these in the definition for the mouse cursor image(s). Since you're actually shifting the image relative to the image origin, these values are usually negative in order to position the 'hot spot' of the cursor image at pixel location (0,0).
HTH
CE.
Posted: Sat Mar 15, 2008 20:37
by prager
Hi,
thanks for reply, I have searched through rest of the files and missed these params...
Thanks!!