Improved loading messages (the 'Loading track graphics' was lacking, whereas this process is sometimes long)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3571 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 77d56dbf2183846e8c81a88d2910d041c1d9097d Former-commit-id: e4dc6cc6fc570690e9bba55dea5340663fba6df1
This commit is contained in:
parent
785c73efc4
commit
773e075312
2 changed files with 7 additions and 3 deletions
|
@ -783,9 +783,9 @@ ReInitCars(void)
|
|||
GfLogError("No descriptor file for robot %s or parameter errors (1)\n", robotModuleName);
|
||||
snprintf(buf, sizeof(buf), "Error: May be no driver, or some parameters are out of bound");
|
||||
ReUI().addLoadingMessage(buf);
|
||||
snprintf(buf, sizeof(buf), " Have a look to the console window to get the detailed error messages");
|
||||
snprintf(buf, sizeof(buf), " Have a look at the console window for mode details about the error");
|
||||
ReUI().addLoadingMessage(buf);
|
||||
snprintf(buf, sizeof(buf), " Will go back to the config menu in 10 s");
|
||||
snprintf(buf, sizeof(buf), " Back to the config menu in 10 s ...");
|
||||
ReUI().addLoadingMessage(buf);
|
||||
|
||||
// Wait some time to allow the user to read the message!
|
||||
|
|
|
@ -386,6 +386,10 @@ ReRaceRealStart(void)
|
|||
// Initialize the graphics engine.
|
||||
if (ReUI().initializeGraphics())
|
||||
{
|
||||
snprintf(buf, sizeof(buf), "Loading graphics for track %s ...",
|
||||
ReInfo->track->name);
|
||||
ReUI().addLoadingMessage(buf);
|
||||
|
||||
// Initialize the track graphics.
|
||||
ReUI().loadTrackGraphics(ReInfo->track);
|
||||
}
|
||||
|
@ -448,7 +452,7 @@ ReRaceRealStart(void)
|
|||
// Initialize cars graphics.
|
||||
if (ReInfo->_displayMode == RM_DISP_MODE_NORMAL)
|
||||
{
|
||||
ReUI().addLoadingMessage("Loading cars ...");
|
||||
ReUI().addLoadingMessage("Loading graphics for all cars ...");
|
||||
|
||||
ReUI().loadCarsGraphics(ReOutputSituation()->s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue