Jump to content

DX scriptable images


Spajk

Recommended Posts

Posted (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 by Guest
Posted

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.

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...