The moVer Posted June 24, 2015 Posted June 24, 2015 السلام عليكم بسم الله الرحمان الرحيم يا شباب انا عندي مشكلة بالكود لما اغير مقايس الشاشة يتغير كل شي ما عدا الكلمات Text مدري ليه local x, y = guiGetScreenSize() local rx, ry = (x/1360), (y/768) function drawlogin( ) dxDrawImage(rx*0, ry*0, rx*1360, ry*768, "1.png", 0, 0, 0, tocolor(209, 202, 202, 255), false) dxDrawLine(rx*456 - 1, ry*184 - 1, rx*456 - 1,ry*563, tocolor(30, 195, 7, 77), 1, false) dxDrawLine(rx*917, ry*184 - 1, rx*456 - 1, ry*184 - 1, tocolor(30, 195, 7, 77), 1, false) dxDrawLine(rx*456 - 1, ry*563, rx*917, ry*563, tocolor(30, 195, 7, 77), 1, false) dxDrawLine(rx*917, ry*563, rx*917, ry*184 - 1, tocolor(30, 195, 7, 77), 1, false) dxDrawRectangle(rx*456, ry*184, rx*461, ry*379, tocolor(255, 255, 255, 77), false) dxDrawText("Username :", rx*472, ry*305, rx*552, ry*333, tocolor(18, 212, 8, 255), 1.60, "default", "left", "top", false, false, false, false, false) dxDrawText("Password :", rx*478, ry*375, rx*558, ry*403, tocolor(18, 212, 8, 255), 1.60, "default", "left", "top", false, false, false, false, false) dxDrawText("Login", rx*555, ry*170, rx*799, ry*250, tocolor(18, 212, 8, 255), 5.00, "default", "left", "top", false, false, false, false, false) dxDrawText("Panel", rx*666, ry*226, rx*799, ry*275, tocolor(18, 212, 8, 255), 3.00, "default", "left", "top", false, false, false, false, false) dxDrawLine(rx*456, ry*269, rx*916, ry*269, tocolor(18, 212, 8, 255), 5, false) dxDrawRectangle(rx*727, ry*473, rx*152, ry*64, tocolor(250, 250, 250, 86), false) dxDrawRectangle(rx*488,ry* 472, rx*152, ry*64, tocolor(250, 250, 250, 86), false) dxDrawText("Login", rx*727, ry*472, rx*879, ry*537, tocolor(18, 212, 8, 255), 3.00, "default", "center", "center", false, false, false, false, false) dxDrawText("Register",rx*488, ry*472, rx*640,ry*537, tocolor(18, 212, 8, 255), 3.00, "default", "center", "center", false, false, false, false, false) end والسلام عليكم
#DRAGON!FIRE Posted June 24, 2015 Posted June 24, 2015 الحجم راح يكبر كل ما زاد المقاس .. لكن انت تقصد الحجم ولا المكان ؟
#DRAGON!FIRE Posted June 24, 2015 Posted June 24, 2015 الحجم راح يكبر كل ما يزيد مقاس الشاشة عشان يجي مناسب للمقاس حق الشاشة .
TAPL Posted June 24, 2015 Posted June 24, 2015 rx او ry اضرب كل احجام الخط في rz او جرب ذا و اضرب الأحجام في local rx, ry, rz = (x/1360), (y/768), (x+y)/(1360+768)
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