CRoW,,# Posted May 3, 2013 Posted May 3, 2013 (edited) السلام عليكمم مثل ماهو واضح بالعنوان كيف اغير خط dxDrawText لخط من عندي Edited May 3, 2013 by Guest Emil: [email protected]
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 local text = "test" local size = 4 dx = function() local x, y = guiGetScreenSize ( ) local x = x - 752 local y = y - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( 255, 255, 0, 255 ), size, lbn ) end local lbn = dxCreateFont( "RaYaN.ttf", 6 ) سويتهه كذا بسس ما ضبط Emil: [email protected]
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 onClientRender طيب هو ما عطاني ذا الامر فوق ذذ edit : addEventHandler( "onClientRender", root, dx = function() local x, y = guiGetScreenSize ( ) local x = x - 752 local y = y - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( 255, 255, 0, 255 ), size, lbn ) end local lbn = dxCreateFont( "RaYaN.ttf", 6 ) يصير كذا طيب Emil: [email protected]
فاّرس Posted May 3, 2013 Posted May 3, 2013 ناقص قوس addEventHandler( "onClientRender", root, function() local x, y = guiGetScreenSize ( ) local x = x - 752 local y = y - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( 255, 255, 0, 255 ), size, lbn ) local lbn = dxCreateFont( "RaYaN.ttf", 6 ) end) Sha67 سابقاً
K1NG Posted May 3, 2013 Posted May 3, 2013 ناقص قوس addEventHandler( "onClientRender", root, function() local x, y = guiGetScreenSize ( ) local x = x - 752 local y = y - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( 255, 255, 0, 255 ), size, lbn ) local lbn = dxCreateFont( "RaYaN.ttf", 6 ) end) ^ Wrong .. -- Client Side # local lbn = dxCreateFont( "RaYaN.ttf", 6 ) local text = "test" local size = 4 addEventHandler ( "onClientRender", root, function ( ) local xx, yy = guiGetScreenSize ( ) local x = xx - 752 local y = yy - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( 255, 255, 0, 255 ), size, lbn ) end )
فاّرس Posted May 3, 2013 Posted May 3, 2013 ^ أولا انت بقسم عربي لا تسوي انجليزي وتتفلسف , + هو حط الاختصارات فوق size , وطرح الكود بدونها وسويته يعني لو يركبه على الي فوق بيشتغل , Sha67 سابقاً
K1NG Posted May 3, 2013 Posted May 3, 2013 ^ أولا انت بقسم عربي لا تسوي انجليزي وتتفلسف ,+ هو حط الاختصارات فوق size , وطرح الكود بدونها وسويته يعني لو يركه على الي فوق بيشتغل , بإختصار شديد ، وبدون هياط زايد ؛ كودكـ غلط ..
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 ضبط كود كنق لكن الخط ليهه شكله معوق Emil: [email protected]
فاّرس Posted May 3, 2013 Posted May 3, 2013 (edited) من الخط حقك نفسه, + كودي موب خطأ , لو تركبه على الي فوق, يضبط, local text = "test" local size = 4 addEventHandler( "onClientRender", root, function() local x, y = guiGetScreenSize ( ) local x = x - 752 local y = y - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( 255, 255, 0, 255 ), size, lbn ) local lbn = dxCreateFont( "RaYaN.ttf", 6 ) end) Edited May 3, 2013 by Guest Sha67 سابقاً
iPrestege Posted May 3, 2013 Posted May 3, 2013 الغلط عندهـ كان بس انة مسوي الخط بـ الرندر ولا عادي تلقاهـ هو من قبل مسوي اصلا اختصارات
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 من الخط حقك نفسه, لا الخط شغال كويسس ومضبوط ع اي لوحة Emil: [email protected]
K1NG Posted May 3, 2013 Posted May 3, 2013 من الخط حقك نفسه, مهو من الخط .. ضبط كود كنق لكن الخط ليهه شكله معوق dxلأنه أنت مسوي الخط بـ
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 من الخط حقك نفسه, مهو من الخط .. ضبط كود كنق لكن الخط ليهه شكله معوق dxلأنه أنت مسوي الخط بـ طيب ما اشوف له اي فايدة ذا الفكشن الخط العادي اطلق Emil: [email protected]
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 لو تسوي خط انجليزي يجي صح ذذ ^جربتها ع خط انجليزي برضو ابو كلب بس احسن من العربي edit: خلاص تم الافادة شكرا للردو Emil: [email protected]
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 طيب هل بامكاني اخليه الوان عشوائيةة مثل الليبل Emil: [email protected]
فاّرس Posted May 3, 2013 Posted May 3, 2013 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( math.random(0, 255),math.random(0, 255 ),math.random(0,255), size, lbn ) جرب , Sha67 سابقاً
PaiN^ Posted May 3, 2013 Posted May 3, 2013 math.random(255) " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 (edited) dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( math.random(0, 255),math.random(0, 255 ),math.random(0,255), size, lbn ) جرب , ما ضبط Edited May 3, 2013 by Guest Emil: [email protected]
кιηg-αвα∂у Posted May 3, 2013 Posted May 3, 2013 مايحتاج تايمر local lbn = dxCreateFont( "RaYaN.ttf", 6 ) local text = "test" local size = 4 dx = function ( ) local xx, yy = guiGetScreenSize ( ) local x = xx - 752 local y = yy - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( math.random(255,0), math.random(255,0), math.random(255,0), 255 ), size, lbn ) end addEventHandler ( "onClientRender", root, dx )
CRoW,,# Posted May 3, 2013 Author Posted May 3, 2013 مايحتاج تايمر local lbn = dxCreateFont( "RaYaN.ttf", 6 ) local text = "test" local size = 4 dx = function ( ) local xx, yy = guiGetScreenSize ( ) local x = xx - 752 local y = yy - 90 dxDrawText ( text, x/2, y/2, 752, 90, tocolor ( math.random(255,0), math.random(255,0), math.random(255,0), 255 ), size, lbn ) end addEventHandler ( "onClientRender", root, dx ) ما اشتغل Emil: [email protected]
PaiN^ Posted May 3, 2013 Posted May 3, 2013 إطرحلي الكود إللي معك لآهنت " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
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