Jump to content

create button in dxDraw?


lLinux

Recommended Posts

Posted

One suggestion :D

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)

Posted

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

)

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...