Jump to content

سؤال؟


z24d

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...