Jump to content

visualiser


Arsilex

Recommended Posts

Mi pregunta es como es posible ajustar el visualiser para todas las pantallas ._. con eso quiero decir que yo eh editar el visualiser para que sea un Login Panel y en mi resolucion de pantalla se ve bien pero en otras se ve mal alguna idea ._.?

aqui dejo las imagenes de las dos pantallas

esto es mi resolucion -- 1366x768 --

9GQd7zP.jpg

y esto es la resolucon -- 1024x768 --

j0emJFS.png

Link to comment
  
local screenStartX = guiGetScreenSize() 
local SPECWIDTH = screenStartX 
local screenStartX = screenStartX * 0 
local SPECHEIGHT = (SPECWIDTH / 16) * 7  -- height (changing requires palette adjustments too) 
local screenStartY = SPECHEIGHT / 2 
local x, y = guiGetScreenSize() 
  
  
  
function calc ( ) 
    dxSetRenderTarget( tar, true ) 
    if act == true then 
        dxDrawText("Tienes que activar tu cuenta" , screenStartX, screenStartY, screenStartX, screenStartY, tocolor(255, 0, 0, 255 ), 7, "default-bold") 
    elseif banned == false then 
        dxDrawText("Bienvenido a Fort Carson RP" , screenStartX+(50/1366)*x, screenStartY-(250/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 255, 255, 255 ), 7, "default-bold") 
        dxDrawText("Nombre de usuario" , screenStartX+(75/1366)*x, screenStartY-(100/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 255, 255, 255 ), 4, "default-bold") 
         
        dxDrawText("Contraseña" , (screenStartX/1366)*x+(800/1366)*x, (screenStartY/1366)*x-(100/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 255, 255, 255 ), 4, "default-bold") 
         
        dxDrawImage ( (50/1366)*x, (275/768)*y, (SPECWIDTH/1366)*x-(850/1366)*x, (SPECHEIGHT/768)*y-(500/768)*y, "Login2.png", 0, 0,0, tocolor(255,255, 255, 255) ) 
         
        dxDrawText(guiGetText ( User ) , screenStartX+(200/1366)*x, (screenStartY/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(0, 0, 0, 255 ), 4, "default-bold") 
         
        dxDrawImage ( (700/1366)*x, (275/768)*y, SPECWIDTH-(850/1366)*x, SPECHEIGHT-(500/768)*y, "Login2.png", 0, 0,0, tocolor(255,255, 255, 255) ) 
         
        dxDrawText(guiGetText ( Uasd ) , screenStartX+(850/1366)*x, (screenStartY/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(0, 0, 0, 255 ), 4, "default-bold") 
         
        dxDrawImage ( (650/1366)*x, (400/768)*y, SPECWIDTH-(850/1366)*x, SPECHEIGHT-(500/768)*y, "button.png", 0, 0,0, tocolor(255,255, 255, 255) ) 
         
        dxDrawImage ( (100/1366)*x, (400/768)*y, SPECWIDTH-(850/1366)*x, SPECHEIGHT-(500/768)*y, "button.png", 0, 0,0, tocolor(255,255, 255, 255) ) 
         
        dxDrawText("Login" , screenStartX+(250/1366)*x, screenStartY+(120/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 255, 255, 255 ), 4, "default-bold") 
         
        dxDrawText("Register" , screenStartX+(800/1366)*x, screenStartY+(120/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 255, 255, 255 ), 4, "default-bold") 
         
        dxDrawText(guiGetText ( asd ) , screenStartX+(150/1366)*x, screenStartY+(200/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 255, 255, 255 ), 4, "default-bold") 
    elseif banned == true then 
        dxDrawText("Estas banneado!!!" , screenStartX+(250/1366)*x, screenStartY-(50/768)*y, (screenStartX/1366)*x, (screenStartY/768)*y, tocolor(255, 0, 0, 255 ), 7, "default-bold") 
    end 
    dxSetRenderTarget() 
    dxSetShaderValue ( shader_cinema, "gTexture", tar ) 
end 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...