Chaos Posted December 21, 2013 Share Posted December 21, 2013 Hello, Can I create button using dx functions because I want a custom theme Link to comment
tosfera Posted December 21, 2013 Share Posted December 21, 2013 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 Link to comment
Dealman Posted December 21, 2013 Share Posted December 21, 2013 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 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