#Al3aGraB<3 Posted August 26, 2016 Share Posted August 26, 2016 السلام عليككم ورحمة الله وبركاته والله ياشباب ودي اتعلم كيف ابرمج لوحة تسجيل دخول دي اكس كيف ؟؟ ياليت تساعدوني ياشباب وشكرا لك من شاهد الموضوع وعطاني وقت <3 Link to comment
Abdul KariM Posted August 26, 2016 Share Posted August 26, 2016 عليكم السلام زي الفنكشنات حقت اللوحة العادية لاكن الفرق انك تستخدم الحدث 'onClientClick' والفنكشن IsMouseInPosition Link to comment
#Al3aGraB<3 Posted August 26, 2016 Author Share Posted August 26, 2016 ض1 بس سؤالي كيف اخلي متلا لوحة دي اكس متل حقت اللوحة عادية يعني اقدر ادمج معها اديت بوكس وزر وكل شئ لانه انا لما احط زر فوق الدي اكس ينزل تحتها ومايبان يعني مايندمج معها اتمنى تكون فهمتني Link to comment
Abdul KariM Posted August 26, 2016 Share Posted August 26, 2016 بالنسبة للاديت تسوي ايدت وتسوي شفافيته 0 وبعدين تسوي dxDrawText وتجيب النص الي بالايدت وتحطه في الدي اكس تكست عن طريق guiGetText وبالنسبة للزر نفس الطريقة سوي شفافيته 0 Link to comment
#Al3aGraB<3 Posted August 26, 2016 Author Share Posted August 26, 2016 والله مشكور ياعبد الكريم ماعرف كيف اشكرك صراحة الله يوفقك Link to comment
Abdul KariM Posted August 26, 2016 Share Posted August 26, 2016 والله مشكور ياعبد الكريمماعرف كيف اشكرك صراحة الله يوفقك العفو , اجمعين ان شاء الله Link to comment
a7zan Posted August 26, 2016 Share Posted August 26, 2016 + https://forum.multitheftauto.com/viewtopic.php?f=164&t=95150 هذا شرح كيف تسوي ايديت دي اكس ^^ Link to comment
#Al3aGraB<3 Posted August 26, 2016 Author Share Posted August 26, 2016 كيف اخلي لوحة دي اكس تتقفل متلا dxSetVisible زي كده ادري انه مب موجود بس كيف اسوي لها زي كده Link to comment
Abdul KariM Posted August 26, 2016 Share Posted August 26, 2016 استخدم الفنكشن هذا function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end وسوي تحقق ان الحدث ماهب مضاف وضيفه عن طريق addEventHandler 'onClientRender' وتحقق ان الحدث مضاف واحذفه عن طريق removeEventHandler 'onClientRender' Link to comment
#Al3aGraB<3 Posted August 26, 2016 Author Share Posted August 26, 2016 والله ياخي وش اقولك الله ينجحك والله ياخي افدتني مرة كتير Link to comment
Abdul KariM Posted August 26, 2016 Share Posted August 26, 2016 والله ياخي وش اقولكالله ينجحك والله ياخي افدتني مرة كتير وياك ان شاء الله , حياك بأي وقت Link to comment
Rockyz Posted August 26, 2016 Share Posted August 26, 2016 (edited) كيف اخليلوحة دي اكس تتقفل متلا dxSetVisible زي كده ادري انه مب موجود بس كيف اسوي لها زي كده بالنسبة لذا الفنكشن ترا موجود لكنه فنكشن مفيد dxGetVisible dxSetVisible Syntax : dxGetVisible ( functionName ) dxSetVisible ( functionName, visible = true ) الفنكشنات واضحين من الاسم Source Code : dxGetVisible : function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function dxGetVisible (fun) if (fun and type (fun) == "function") then if (isEventHandlerAdded ("onClientRender", root, fun)) then return true else return false end end end dxSetVisible : function dxSetVisible (fun, vis) if (fun and vis) then if (type (fun) == "function") then if (vis == true or vis == false) then if (vis == true) then addEventHandler ("onClientRender", root, fun) else removeEventHandler ("onClientRender", root, fun) end else error ("Bad Argument At #2 Got "..type (vis)) end else error ("Bad Argument At #1 Got "..type (fun)) end end end Example : bindKey ( "F6", "down", function ( ) if ( dxGetVisible ( functionName ) == false ) then dxSetVisible ( functionName, true ) showCursor ( true ) else dxSetVisible ( functionName, false ) showCursor ( false ) end end ) طبعا بتقولي مافيه فايدة فيه فايدة لان ناس مايعرفون للدي اكس author : xiRocK Edited August 26, 2016 by Guest Link to comment
#Al3aGraB<3 Posted August 26, 2016 Author Share Posted August 26, 2016 والله مدري كيف اضكركم شكرا لكم عشان افدتوني مرة كتير وتعلمت شئ جديد شكرا لكم 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