LM.GUI.Cursor - "hot" coordinates?
Moderators: Víctor Paredes, Belgarath, slowtiger
- hayasidist
- Posts: 3514
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
LM.GUI.Cursor - "hot" coordinates?
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?
Re: LM.GUI.Cursor - "hot" coordinates?
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.
- hayasidist
- Posts: 3514
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: LM.GUI.Cursor - "hot" coordinates?
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.
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.