deltamta Posted December 9, 2012 Share Posted December 9, 2012 Heyo Guys, I have a query... As you all might know on GUI's we use onClientMouseEnter or onClientMouseLeave as hover functions to make our GUI's look cooler But im making a script using dx Drawings and I was curious if there is any specific function when you hover a dx Rectangle to change to a different color Thanks, Delta Link to comment
Anderl Posted December 9, 2012 Share Posted December 9, 2012 @CrystalMV, I guess that ain't needed since onClientClick already passes absolute X and Y. Link to comment
deltamta Posted December 9, 2012 Author Share Posted December 9, 2012 Crystal ur suggestion is good but I figured out another way to do it and it works. I just created a GUI and set the alpha to 0 so when the mouse hovers over the gui it draws the dx rectangle. It might sound weird but it works well Link to comment
Anderl Posted December 9, 2012 Share Posted December 9, 2012 Crystal ur suggestion is good but I figured out another way to do it and it works.I just created a GUI and set the alpha to 0 so when the mouse hovers over the gui it draws the dx rectangle. It might sound weird but it works well Well, that's a way. I still think getting cursor position is easier. Link to comment
Callum Posted December 9, 2012 Share Posted December 9, 2012 The method proposed by Anderl is more efficient. 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