Jump to content

ScreenSize


Recommended Posts

Posted

السلام عليكم

ياشباب

انا سويت لوحة

وكان مقاس شاشتي

800 x 600

حاولت اخليها على كل المقاسات بنفس المكان والحجم الي بمقاس شاشتي وماظبطت معي

x,y = guiGetScreenSize() 
 x = ( x - 680) 
 y = ( y - 0) 
 Window = guiCreateStaticImage(x,y,130,609,"images/win.png",false) 

وماظبط معي

بمقاس الشاشة

800 x 600

تجي معي كذا

Eskym8.png

ومقاس

1366 x 768

ماصارت تبان

انا ابي تككون كل المقاسات زي ال

الصورة الاولى

Posted

200 = x , y يبي لك تضرب العدد وتقسمه ونفترض عندك الـ

زي كذا مثال .. :

local sX, sY = guiGetScreenSize(  ) 
local PosX = sX * ( 200 / 1024 ) 
local PosX = sY * ( 200 / 768 ) 
Posted

حاولت اخليها كذا ومازبط

sX, sY = guiGetScreenSize() 
Win = guiCreateStaticImage(((sX*(692/1024)),(sY*(0/768)),(sX*(130/1024)),(sY*(600/768)),"images/bg.png",false) 
Posted
حاولت اخليها كذا ومازبط

sX, sY = guiGetScreenSize() 
Win = guiCreateStaticImage(((sX*(692/1024)),(sY*(0/768)),(sX*(130/1024)),(sY*(600/768)),"images/bg.png",false) 

شوف تزبط ولا لا

   local sx, sy = guiGetScreenSize ( ) 
     Win = guiCreateStaticImage( sx*(692/1024), sy*(0/768),130,600,"images/bg.png",false) 

Posted
ماظبت +

انا ابغا اخليها بنفس الحجم والطول والعرض وكلش

اطرح كود الصوره بدون اي تعديل

Posted
^ انسخه مره ثانية وجربه

موب بنفس محله

+

الحجم مختلف انا ابغاه زي حجم

دقة

ال

800 x 600

Posted

خلاص يعطيكم العافية شباب حليتها

sx, sy = guiGetScreenSize ( ) 
Win = guiCreateStaticImage( sx*(895/1024), sy*(0/768),sx*(130/1024),sy*(765/768),"images/bg.png",false) 

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...