syrasia Posted February 6, 2016 Share Posted February 6, 2016 Hi there, I am in the process to script a tooltip. Everything works fine, but I have a problem with the addEventHandler: addEventHandler ( "onClientMouseMove", getRootElement( ), tooltipHandler( ) ) addEventHandler( "onClientMouseMove", getRootElement( ), function ( x, y ) tooltipHandler(x,y) end ) The first one does NOT work while the second one works normal. What I am missing? Why does the second one work, but the first one not? Link to comment
Bonsai Posted February 6, 2016 Share Posted February 6, 2016 It should be: addEventHandler ( "onClientMouseMove", getRootElement( ), tooltipHandler) Link to comment
syrasia Posted February 6, 2016 Author Share Posted February 6, 2016 Okay, that was it for real? ........... F*** me, sorry! Now I know what happend: In an other script it worked. Here it didnt: if u have the bracked, it will get called once. No problem with "onResourceStart", right? But with repeating events ist not so nice. Changed it. Well I would say thank you mate! Aaaaaaand this is solved! 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