Jump to content

question


Chaos

Recommended Posts

Posted

You can, you just have to create a function to see if you're actualy hovering the item while you use onClientClick :)

function isHoveringItem ( x, y, minx, maxx, miny, maxy ) 
    return x >= minx and x <= maxx and y >= miny and y <= maxy; 
end 

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted

Or you can do it the easier way;

Create a GUI Button and place it over your DirectX Button. Then set the button's alpha to 0. That way, it won't be visible but can still be clicked.

And then you can use the regular GUI events as you please

onClientGUIClick 
onClientMouseEnter 
onClientMouseLeave 

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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