Game Development Community

Mainscreen.gui Call?

by David Taylor · in Torque Game Builder · 03/08/2008 (9:15 pm) · 2 replies

Okay, I feel a bit silly having to ask this, but I just can't find it.

I'm trying to work on the start up guis, (logos, menus, etc), but I can't get them to run in the actual program. So I can get the level to start no problem, and I can take away the call for the level to start with no problem, but where should I be loading up each logo gui and running it? I already have made exec calls for these guis in main.cs.

Also, where is mainscreen.gui getting called from? I figured that would be the most sensible place to start. :/

#1
03/09/2008 (1:14 am)
MainScreenGui is getting called from the startGame function in game.cs:

Canvas.setContent(mainScreenGui);

From there, you can replace mainScreenGui with the name of your first start up GUI.
#2
03/09/2008 (1:58 am)
Thanks! I have no idea how I overlooked that. Game.cs is still open in my visual studio!

You, kind sir, have made my day! :)