mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user