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...
Mouse cursor active point
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
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.
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.
Who is online
Users browsing this forum: Bing [Bot] and 11 guests