Game Development Community

Implementing the IGUIScreen

by Will O*Reagan · in Torque X 2D · 05/04/2008 (11: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?

#1
05/05/2008 (1:20 am)
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/05/2008 (1:52 am)
Ok, I've done it..

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

Thanks John
Will-O