Spajk Posted May 17, 2013 Share Posted May 17, 2013 (edited) I am not sure if I wrote the title right, but I will try to explain more here. I show an image to player via dxDrawImage and thats nice, but I want to do something when player moves his cursor over or clicks on an area inside that image. I know that one of the ways is to get pixel coordinates of the area, then with onClientClick to check if it was clicked by checking area coordinates with screen coordinates. That way would be really hard for me, as my image contains lots of little areas, so my question is, whats the fastest way to make this? Edited May 18, 2013 by Guest Link to comment
Castillo Posted May 17, 2013 Share Posted May 17, 2013 There are two ways I know: 1: Position check. 2: Create a gui-label on the same position. You can always create your own GUI system with DX. Link to comment
Spajk Posted May 18, 2013 Author Share Posted May 18, 2013 Thanks for the help, is there any program which could help me to get x,y of the bottom-left corner, width and height of an area inside the image? Link to comment
Castillo Posted May 18, 2013 Share Posted May 18, 2013 I don't really understand your question, to check positions just use the same ones you used to draw it. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now