Tottel
Member
|
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 |
|
Zervox
Member
|
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 |
|
Tottel
Member
|
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 |
|
Tottel
Member
|
RE: Ms image offset
Good idea, Allen. I'll give that a try, thanks!
|
|
09-21-2013 04:52 PM |
|
Esenthel
Administrator
|
RE: Ms image offset
This will be available in next release
|
|
09-23-2013 12:25 AM |
|
Tottel
Member
|
RE: Ms image offset
awesome, thanks!
|
|
09-23-2013 06:01 AM |
|
Tottel
Member
|
RE: Ms image offset
Fixed using the new hot_spot param in Mouse::cursor()
Thanks
|
|
09-23-2013 08:51 PM |
|