About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
Ms image offset
Author Message
Tottel Offline
Member

Post: #1
Ms image offset
Hi there,

Normally, the clickable-point of a mouse image would be at the top-left corner of the image.
However, I would like to use the center of the image instead. I've looked into it, but I can't really find a way of doing this atm. Does anyone have any ideas about this?

Thanks!
09-20-2013 07:50 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #2
RE: Ms image offset
I guess Get the screen rectangle of the mouse icon and offset the point with half rect size.
09-20-2013 04:03 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #3
RE: Ms image offset
Doesn't work, since you can only set the position of the entire image + clickable point. Not separately.
09-21-2013 02:52 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #4
RE: Ms image offset
Right off the bat, what I can think of is just move a separate image when the mouse moves, where the mouse pointer coordinate is the center of the image (ie. don't use the mouse cursor image, but a separate image that moves when the mouse is moved).
09-21-2013 04:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #5
RE: Ms image offset
Good idea, Allen. I'll give that a try, thanks! smile
09-21-2013 04:52 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Ms image offset
This will be available in next release
09-23-2013 12:25 AM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #7
RE: Ms image offset
awesome, thanks!
09-23-2013 06:01 AM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #8
RE: Ms image offset
Fixed using the new hot_spot param in Mouse::cursor()

Thanks smile
09-23-2013 08:51 PM
Find all posts by this user Quote this message in a reply
Post Reply