Mouse cursor active point

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
prager
Just popping in
Just popping in
Posts: 12
Joined: Fri Mar 14, 2008 19:02
Contact:

Mouse cursor active point

Postby prager » Fri Mar 14, 2008 22:25

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...

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Sat Mar 15, 2008 19:49

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.

User avatar
prager
Just popping in
Just popping in
Posts: 12
Joined: Fri Mar 14, 2008 19:02
Contact:

Postby prager » Sat Mar 15, 2008 20:37

Hi,

thanks for reply, I have searched through rest of the files and missed these params... :)

Thanks!!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests