Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: skalalowanie
1. Panel Logowania Skalalowanie
Mam taki problem z Skalowaniem, Mam tu taki kod ale Na Innych rozdzielczosciach ni? 640-480 Elementy wychodza troche za ekran
[lua]

x,y=36.63,82.19 -- my width
intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end

local dist = 10
local angler = 0
function getPointFromDistanceRotation(x, y, dist, angler)
local a = math.rad(20 - angler)
local dx = math.cos(a) * dist;
local dy = math.sin(a) * dist;
return x+dx, y+dy;
end

function renderLoginBox()
if data.info then dxDrawText(data.info, sx*36/640, sy*124/480, sx*156/640, sy*31/480, tocolor(237, 0, 0, 255), 1.00, "default", "center", "center", false) end
dxDrawImage(0, 0, 640, 480, "panel.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)




end
--loguj = guiCreateButton(0.07, 0.58, 0.22, 0.08, "", true, wm.window)
--rejestruj = guiCreateButton(0.07, 0.68, 0.22, 0.08, "", true, wm.window)

--log = guiCreateButton(0.07, 0.57, 0.21, 0.08, "", true)
--reg = guiCreateButton(0.08, 0.68, 0.21, 0.07, "", true)
--dxDrawText("&...