GUI buttons not working?
by Richard Foge · in Game Design and Creative Issues · 04/09/2006 (9:40 pm) · 0 replies
Just picked up TGB, was working through a few of the tutorials and i've gotten hung up on a GUI button issue.
When I set up a new GUI with buttons in the editor and then hit F10 to exit the editor with that GUI file open the buttons are clickable and seem to work as planned.
After saving that GUI, making sure that it's loaded in the context of a 'game', and then using the 'canvas.pushDialog(NameOfGUI);' call in the scripts - the GUI shows up and looks exactly like it should, but none of the buttons are clickable.
I've tried this a couple of times, (the GUI in the checkers tutorial, the quicky button demo, and a test GUI set up from scratch), and I haven't been able to figure out what I am doing wrong.
Anyone else out there run into this and find a way around it?
Thanks!
Crossposted at: Torque 2D Game Builder Private Forums >> Getting Started
When I set up a new GUI with buttons in the editor and then hit F10 to exit the editor with that GUI file open the buttons are clickable and seem to work as planned.
After saving that GUI, making sure that it's loaded in the context of a 'game', and then using the 'canvas.pushDialog(NameOfGUI);' call in the scripts - the GUI shows up and looks exactly like it should, but none of the buttons are clickable.
I've tried this a couple of times, (the GUI in the checkers tutorial, the quicky button demo, and a test GUI set up from scratch), and I haven't been able to figure out what I am doing wrong.
Anyone else out there run into this and find a way around it?
Thanks!
Crossposted at: Torque 2D Game Builder Private Forums >> Getting Started