Jump to content

(AYUDA) Como posicionar dxDrawText En todas als resoluciones


lucascba

Recommended Posts

Hola Comuidad, me gustaria saber como hao para posicionar mi dxDrawText en todas las resoluciones, porque solo yo lo veo bien los otros players lo ven en otro lugar de la pantalla, como soluciono eso?

Aca esta el dxDrawText:

function DxHandlerFunction( ) 
        dxDrawText("Area Protegida,No Campear", 1100, 729, 1347, 752, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("Area Protegida,No Campear", 1100, 727, 1347, 750, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("Area Protegida,No Campear", 1098, 729, 1345, 752, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("Area Protegida,No Campear", 1098, 728, 1345, 751, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("Area Protegida,No Campear", 1101, 728, 1348, 751, tocolor(0, 255, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) 
end 

Gracias :)

Link to comment

+1 a lo de arriba, ahora si tienes problemas con los tamaños, puedes usar esto, acomoda los tamaños como mas te guste:

local sX,sY = guiGetScreenSize() 
  
function calculateScale() 
    if sX <= 800 and sY <=600 then 
        return 0.25 
    elseif sX<=1024 and sY <=768 then 
        return 0.3 
    elseif sX<=1280 and sY <=720 then 
        return 0.35 
    elseif sX<=1400 and sY <=900 then 
        return 0.4 
    elseif sX<=1650 and sY <=1000 then 
        return 0.45 
    else  
        return 0.5 
    end 
end 
  
scale = calculateScale() 

Link to comment
  • Recently Browsing   0 members

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