^#Dream Posted September 18, 2014 Share Posted September 18, 2014 (edited) آلسسلآم عليكم انا عندي مشكلة مسوي لوحة يضغط على صوره يفتح له لوحة واذا قفلت اللوحة الي فتحها يرجعني للوحة الاصلية واضغط اف 5 يبقى الماوس موجود مآيروحح local Key = "F5" bindKey(Key,"Down",function() if ( guiGetVisible(Window) == true ) then guiSetVisible(Window,false) showCursor(false) else guiSetVisible(Window,true) showCursor(false) end end) addEventHandler ( "onClientGUIClick", root, function ( ) if source == Pic then guiSetVisible ( NewWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) elseif source == CloseWindow then guiSetVisible ( NewWindow, false ) showCursor ( false ) end end ) Edited September 18, 2014 by Guest Link to comment
iMr.Dawix~# Posted September 18, 2014 Share Posted September 18, 2014 جرب # local Key = "F5" bindKey(Key,"Down",function() guiSetVisible(window,not guiGetVisible(Window)) showCursor(guiGetVisible(Window)) end) Link to comment
The Don Posted September 18, 2014 Share Posted September 18, 2014 local Key = "F5" bindKey(Key,"Down",function() if ( guiGetVisible(Window) == true ) then guiSetVisible(Window,false) showCursor(false) else guiSetVisible(Window,true) showCursor(true) end end) ------------------------ addEventHandler ( "onClientGUIClick", root, function ( ) if source == Pic then guiSetVisible ( NewWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) elseif source == CloseWindow then guiSetVisible(NewWindow,true) showCursor(true) end end ) اتوقع كذا قصدك Link to comment
iMr.Dawix~# Posted September 18, 2014 Share Posted September 18, 2014 local Key = "F5" bindKey(Key,"Down",function() if ( guiGetVisible(Window) == true ) then guiSetVisible(Window,false) showCursor(false) else guiSetVisible(Window,true) showCursor(true) end end) ------------------------ addEventHandler ( "onClientGUIClick", root, function ( ) if source == Pic then guiSetVisible ( NewWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) elseif source == CloseWindow then guiSetVisible(NewWindow,true) showCursor(true) end end ) اتوقع كذا قصدك CloseWindow يبي يقفل النافذه هو ليه تسوي اظهار نافذة وماوس ×_× Link to comment
The Don Posted September 18, 2014 Share Posted September 18, 2014 آلسسلآم عليكمانا عندي مشكلة مسوي لوحة يضغط على صوره يفتح له لوحة واذا قفلت اللوحة الي فتحها يرجعني للوحة الاصلية واضغط اف 5 يبقى الماوس موجود مآيروحح Link to comment
^#Dream Posted September 18, 2014 Author Share Posted September 18, 2014 if source == Pic then guiSetVisible ( NewWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) ^ ذا الي يفتح النافذه + داوي كودك مآزبط Link to comment
iMr.Dawix~# Posted September 18, 2014 Share Posted September 18, 2014 if source == Pic then guiSetVisible ( NewWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) ^ ذا الي يفتح النافذه + داوي كودك مآزبط كيف يعني انت تبيه اذا فتح الأساسيه وكان فاتح نافذة الثانيه وقفل الأساسيه تقفل الثانيه معه صح ؟ اذا كذا هذا الكود local Key = "F5" bindKey(Key,"Down",function() guiSetVisible(window,not guiGetVisible(Window)) showCursor(guiGetVisible(Window)) if guiGetVisible(NewWindow) == true then guiSetVisible(NewWindow,false) showCursor(false) end end) Link to comment
^#Dream Posted September 18, 2014 Author Share Posted September 18, 2014 ^ مشكور زبط بس اذا قفل النافذه الثانية والي هي NewWindow يروح الماوس لازم يقفل اللوحة ويرجع يفتحها انا ابيه لو قفل النافذه الثانية يبقى الماوس عشان يقدر يضغط على صوره ثانية واذا قفل النافذه الاساسية والي هي Window يروح الماوس Link to comment
iMr.Dawix~# Posted September 18, 2014 Share Posted September 18, 2014 ^مشكور زبط بس اذا قفل النافذه الثانية والي هي NewWindow يروح الماوس لازم يقفل اللوحة ويرجع يفتحها انا ابيه لو قفل النافذه الثانية يبقى الماوس عشان يقدر يضغط على صوره ثانية واذا قفل النافذه الاساسية والي هي Window يروح الماوس showCurosr بس شيل local Key = "F5" bindKey(Key,"Down",function() guiSetVisible(window,not guiGetVisible(Window)) showCursor(guiGetVisible(Window)) if guiGetVisible(NewWindow) == true then guiSetVisible(NewWindow,false) end end) Link to comment
^#Dream Posted September 18, 2014 Author Share Posted September 18, 2014 ^ الله يعطيك العافية <3 Link to comment
iMr.Dawix~# Posted September 18, 2014 Share Posted September 18, 2014 ^الله يعطيك العافية <3 يعافيك ربي بس لاهنت لو تحط ع الموضوع تم الإفادة عشان نعرف يعني 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