starksZ Posted May 10, 2012 Posted May 10, 2012 Le pedi ayuda al solidsnake y lo unico que hico fue presumir asi que pido ayuda a ustedes. Es que mi panel que cree con Qt to lua lo ise como para aprender por primera vez pero por pedirle ayuda a solidsnake solo gane que el presumiera y no me enseño nada. miren este es el code. function build_MainWindow() local gui = {} gui._placeHolders = {} local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 414, 381 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Login windows By Oter", false) guiWindowSetSizable(gui["_root"], false) gui._placeHolders["toolBox"] = {left = 40, top = 65, width = 331, height = 231, parent = gui["_root"]} gui[""] = guiCreateScrollPane(40, 65, 100, 30, false, gui["_root"]) gui._placeHolders["qt_calendar_calendarview"] = {left = 31, top = 11, width = 100, height = 30, parent = gui[""]} gui["qt_spinbox_lineedit"] = guiCreateEdit(31, 11, 76, 30, "2012", false, gui[""]) guiEditSetMaxLength(gui["qt_spinbox_lineedit"], 32767) gui[""] = guiCreateScrollPane(40, 125, 331, 171, false, gui["_root"]) gui._placeHolders["textEdit"] = {left = 17, top = 11, width = 303, height = 149, parent = gui[""]} return gui, windowWidth, windowHeight end El unico limite en la vida, es tu imaginacion. Programar es la mejor forma de aprender a pensar.
Castillo Posted May 10, 2012 Posted May 10, 2012 Yo no presumi de nada, aqui tienen toda la conversacion si quieren leerla y opinar. Re: AYUDAME CON Qt to luaSent: Thu May 10, 2012 1:47 pm by oter001 SOLO TE DIGO A TU POR QE SABES SOBRE LUA Y YO NO ENTIENDO LA WIKI NO ENSEÑAN NI MIERDA MEJOR DICHO PEDIRE AYUDA A OTRO TU NO ENSEÑAS NADA POR Q TEMES Q A Q LOS OTROS APRENDAN Re: AYUDAME CON Qt to lua Sent: Wed May 09, 2012 11:37 pm by Solidsnake14 Pues si queres hacer eso, vas a tener que estudiar Lua. Re: AYUDAME CON Qt to lua Sent: Wed May 09, 2012 11:28 pm by oter001 NO ENTIENDO MEN nose sobre script Re: AYUDAME CON Qt to lua Sent: Wed May 09, 2012 9:15 pm by Solidsnake14 Usa el evento onClientGUIClick para cuando necesites ejecutar una funcion con un GUI. Re: AYUDAME CON Qt to lua Sent: Wed May 09, 2012 8:57 pm by oter001 CLaro men pero el problema es al funcion del cual se abre Re: AYUDAME CON Qt to lua Sent: Wed May 09, 2012 4:30 pm by Solidsnake14 El Qt To Lua funciona bien, por lo menos cuando yo lo use. Re: AYUDAME CON Qt to lua Sent: Wed May 09, 2012 1:42 pm by oter001 Ok men no ay problema si logramos ajustar este recurso talvez podriamos subirlo al community de mta y pongo que los autores somos los dos na mas solo que con ese code no se como ponerle el boton men tu eres pro en Lua o como mejor se diga scripter. Ok men mejorare Re: AYUDAME CON Qt to lua Sent: Tue May 08, 2012 8:40 pm by Solidsnake14 Mejora el modo de hablar y te ayudo. AYUDAME CON Qt to lua Sent: Tue May 08, 2012 3:44 pm by oter001 COMO MIERDAS LE PONGO EL BOTON QE SE ABRA AL PANEL ._. MIRA ESTE ES EL CODE San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Edikosh998 Posted May 10, 2012 Posted May 10, 2012 Intentas ayudar y te bardean. Que manera de agredecer... Sabias que?...Pensa que hay gente que pagar por aprender programacion. Aqui no, con la diferencia que al no pedir plata no vamos a disponer de toda ayuda... OK? WRS( World Racing Server) [server] = 8%
Castillo Posted May 11, 2012 Posted May 11, 2012 Lo que vos queres es crear la interface cuando se inicie el recurso? function build_MainWindow() local gui = {} gui._placeHolders = {} local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 414, 381 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Login windows By Oter", false) guiWindowSetSizable(gui["_root"], false) gui._placeHolders["toolBox"] = {left = 40, top = 65, width = 331, height = 231, parent = gui["_root"]} gui[""] = guiCreateScrollPane(40, 65, 100, 30, false, gui["_root"]) gui._placeHolders["qt_calendar_calendarview"] = {left = 31, top = 11, width = 100, height = 30, parent = gui[""]} gui["qt_spinbox_lineedit"] = guiCreateEdit(31, 11, 76, 30, "2012", false, gui[""]) guiEditSetMaxLength(gui["qt_spinbox_lineedit"], 32767) gui[""] = guiCreateScrollPane(40, 125, 331, 171, false, gui["_root"]) gui._placeHolders["textEdit"] = {left = 17, top = 11, width = 303, height = 149, parent = gui[""]} return gui, windowWidth, windowHeight end addEventHandler ( "onClientResourceStart", resourceRoot, build_MainWindow ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted May 11, 2012 Posted May 11, 2012 lol oter cree que solid tiene la obligacion de enseñarle ademas con esas palabrotas °-° elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted May 11, 2012 Posted May 11, 2012 Yo no tengo ninguna obligación? yo ayudo a la gente porque quiero. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted May 11, 2012 Posted May 11, 2012 a eso me refiero >. elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted May 11, 2012 Posted May 11, 2012 Entonces deberias hablar mejor, si no nadie te va a entender . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted May 11, 2012 Posted May 11, 2012 Lamento el Off Topic pero yo le entendi a Mota, aunque le falto una coma, y respecto a los PM, realmente no le hubiese ayudado Developer @ MYVAL
starksZ Posted May 11, 2012 Author Posted May 11, 2012 Eso ya lo se aunquesea no me enseñen aunquesea pasanme algun post en el wiki que enseñe a como ponerle el boton ok? alguien seria tan amable? El unico limite en la vida, es tu imaginacion. Programar es la mejor forma de aprender a pensar.
iFoReX Posted May 11, 2012 Posted May 11, 2012 https://wiki.multitheftauto.com/wiki/Main_Page Listo aprende y deja de joder a los que te ayudan elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted May 12, 2012 Posted May 12, 2012 Nadie te va a ayudar con esa actitud. Tema cerrado. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts