StarBoy Posted August 16, 2015 Share Posted August 16, 2015 السلام عليكم ابي كود للوحه يعني لما اضغط الزر تظهر اللوحه ولما اضغط مره اخرى تختفي ببطئ Link to comment
Naif Posted August 16, 2015 Share Posted August 16, 2015 onClientGUIClick guiSetVisible guiGetVisible guiSetAlpha setTimer Link to comment
; Mr.T76eM # Posted August 16, 2015 Share Posted August 16, 2015 . function setAlpha ( ) local alp = guiGetAlpha (window) if not alp <= 2 then guiSetAlpha (window,alp-7 ) else killTimer ( Time ) Time = nil end end Time = setTimer ( setAlpha, 50, 0 ) Link to comment
StarBoy Posted August 16, 2015 Author Share Posted August 16, 2015 ما زبط أطرح الي سويته ! function setAlpha ( ) local alp = guiGetAlpha (Groups_Window) if not alp <= 2 then guiSetAlpha (Groups_Window,alp-7 ) else killTimer ( Time ) Time = nil end end Time = setTimer ( setAlpha, 50, 0 ) Link to comment
iMr.SFA7 Posted August 16, 2015 Share Posted August 16, 2015 آمم أطرح كود فتح النافذة بزر ! عشان آربطه Link to comment
; Mr.T76eM # Posted August 16, 2015 Share Posted August 16, 2015 function setAlpha ( ) local alp = guiGetAlpha (Groups_Window) if not alp <= 2 then guiSetAlpha (Groups_Window,alp-7 ) else killTimer ( Time ) Time = nil end end Time = setTimer ( setAlpha, 50, 0 ) حطيت الكود وغيرت اسم النافذة وخلصت ؟ سوي حدث يوم يضغط الزر وبعدين اربط الكود مع الحدث Link to comment
StarBoy Posted August 16, 2015 Author Share Posted August 16, 2015 bindKey("F6", "down", Show_Groups_Window) Link to comment
iMr.SFA7 Posted August 16, 2015 Share Posted August 16, 2015 bindKey ( "F6", "down", function ( ) if ( guiGetVisible ( Groups_Window) == true ) then if ( isTimer ( FadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Groups_Window, 1 ) FadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Groups_Window) guiSetAlpha ( Groups_Window, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Groups_Window, false ) else guiSetVisible ( Groups_Window, true ) guiSetAlpha ( Groups_Window, 1 ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) Link to comment
StarBoy Posted August 16, 2015 Author Share Posted August 16, 2015 تم الحل شكرا خاص لسفاح ونشكر كل المساعدين Link to comment
; Mr.T76eM # Posted August 16, 2015 Share Posted August 16, 2015 تم الحل شكرا خاص لسفاح ونشكر كل المساعدين حيّآكـ ألمهم انك فهمت وش الفكرة ومو آخذت الكود وخلصت الي عليك 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