Jump to content

شباب مشكلة ارجو الدخول ؟؟


Recommended Posts

سلام

شباب معي مشكلة في كود

bind key

انا مسوي 5 نافذات

و ابي لما تضغط على الزر يفتح بس النافذة الرئيسية

؟؟ ممافهت كيف اعدلها

يعني انا عملت مود

نافذة رئيسية و نافذة اخرى

لما تضغط على الزر تروح ذيك

ذا كودي

function kbcha() 
if guiGetVisible(wnd1) == false then 
guiSetVisible((wnd1,true) 
showCursor(true) 
else 
guiSetVisible((wnd1,false) 
guiSetVisible((wnd2,false) 
showCursor(false) 
    end 
end 
bindKey("F3", "down", kbcha) 
  

ابي شرح كيف اعمل ما يفح اكثر من نافذة

و شكرا

Link to comment
لا انا مسوي خمسة

و ابي يفتح الا وحدة

و الاخرى موب مفتحون بس

انا مسوي ازرار لفتحها

هيك فهمتني .؟؟

  
-- client 
function showWnd() 
guiSetVisible(اسم النافذه, not guiGetVisible(اسم النافذه)) 
showCursor(guiGetVisible(اسم النافذه)) 
end 
bindKey ("F3", "down", showWnd) 
  

Link to comment

جرب ذاا

bindKey("F2","down", 
    function () 
        if guiGetVisible(wnd1) then 
            guiSetVisible(wnd1,false) 
            guiSetVisible(wnd2,false) 
            showCursor(false) 
        else 
            guiSetVisible(wnd1,true) 
            showCursor(true) 
        end 
    end 
) 
  
-- wnd1 = النافذه الرئيسيه 
-- wnd2 = النافذه الثانيه 

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