z24d Posted October 30, 2015 Share Posted October 30, 2015 (screenW * 0.0320) - 1, (screenH * 0.3125) - 1, (screenW * 0.3187) - 1, (screenH * 0.3346) - 1 الحين الكود ذا لجميع الشاشات؟ Link to comment
#CroSs Posted October 30, 2015 Share Posted October 30, 2015 (screenW * 0.0320) - 1, (screenH * 0.3125) - 1, (screenW * 0.3187) - 1, (screenH * 0.3346) - 1 الحين الكود ذا لجميع الشاشات؟ يب بس طير الناقص واحد وشيل الأقواس لأن ما منها فايدة Link to comment
z24d Posted October 30, 2015 Author Share Posted October 30, 2015 شكراً شلون اخلي الوحات العادية لجميع مقاسات الشاشة؟ شلون قياسهآ ماعرفه : ( Link to comment
#CroSs Posted October 30, 2015 Share Posted October 30, 2015 local YourScreenWidth, YourScreenHeight = 0, 0 -- مقاس شاشتك local ScreenWidth, ScreenHeight = guiGetScreenSize() function getPositions( X, Y, Width, Height ) return ScreenWidth * ( X / YourScreenWidth ), ScreenHeight * ( Y / YourScreenHeight ), ScreenWidth * ( Width / YourScreenWidth ), ScreenHeight * ( Height / YourScreenHeight ) end local X, Y, Width, Height = getPositions( 50, 200, 500, 500 ) ذا الفنكشن راح يجيب القياسات لشاشة الاعب حط مقاس شاشتك فوق . ملاحظة : الأرقام إلي بتحطها في الفنكشن بتنحسب على مقاس شاشتك ، يعني لا تحط أرقام مو محسوبه على شاشتك 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