Loading and Ending Screens in Racing
by Kamal Syed · in Torque Game Engine · 02/29/2004 (12:05 pm) · 3 replies
I am currently modding the Racing game, and one thing I noticed is that on some powerhouse PCs, the loading screen goes by very fast to the extent that you don't have enough time to read the mission briefing/summary on the LoadingGui.gui. Hence, I thought maybe there is a way to suspend the loading screen after all objects are loaded, yet preventing the LoadingGui from disappearing until the user clicks an "OK" button of some sorts that would take him to the PlayGui screen.
I've tried to enter breaking points to see where I can suspend the Loading screen, and I was able to to find a nice clean spot to stop the transitions, and that would be at GameConnection::StartMission() from common/server/clientConnection.cs. However, I was unsuccessful in creating the "OK" button that would take me to the PlayGui screen, and so this is where I am stuck now. I need a way to create a button and a corresponding triggered method that would take me to the PlayGui after all objects and lighting have been done.
In parallel, I need something similar to the finish screen, where it shows the score listing, waits a few minutes, then carries on to the next mission to load.
Thanks for your help.
I've tried to enter breaking points to see where I can suspend the Loading screen, and I was able to to find a nice clean spot to stop the transitions, and that would be at GameConnection::StartMission() from common/server/clientConnection.cs. However, I was unsuccessful in creating the "OK" button that would take me to the PlayGui screen, and so this is where I am stuck now. I need a way to create a button and a corresponding triggered method that would take me to the PlayGui after all objects and lighting have been done.
In parallel, I need something similar to the finish screen, where it shows the score listing, waits a few minutes, then carries on to the next mission to load.
Thanks for your help.
About the author
#2
02/29/2004 (1:28 pm)
Try making it in so instead of Canvas.setContent(PlayGui); it loads a Button that loads playgui
#3
Cool. Thank you Ben and Chris.
02/29/2004 (3:35 pm)
Awesome. I offset the call to Canvas.setContent(PlayGui); until that "OK" button was clicked. Also, I set the button's visibility to 1 only when all mission objects were loaded, so that the user can only interact with it when everything is done.Cool. Thank you Ben and Chris.
Associate Kyle Carter