Jump to content

onClientMouseEnter


Multi

Recommended Posts

Can someone give me example that if i enter label "zamknij":

zamknij = guiCreateLabel(0, 454, 286, 58, "", false) 

then label "zaladuj" will show on screen

zaladuj = guiCreateLabel(0, 356, 286, 58, "cccc", false) 

and when i leave label "zamknij" then label "Zaladuj" will close.... can someone help me

Link to comment
This can help you.
addEventHandler("onClientGUIClick", root, 
    function() 
         
        if ( source == button ) then  
  
------- exemple 
  
        end 
end 
) 

No that can't.

This might help you :

  
addEventHandler("onClientMouseEnter",yourgui, 
    function() 
        guiSetText(yourlabel,"YourText") 
    end 
) 
  
addEventHandler("onClientMouseLeave",yourgui, 
    function() 
        guiSetText(yourlabel,"") 
    end 
) 

Link to comment

Don't forget to add 'false' argument in the addEventHandler function, otherwise the event will be triggered for every child element of the element you attached your event to.

addEventHandler( "onClientMouseEnter", zamknij, function() 
  guiSetVisible( zaladuj, true ) 
end, false ) 
  
addEventHandler( "onClientMouseLeave", zamknij, function() 
  guiSetVisible( zaladuj, false ) 
end, false ) 

Link to comment

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