Anyelberth Posted June 23, 2013 Posted June 23, 2013 Hola Chicos. Una Ayudita. function Panels() Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) end addCommandHandler ( "ASC", Panels ) Como Modificaria Para Que Este Panel No Abriera Con AddCommandHandler y Abra y Cierre Con un BindKey Como Por Ejemplo Abra Con La Tecla F3
Plate Posted June 24, 2013 Posted June 24, 2013 bindKey('f3','down', function() guiSetVisible(la ventana, not guiGetVisible(la ventana)) showCursor(not isCursorShowing()) end )
Anyelberth Posted June 24, 2013 Author Posted June 24, 2013 function Panels() Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) end bindKey('f3','down', function() guiSetVisible(Panels, not guiGetVisible(Panels)) showCursor(not isCursorShowing()) end ) Haci como sta Me Sale Error: Bad Argument guiSetVisible
Plate Posted June 24, 2013 Posted June 24, 2013 function Panels() Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) end bindKey('f3','down', function() guiSetVisible(Panels, not guiGetVisible(Panels)) showCursor(not isCursorShowing()) end ) Haci como sta Me Sale Error: Bad Argument guiSetVisible por que tu ventana se llama Panel y vos pusistes Panels
Anyelberth Posted June 24, 2013 Author Posted June 24, 2013 Ya lo avía echo y también me sale Ese Error
Plate Posted June 24, 2013 Posted June 24, 2013 Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) guiSetVisible(Panel, false) bindKey('f3','down', function() guiSetVisible(Panel, not guiGetVisible(Panel)) showCursor(not isCursorShowing()) end ) A mi me funciona en mis resources
Recommended Posts