Game Development Community

Implementing the IGUIScreen

by Will O-Reagan · in Torque X 2D · 05/04/2008 (4:53 pm) · 2 replies

I am trying to get my splash screen to work, however this line of code no longer is valid.

GUIUtil.InitGUIScreens("StarterGame.UI");

Has this been relocated?

About the author

I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.


#1
05/04/2008 (6:20 pm)
No need to init anything anymore, just go straight to the screen. Try something like this...

GUICanvas.Instance.SetContentControl("StarterGame.UI");

John K.
#2
05/04/2008 (6:52 pm)
Ok, I've done it..

SplashScreen _splashScreen = new SplashScreen(); 
GUICanvas.Instance.SetContentControl(_splashScreen);

Thanks John
Will-O