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 http://oi50.tinypic.com/2po49k2.jpg[/img]
Plate Posted June 24, 2013 Posted June 24, 2013 bindKey('f3','down', function() guiSetVisible(la ventana, not guiGetVisible(la ventana)) showCursor(not isCursorShowing()) end ) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
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 http://oi50.tinypic.com/2po49k2.jpg[/img]
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 Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Anyelberth Posted June 24, 2013 Author Posted June 24, 2013 Ya lo avía echo y también me sale Ese Error http://oi50.tinypic.com/2po49k2.jpg[/img]
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 Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Anyelberth Posted June 24, 2013 Author Posted June 24, 2013 Gracias! :`D http://oi50.tinypic.com/2po49k2.jpg[/img]
Plate Posted June 24, 2013 Posted June 24, 2013 de nada Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Recommended Posts