Jump to content

Como se le baja la opacidad a un dxDrawRectangle??


lLinux

Recommended Posts

Posted

Te referis a la visibilidad? si es asi, entonces es el cuarto argumento en tocolor.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Te referis a la visibilidad? si es asi, entonces es el cuarto argumento en tocolor.

Gracias, otra duda y para enviarle un texto, por ejemlo que pongas el comando /texto1 y se cambia el texto de un dxDrawText, eso seria todo lo que neceisto

Skype: HackerlLinux

¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com

"La disciplina es la clave del exito"

Posted

Define una variable con el texto y luego lo dibujas.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
local myText = "Hello World!" 
  
addEventHandler ( "onClientRender", root, 
    function ( ) 
        dxDrawText ( myText, 0, 0, guiGetScreenSize ( ) ) 
    end 
) 
  
addCommandHandler ( "change", 
    function ( _, new ) 
        myText = new 
    end 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
local myText = "Hello World!" 
  
addEventHandler ( "onClientRender", root, 
    function ( ) 
        dxDrawText ( myText, 0, 0, guiGetScreenSize ( ) ) 
    end 
) 
  
addCommandHandler ( "change", 
    function ( _, new ) 
        myText = new 
    end 
) 

Muchas gracias.

Skype: HackerlLinux

¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com

"La disciplina es la clave del exito"

Posted

De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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