lLinux Posted June 20, 2014 Share Posted June 20, 2014 Hi all, I would like to know how to create a button in dxDraw. Link to comment
xXMADEXx Posted June 20, 2014 Share Posted June 20, 2014 You can check how I did it in this: https://community.multitheftauto.com/index.php?p= ... ls&id=8367 Link to comment
_DrXenon Posted June 20, 2014 Share Posted June 20, 2014 One suggestion create a Dx rectangle for instance and then create a gui label (with no text) on the Dx Rectangle (with same x,y,width,height) then addEventHandler("onClientGUIClick",theLabel,function) -- when you click on the label (that's not visible...trigger the function) Link to comment
Arnold-1 Posted June 20, 2014 Share Posted June 20, 2014 i usually use a table for it, this way: clicks = { {x , y, h, w,} } addEventHandler("onClientClick",root, function () you loop through the table and check which index it clicked end ) 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