Julian09123 Posted December 14, 2013 Posted December 14, 2013 Hola amigos bueno hace tiempo no posteaba ni venia al foro bueno quisiera saber como hacer para que Lineas y Rectangulos con dxDrawRectangle y dXDrawLine quiero que se vean en todas las resoluciones iguales como se hace o como puedo hacerlo? Gracias
Alexs Posted December 14, 2013 Posted December 14, 2013 Utiliza 'guiGetScreenSize' y vas haciendo multiplicaciones con números entre 0 y 1 (siendo 0 el inicio de la pantalla y 1 el final de esta).
Alexs Posted December 14, 2013 Posted December 14, 2013 Este es un trozo de mi HUD: local wS, wH = guiGetScreenSize() dxDrawText( ammoInClip > 0 and ammoInClip or "", wS*.90, wH*.92, wS*.988, wH*.99, tocolor( 250, 250, 250, 254), 1.75, "arial", "center", "center" ) dxDrawText( ((carName):gsub( "-", " " )), wS*.04, wH*.95, wS*.23, wH*.99, tocolor( 230, 230, 230, 255), 0.8, "pricedown", "center", "top" ) dxDrawText( zone, wS*.04, wH*.72, wS*.23, wH*.76, tocolor( 230, 230, 230, 255), 0.8, "pricedown", "center", "bottom" ) dxDrawText( actualTime, wS*.84, wH*.94, wS*.84, wH*.99, tocolor( 230, 230, 230, 255), 0.8, "pricedown", "right", "bottom" ) dxDrawRectangle( wS*.85, wH*.04, wS*.14, wH*.02, tocolor( 192, 192, 192, 110 ) )
Julian09123 Posted December 16, 2013 Author Posted December 16, 2013 Ah ya entendi Gracias amigo eres el mejor jeje
Recommended Posts