StdLib

by Ter13
Essential standardized features for use in any DM project.
ID:2287766
 
Resolved
screen2coord() and screen2world() have been added to make working with mouse interaction a little less painful. They currently return a list(x,y) in pixel offsets from the bottom-left of either the view or the world. Both take a client as an argument even though only screen2world actually uses it.
Applies to:StdLib 1.2
Status: Resolved (2.2)

This issue has been resolved.
A way to get the screen coordinates in both view space and world space would be something a standard library should offer.
Ter13 resolved issue with message:
screen2coord() and screen2world() have been added to make working with mouse interaction a little less painful. They currently return a list(x,y) in pixel offsets from the bottom-left of either the view or the world. Both take a client as an argument even though only screen2world actually uses it.