- Added ini property to control how long (in seconds) the load screen should be visible before disposal: Default: 2 seconds

o This is needed, so we can read the new loadscreen hints text
o Property name: ADDITIONAL_DELAY_UNTIL_LOADSCREEN_DISPOSAL

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6055 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-05-02 21:05:31 +00:00
parent 3083ac66b3
commit a0a0490771
3 changed files with 21 additions and 5 deletions
+10 -4
View File
@@ -30,6 +30,10 @@ UINT16 gusLeftmostShaded = 0;
extern BOOLEAN bShowSmallImage;
// Flugente: stuff needed for loadscreen hints
extern UINT16 num_found_loadscreenhints;
static UINT16 usCurrentLoadScreenHint = 0;
void CreateLoadingScreenProgressBar()
{
ResetLoadScreenHint();
@@ -69,6 +73,12 @@ void CreateLoadingScreenProgressBar()
void RemoveLoadingScreenProgressBar()
{
// WANNE: Sleep for a while, so we have time to read the load screen hint
if (gGameExternalOptions.gfUseLoadScreenHints && gGameExternalOptions.ubAdditionalDelayUntilLoadScreenDisposal > 0 && usCurrentLoadScreenHint )
{
Sleep(gGameExternalOptions.ubAdditionalDelayUntilLoadScreenDisposal * 1000);
}
RemoveProgressBar( 0 );
SetFontShadow(DEFAULT_SHADOW);
}
@@ -222,10 +232,6 @@ void RemoveProgressBar( UINT8 ubID )
}
}
// Flugente: stuff needed for loadscreen hints
extern UINT16 num_found_loadscreenhints;
static UINT16 usCurrentLoadScreenHint = 0;
void ResetLoadScreenHint()
{
usCurrentLoadScreenHint = 0;