Jump to content

ظغط الزر مرتين ؟


Recommended Posts

شباب ابيه اذا ضغط مره ثانيه

على زر winred

يغلق نافذة mineu

addEventHandler ( "onClientMouseEnter", root, 
    function ( ) 
        if source == winlogo then 
            guiSetVisible(winred,true) 
            guiSetVisible(winlogo,false) 
        end 
    end 
) 
  
addEventHandler ( "onClientMouseLeave", root, 
    function ( ) 
        if source == winred then 
            guiSetVisible(winred,false) 
            guiSetVisible(winlogo,true) 
        end 
    end 
) 
  
    addEventHandler("onClientGUIClick", root, 
function () 
   if source == winred then 
   guiSetVisible(mineu , true) 
   else 
   guiSetVisible(mineu , false) 
   end 
end 
) 

Link to comment
شباب ابيه اذا ضغط مره ثانيه

على زر winred

يغلق نافذة mineu

addEventHandler ( "onClientMouseEnter", root, 
    function ( ) 
        if source == winlogo then 
            guiSetVisible(winred,true) 
            guiSetVisible(winlogo,false) 
        end 
    end 
) 
  
addEventHandler ( "onClientMouseLeave", root, 
    function ( ) 
        if source == winred then 
            guiSetVisible(winred,false) 
            guiSetVisible(winlogo,true) 
        end 
    end 
) 
  
    addEventHandler("onClientGUIClick", root, 
function () 
   if source == winred then 
   guiSetVisible(mineu , true) 
   else 
   guiSetVisible(mineu , false) 
   end 
end 
) 

استخدم

*Event*

onClientGUIDoubleClick 

Link to comment

لا ابيه اذا ضغط الزر مره يطلع اللوحة واذا ضغطها مره ثانيه يخفي اللوحه

    addEventHandler("onClientGUIClick", root, 
function () 
   if source == winred then 
   guiSetVisible(mineu , true) 
   else 
   guiSetVisible(mineu , false) 
   end 
end 
) 

Link to comment
 window = true 
  
    addEventHandler("onClientGUIClick", root, 
function () 
   if source == winred then 
   if ( window == true ) then 
   guiSetVisible(mineu,true) 
   window = false 
   else 
   guiSetVisible(mineu , false) 
   window = true 
   end 
   end 
end 
) 
  

جرب ..

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