agrippa1994 / DX9-Overlay-API

Overlay API for DirectX 9 based games.
MIT License
127 stars 26 forks source link

Making text or drawings clickable #31

Open xCONFLiCTiONx opened 7 years ago

xCONFLiCTiONx commented 7 years ago

Is there anyway so that I can make an event if someone clicks on text or drawings I put into the game overlays? For example a link that opens the default browser to the link?

ghost commented 7 years ago

You can create a own event. Get the bounds of the text and then check if the mouse was clicked and the mouse position is inside the bounds of the text. The API itself is only for drawing.

xCONFLiCTiONx commented 7 years ago

Thanks a lot. Obviously I am new to the DirectX world and pretty much figured it would be as you answered. Feel free to close this.

ghost commented 7 years ago

@agrippa1994 think that should be closed now.