DX9-Overlay-API icon indicating copy to clipboard operation
DX9-Overlay-API copied to clipboard

Making text or drawings clickable

Open xCONFLiCTiONx opened this issue 7 years ago • 3 comments

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?

xCONFLiCTiONx avatar May 22 '17 04:05 xCONFLiCTiONx

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.

ghost avatar May 22 '17 07:05 ghost

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.

xCONFLiCTiONx avatar May 22 '17 13:05 xCONFLiCTiONx

@agrippa1994 think that should be closed now.

ghost avatar Jun 09 '17 13:06 ghost