mo7taref2014 Posted July 19, 2015 Share Posted July 19, 2015 السلام عليكم و رحمة الله و بركاته ممكن شرح ل dxDrawImage3D و dxCreateTexture Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 * سم روابط لطلبك الاول Here : الاول * dxCreateTexture : * Example : addEventHandler( "onClientRender", root, function() if myImage then dxDrawImage( 100, 350, 300, 350, myImage ) end end ) -- Use 'toggle' command to switch image on and off addCommandHandler( "toggle", function() if not myImage then myImage = dxCreateTexture( "moonpig.png" ) -- Create texture else destroyElement( myImage ) -- Destroy texture myImage = nil end end ) -- طبعاً تسوي صوره -- guieditor بـ -- ثم تحط الاحداثيات -- عند dxDrawImage( 100, 350, 300, 350, myImage ) Link to comment
mo7taref2014 Posted July 19, 2015 Author Share Posted July 19, 2015 اخي عندي مشكلة الصورة ما تطلع في dxDrawImage3D Link to comment
i S6O Posted July 19, 2015 Share Posted July 19, 2015 حط هذا الكود في ملف كلنت .. local white = tocolor(255,255,255,255) function dxDrawImage3D(x,y,z,w,h,m,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c or white, ...) end وطبق عليه مثل ماهو موجود بالصفحة local face = dxCreateTexture("trollface.png") addEventHandler("onClientRender", root, function ( ) dxDrawImage3D ( x, y, z, 20, 20, face, tocolor(255,255,255,255)) end ) x, y, z = الإحداثيات 20, 20 = الحجم trollface.png = اسم الصورة اضيف للميتآ ذآ السطر : client="اصدار لعبتك"> 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