Jump to content

[Duda]Resoluciones


#Silvery'

Recommended Posts

Posted

Alguna forma de hacer un dx o un gui para todas las resoluciones sin guiGetScreenSize o no se puede ?

My ingame nick is: #SilverY' / Seku.

560x95_FFFFFF_FF9900_000000_000000.png

**Entren al servidor**!! me encanto el servidor se los recomiendo ^^ , no es mio es de @TomasitoCaram

Posted
Alguna forma de hacer un dx o un gui para todas las resoluciones sin guiGetScreenSize o no se puede ?

Creo que sin 'guiGetScreenSize' no es posible, aunque no es muy difícil usarlo, al principio parece difícil, pero en realidad es facil, solo son unas cuantas divisiones/multiplicaciones :)

Jpccgao.jpg
Posted

Noo, pasa qué era una duda, guiGetScreenSize ya lo se utilizar solo qué hacer multiplicaciones y muchas dan paj** e.e, pero bueno me tomare el tiempo para ponerlo para todas las resoluciones.

My ingame nick is: #SilverY' / Seku.

560x95_FFFFFF_FF9900_000000_000000.png

**Entren al servidor**!! me encanto el servidor se los recomiendo ^^ , no es mio es de @TomasitoCaram

Posted (edited)
Noo, pasa qué era una duda, guiGetScreenSize ya lo se utilizar solo qué hacer multiplicaciones y muchas dan paj** e.e, pero bueno me tomare el tiempo para ponerlo para todas las resoluciones.

Aunque 'guiGetScreenSize' es el método mas utilizado, es en realidad poco útil para cosas como textos o imágenes, ya que las resoluciones de las pantallas poseen escalas diferentes.

http://es.wikipedia.org/wiki/Resolucion_de_pantalla

Edited by Guest

Developer @ MYVAL

Posted (edited)

Yo uso algo así:

addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        myWindow = guiCreateWindow(452, 212, 376, 375, "Esto no lo ven todos", false) 
    end 
) 

sWidth = Largo de tu resolución

sHeight = Alto de tu resolución

X = 452, 452 / sWidth = 0.353

Y = 212, 212 / sHeight = 0.265

Lo mismo con los otros, 376 / sWidth y 375 / sHeight

0.293 y 0.468.

El codigo quedará así:

addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        local sWidth, sHeight = guiGetScreenSize() 
        myWindow = guiCreateWindow(sWidth*0.353, sHeight*0.265, sWidth*0.293, sHeight*0.468, "Esto se ve en todas las resoluciones", false) 
    end 
) 

Tutorial por DNL21

Edited by Guest

Currently developing for International Gaming Community - Join us!

Posted (edited)

Eso no tiene ningún sentido, el argumento 'relative' de las funciones GUI utiliza coordenadas entre 0 y 1, tus números son mucho mayores a eso.

relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the screen size. If false, then the size and co-ordinates are based on client's resolution, accessible using guiGetScreenSize.

*Por favor eliminar este post, @TomasitoCaram ya corrigió su grave error.

Edited by Guest

Developer @ MYVAL

Posted
Eso no tiene ningún sentido, el argumento 'relative' de las funciones GUI utiliza coordenadas entre 0 y 1, tus números son mucho mayores a eso.
relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the screen size. If false, then the size and co-ordinates are based on client's resolution, accessible using guiGetScreenSize.

Ya empezaste otra vez con tus llamadas "Críticas Constructivas" que no construyen nada. Si está mal porque no lo arreglas?

Solo haces puro off-topic para conseguir más mensajes

Currently developing for International Gaming Community - Join us!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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