AlvareZ_ Posted January 18, 2013 Posted January 18, 2013 yo cree una gui pero lo siguiente es q como aria par a q se abra con f1 y cierre con f1
AlvareZ_ Posted January 18, 2013 Author Posted January 18, 2013 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 )
Castillo Posted January 18, 2013 Posted January 18, 2013 Despues de guiCreateWindow pone: guiSetVisible ( GUIEditor.window[1], false )
Recommended Posts