Game Development Community

Gui buttons not working

by Jason Green · in Torque Game Builder · 04/26/2006 (6:14 pm) · 1 replies

I've made a simple gui with a start and quit button. Right now all they do is echo a message. Everything works fine in the gui editor, but when I run the game the buttons don't light up or do anything when I press them.

#1
04/28/2006 (3:26 pm)
I ran into this problem as well:

Gui Buttons Not Working

If you comment out the following lines in main.cs:

// Remove the following four lines if you would like to start the game without running the
	// level builder.
//		if ($runWithEditors)
//		{
//			toggleLevelEditor();
//			return;
//		}

Your gui should work. You can use toggleLevelEditor(); in the console to get back to the editor.

Good luck!