LM.GUI.Cursor - "hot" coordinates?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
hayasidist
Posts: 3514
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

LM.GUI.Cursor - "hot" coordinates?

Post by hayasidist »

the call to this is LM.GUI.Cursor(path, hotX, hotY) . "path" is self evident, and I can get this to work "as expected" by sticking zeros in the x,y .. but I can't figure out what those coords are there for?? can anyone enlighten me please?
dkwroot
Posts: 677
Joined: Thu May 02, 2013 6:56 am
Location: USA
Contact:

Re: LM.GUI.Cursor - "hot" coordinates?

Post by dkwroot »

I don't know, but it probably offsets the point of selection. For example, if you wanted to make the cursor turn into a cross hair, you would have to offset the point of selection from being the top left of the image cursor, to being the center of the cursor cross hair. I could be wrong, though.
User avatar
hayasidist
Posts: 3514
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: LM.GUI.Cursor - "hot" coordinates?

Post by hayasidist »

Ah! I hadn't thought of that -- my mind was stuck firmly on screen coords! I'll give it a whirl... thanks!!

Yeah .. that's it .. sees to be pixel offset from top left as {0,0} .. so (e.g.) {20,20} is just off bottom right.

Thanks again.
Post Reply