Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Witaj, mam problem z logowaniem, np. gdy zminimalizujemy gr? znikaj? napisy robione z pobieranej czcionki, obstawiam, i? przez wielko?? czcionki znikaj? napisy.
Oto kod:
function drawHud ()
if ( dxNLoginVisible == true ) then
if isCursorShowing () and not isMTAWindowActive () then
if isMouseInPosition ( px * 5 , py * 460 , px * 290 , py * 19 ) then -- pod ? wietlanie
alpha1 = 255
elseif isMouseInPosition ( px * 255 , py * 408 , px * 482 , py * 453 ) then -- ^
alpha2 = 255
elseif isMouseInPosition ( px * 5 , py * 515 , px * 290 , py * 19 ) then -- ^
alpha3 = 255
else
alpha1 , alpha2 , alpha3 = 150 , 150 , 150
end
end
font = dxCreateFont ( "font.ttf" , 13 )
size = py * 1
size2 = py * 3
size3 = py * 1
size4 = py * 1
size5 = py * 2.3
dxDrawImage ( px * 0 , py * 0 , px * 1024 , py * 800 , 'zdjecie.jpg' )
dxDrawText ( "Nazwa u?ytkownika:" , px * 256 , py * 273 , px * 484 , py * 305 , tocolor ( 0 , 0 , 0 , 255 ), size8 , font , "right" , "center" )
dxDrawText ( "Nazwa u?ytkownika:" , px * 256 , py * 273 , px * 484 , py * 305 , tocolor ( 0 , 0 , 0 , 255 ), size8 , font , "right" , "center" )
dxDrawText ( "Nazwa u?ytkownika:" , px * 256 , py * 272 , px * 484 , py * 305 , tocolor ( 255 , 255 , 255 , 255 ), size8 , font , "right" , "center" )
dxDrawText ( "Has?o:" , px * 571 , py * 270 , px * 799 , py * 302 , tocolor ( 0 , 0 , 0 , 255 ), size8 , font , "right" , "center" )
dxDrawText ( "Has?o:" , px * 571 , py * 270 , px * 799 , py * 302 , tocolor ( 0 , 0 , 0 , 255 ), size8 , font , "right" , "center" )
dxDrawText ( "Has?o:" , px * 571 , py * 269 , px * 799 , py * 302 , tocolor ( 255 , 255 , 255 , 255 ), size8 , font , "right" , "center" )
dxDrawText ( "Zaloguj si?" , px * 60 , py * 290 , px * 245 , py * 645 , tocolor ( 255 , 255 , 255 , 200 ), size , "pricedown" , "center" , "center" )
dxDrawText ( "Zarejestruj si?" , px * 60 , py * 290 , px * 245 , py * 755 , tocolor ( 255 , 255 , 255 , 200 ), size , "pricedown" , "center" , "center" )
dxDrawText ( server_web , px * 270 , py *- 55 , px * 19 , py * 450 , tocolor ( 255 , 255 , 255 , 200 ), size4 , "pricedown" , "center" , "center" )
-- dxDrawText ( "" , px * 200 , py * 500 , px * 476 , py * 50 , tocolor ( 0 , 0 , 0 , 255 ), size5 , "clear-normal" , "center" , "center" )
end
end
addEventHandler ( "onClientRender" , root , drawHud )
Jak to rozwi?za??