Multi Posted May 27, 2014 Posted May 27, 2014 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
Maurize Posted May 27, 2014 Posted May 27, 2014 Huh I don't understand? I mean your gui has to be visible get position. Buuuuuut there is a work around. GuiSetAlpha OnClientMouseEnter OnClientMouseLeave
RenanPG Posted May 28, 2014 Posted May 28, 2014 This can help you. addEventHandler("onClientGUIClick", root, function() if ( source == button ) then ------- exemple end end )
Karuzo Posted May 28, 2014 Posted May 28, 2014 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 )
DakiLLa Posted May 28, 2014 Posted May 28, 2014 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 )
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