Jump to content

Hmm duda con gui


AlvareZ_

Recommended Posts

Posted
bindKey 
guiGetVisible 
guiSetVisible 

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

mira me anda pero al cargar el resource se abre, solo quiero q abra al presionar f1

function abrir () 
        if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then -- check if the gui element is visible                
                guiSetVisible ( GUIEditor.window[1], false ) -- if it is, we hide it 
        else               
                guiSetVisible ( GUIEditor.window[1], true ) -- if not, we make it visible 
        end 
end 
bindKey ( "f1", "down", abrir ) 

bandera_de_Venezuela.png

Posted

Despues de guiCreateWindow pone:

guiSetVisible ( GUIEditor.window[1], false ) 

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...