Potrzebuje przekonwertować dxDrawText "Login" oraz dxDrawText "Hasło" (tak jak na załączonym obrazku) tak aby dało się wpisywać text login,hasło
[img]https://imgur.com/a/Hy0TmNM[/img]
[code] s=Vector2(guiGetScreenSize())
function isMouseInPosition (x,y,width,height)
if (not isCursorShowing()) then
return false
end
local cx, cy = getCursorPosition ()
local cx, cy = (cx*s.x), (cy*s.y)
return ((cx >= x and cx<=x+width) and (cy>y and cy<= y+height))
end
switch="off.png"
el={
["bg"]={0,0,1920,1080},
["blogin"]={832, 611, 255, 41},
["brejestracja"]={832, 664, 255, 40},
["txtlogin"]={840, 611, 1077, 651},
["txtrejestracja"]={840, 664, 1077, 704},
["txtloginwpis"]={860, 511, 1077, 543},
["txtrejestrwpis"]={860, 557, 1077, 589},
}
addEventHandler("onClientRender", root,function()
if open then
dxDrawImage(el["bg"][1], el["bg"][2], el["bg"][3], el["bg"][4], ":loginscreen/images/loginscreen.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(1050, 594, 33, 15, ":loginscreen/images/"..switch, 0, 0, 0, tocolor(255, 255, 255, 255), false)
if isMouseInPosition (el["blogin"][1], el["blogin"][2], el["blogin"][3], el["blogin"][4]) then
dxDrawImage(el["blogin"][1... |