PeTer.NexT Posted May 20, 2015 Share Posted May 20, 2015 السلام عليكم ورحمة الله وبركاتو المهم ابغا كود اذا ضغط زر يودني لوحة ثانيه مثلـ : سويت لوحة وكتبت لاضهار لوحة الاصحاب اضغغط هنا ويوم يضغط تجي لوحة مكتوب فيه لوحة الاصحاب مثل ذا المود يوم يضغط زر يوديه لوحة ثانيه Link to comment
iMr.SFA7 Posted May 20, 2015 Share Posted May 20, 2015 addEventHandler("onClientGUIClick",root, function () if source == button then if ( guiGetVisible(NewWindow) == true ) then guiSetVisible(OldWindow,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(NewWindow,not guiGetVisible(NewWindow)) showCursor(guiGetVisible(NewWindow)) guiSetInputEnabled(guiGetVisible(NewWindow)) end end ) Link to comment
PeTer.NexT Posted May 20, 2015 Author Share Posted May 20, 2015 addEventHandler("onClientGUIClick",root, function () if source == button then if ( guiGetVisible(NewWindow) == true ) then guiSetVisible(OldWindow,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(NewWindow,not guiGetVisible(NewWindow)) showCursor(guiGetVisible(NewWindow)) guiSetInputEnabled(guiGetVisible(NewWindow)) end end ) طيب اشرحلي طريقة التركيب وكذا لني مني مبرمج مبتدأ وفين احط اسم الوحه _ وفين احط اسم الزر الي اضغطه وشكرا Link to comment
iMr.SFA7 Posted May 20, 2015 Share Posted May 20, 2015 addEventHandler("onClientGUIClick",root, function () if source == الزر then if ( guiGetVisible(النافذة الجديدة) == true ) then guiSetVisible(النافذة القديمة,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(النافذة الجديدة,not guiGetVisible(النافذة الجديدة)) showCursor(guiGetVisible(النافذة الجديدة)) guiSetInputEnabled(guiGetVisible(النافذة الجديدة)) end end ) Link to comment
Mr.R Posted May 20, 2015 Share Posted May 20, 2015 addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then -- اسم الزر الي اذا ضغطته تطلع اللوحه guiSetVisible ( اسم اللوحه, true ) -- هنا حط اللوحه والقيم الي فيها عشان تظهر elseif ( source == اسم زر اغلاق اللوحه ) then -- انشاء زر لاغلاق اللوحه بعد فتحها guiSetVisible ( اسم اللوحه, false ) showCursor ( false ) end end ) Link to comment
PeTer.NexT Posted May 20, 2015 Author Share Posted May 20, 2015 addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == اسم الزر ) then -- اسم الزر الي اذا ضغطته تطلع اللوحه guiSetVisible ( اسم اللوحه, true ) -- هنا حط اللوحه والقيم الي فيها عشان تظهر elseif ( source == اسم زر اغلاق اللوحه ) then -- انشاء زر لاغلاق اللوحه بعد فتحها guiSetVisible ( اسم اللوحه, false ) showCursor ( false ) end end ) يعني قصدك بذي الجمله -- هنا حط اللوحه والقيم الي فيها عشان تظهر اجيب الكود حق الوحه الي ابغاه تضهر مع ضغط الزر واحط كوده هناك ؟ Link to comment
PeTer.NexT Posted May 20, 2015 Author Share Posted May 20, 2015 شكرا لكم تمت الافاده من قبل Mr.R _ #Mr.SFA7 واسفين ي تابل يغلق. Link to comment
iMr.SFA7 Posted May 20, 2015 Share Posted May 20, 2015 شكرا لكم تمت الافاده من قبل Mr.R _ #Mr.SFA7 واسفين ي تابل يغلق. حياك الله Link to comment
Mr.R Posted May 20, 2015 Share Posted May 20, 2015 شكرا لكم تمت الافاده من قبل Mr.R _ #Mr.SFA7 واسفين ي تابل يغلق. حياكـ الله ^ اجيب الكود حق الوحه الي ابغاه تضهر مع ضغط الزر واحط كوده هناك ؟ .. ايه 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