src/game/Utils/Animated_ProgressBar.cc
void SetProgressBarTitle(UINT32 ubID, const ST::string& str, SGPFont font, UINT8 ubForeColor, UINT8 ubShadowColor)
{
	PROGRESSBAR *pCurr;
	Assert( ubID < MAX_PROGRESSBARS );
	pCurr = pBar[ ubID ];
	if( !pCurr )
		return;
	pCurr->title = str;
	pCurr->usTitleFont = font;
	pCurr->ubTitleFontForeColor = ubForeColor;
	pCurr->ubTitleFontShadowColor = ubShadowColor;
}
//Assigning a title for the panel will automatically position the text horizontally centered on the
//panel and vertically centered from the top of the panel, to the top of the progress bar.
Assigning a title for the panel will automatically position the text horizontally centered on the
panel and vertically centered from the top of the panel, to the top of the progress bar.
Assigning a title for the panel will automatically position the text horizontally centered on the panel and vertically centered from the top of the panel to the top of the progress bar .
void SetProgressBarTitle(UINT32 ubID, const ST::string& str, SGPFont font, UINT8 ubForeColor, UINT8 ubShadowColor)
{
	PROGRESSBAR *pCurr;
	Assert( ubID < MAX_PROGRESSBARS );
	pCurr = pBar[ ubID ];
	if( !pCurr )
		return;
	pCurr->title = str;
	pCurr->usTitleFont = font;
	pCurr->ubTitleFontForeColor = ubForeColor;
	pCurr->ubTitleFontShadowColor = ubShadowColor;
}
void SetProgressBarTitle ( UINT32 ubID , const ST :: string & str , SGPFont font , UINT8 ubForeColor , UINT8 ubShadowColor ) { PROGRESSBAR * pCurr ; Assert ( ubID < MAX_PROGRESSBARS ) ; pCurr = pBar [ ubID ] ; if ( ! pCurr ) return ; pCurr -> title = str ; pCurr -> usTitleFont = font ; pCurr -> ubTitleFontForeColor = ubForeColor ; pCurr -> ubTitleFontShadowColor = ubShadowColor ; }
Assigning a title for the panel will automatically position the text horizontally centered on the
panel and vertically centered from the top of the panel, to the top of the progress bar.
Assigning a title for the panel will automatically position the text horizontally centered on the panel and vertically centered from the top of the panel to the top of the progress bar .