@@ -303,15 +303,15 @@ void CHudTournament::PreparePanel( void )
303303 pszLabelText = " Tournament_Instructions_Waiting" ;
304304 }
305305
306- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( pszLabelText ) );
307- SetDialogVariable ( " tournamentstatelabel" , g_pVGuiLocalize->Find ( " Tournament_WaitingForTeam" ) );
306+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( pszLabelText ), false );
307+ SetDialogVariable ( " tournamentstatelabel" , g_pVGuiLocalize->Find ( " Tournament_WaitingForTeam" ), false );
308308 SetPlayerPanelsVisible ( true );
309309 m_pModeImage->SetVisible ( m_bCompetitiveMode );
310310 }
311311 else
312312 {
313- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " Tournament_Instructions" ) );
314- SetDialogVariable ( " tournamentstatelabel" , g_pVGuiLocalize->Find ( " Tournament_WaitingForTeams" ) );
313+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " Tournament_Instructions" ), false );
314+ SetDialogVariable ( " tournamentstatelabel" , g_pVGuiLocalize->Find ( " Tournament_WaitingForTeams" ), false );
315315 SetPlayerPanelsVisible ( false );
316316 m_pModeImage->SetVisible ( false );
317317 }
@@ -337,36 +337,36 @@ void CHudTournament::PreparePanel( void )
337337 if ( pFormatString )
338338 {
339339 g_pVGuiLocalize->ConstructString_safe ( szCountdown, pFormatString, 1 , wzVal );
340- SetDialogVariable ( " tournamentstatelabel" , szCountdown );
340+ SetDialogVariable ( " tournamentstatelabel" , szCountdown, false );
341341 }
342342
343343 if ( bAutoReady )
344344 {
345- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " " ) );
345+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " " ), false );
346346 m_pModeImage->SetVisible ( false );
347347 SetPlayerPanelsVisible ( false );
348348 }
349349 else if ( nTime <= TOURNAMENT_NOCANCEL_TIME )
350350 {
351- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " " ) );
351+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " " ), false );
352352 }
353353 else
354354 {
355355 if ( m_bReadyStatusMode )
356356 {
357357 if ( bSteamController )
358358 {
359- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " Tournament_Instructions_Ready_NoKeyHintText" ) );
359+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " Tournament_Instructions_Ready_NoKeyHintText" ), false );
360360 bShowReadyHintIcon = true ;
361361 }
362362 else
363363 {
364- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " Tournament_Instructions_Ready" ) );
364+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " Tournament_Instructions_Ready" ), false );
365365 }
366366 }
367367 else
368368 {
369- SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " " ) );
369+ SetDialogVariable ( " readylabel" , g_pVGuiLocalize->Find ( " " ), false );
370370 }
371371 }
372372
@@ -415,13 +415,13 @@ void CHudTournament::PreparePanel( void )
415415#endif
416416
417417 C_TFTeam *pBlueTeam = GetGlobalTFTeam ( TF_TEAM_BLUE );
418- SetDialogVariable ( " bluenamelabel" , pBlueTeam ? pBlueTeam->Get_Localized_Name () : L" BLU" );
418+ SetDialogVariable ( " bluenamelabel" , pBlueTeam ? pBlueTeam->Get_Localized_Name () : L" BLU" , false );
419419
420420 C_TFTeam *pRedTeam = GetGlobalTFTeam ( TF_TEAM_RED );
421- SetDialogVariable ( " rednamelabel" , pRedTeam ? pRedTeam->Get_Localized_Name () : L" RED" );
421+ SetDialogVariable ( " rednamelabel" , pRedTeam ? pRedTeam->Get_Localized_Name () : L" RED" , false );
422422
423- SetDialogVariable ( " bluestate" , TFGameRules ()->IsTeamReady ( TF_TEAM_BLUE ) ? g_pVGuiLocalize->Find ( " Tournament_TeamReady" ) : g_pVGuiLocalize->Find ( " Tournament_TeamNotReady" ) );
424- SetDialogVariable ( " redstate" , TFGameRules ()->IsTeamReady ( TF_TEAM_RED ) ? g_pVGuiLocalize->Find ( " Tournament_TeamReady" ) : g_pVGuiLocalize->Find ( " Tournament_TeamNotReady" ) );
423+ SetDialogVariable ( " bluestate" , TFGameRules ()->IsTeamReady ( TF_TEAM_BLUE ) ? g_pVGuiLocalize->Find ( " Tournament_TeamReady" ) : g_pVGuiLocalize->Find ( " Tournament_TeamNotReady" ), false );
424+ SetDialogVariable ( " redstate" , TFGameRules ()->IsTeamReady ( TF_TEAM_RED ) ? g_pVGuiLocalize->Find ( " Tournament_TeamReady" ) : g_pVGuiLocalize->Find ( " Tournament_TeamNotReady" ), false );
425425
426426 if ( m_bTeamReady[TF_TEAM_BLUE] != TFGameRules ()->IsTeamReady ( TF_TEAM_BLUE ) || m_bTeamReady[TF_TEAM_RED] != TFGameRules ()->IsTeamReady ( TF_TEAM_RED ) )
427427 {
@@ -479,7 +479,7 @@ void CHudTournament::PreparePanel( void )
479479 _snwprintf ( szWindConditions, ARRAYSIZE ( szWindConditions ), STRING_FMT STRING_FMT, szWindConditions, g_pVGuiLocalize->Find ( " Tournament_WinConditionsNone" ) );
480480 }
481481
482- SetDialogVariable ( " winconditions" , szWindConditions );
482+ SetDialogVariable ( " winconditions" , szWindConditions, false );
483483}
484484
485485// -----------------------------------------------------------------------------
@@ -1203,7 +1203,7 @@ void CHudTournamentSetup::OnTick( void )
12031203 m_pNameEntry->SetText ( ( iLocalTeam == TF_TEAM_BLUE ) ? mp_tournament_blueteamname.GetString () : mp_tournament_redteamname.GetString () );
12041204 }
12051205
1206- SetDialogVariable ( " tournamentstatelabel" , TFGameRules ()->IsTeamReady ( iLocalTeam ) ? g_pVGuiLocalize->Find ( " Tournament_TeamSetupReady" ) : g_pVGuiLocalize->Find ( " Tournament_TeamSetupNotReady" ) );
1206+ SetDialogVariable ( " tournamentstatelabel" , TFGameRules ()->IsTeamReady ( iLocalTeam ) ? g_pVGuiLocalize->Find ( " Tournament_TeamSetupReady" ) : g_pVGuiLocalize->Find ( " Tournament_TeamSetupNotReady" ), false );
12071207
12081208 m_flNextThink = gpGlobals->curtime + TOURNAMENT_PANEL_UPDATE_INTERVAL;
12091209 }
@@ -1435,7 +1435,7 @@ void CHudStopWatch::OnTick( void )
14351435
14361436 m_pStopWatchImage->SetImage ( " ../hud/ico_time_none" );
14371437
1438- SetDialogVariable ( " stopwatchlabel" , g_pVGuiLocalize->Find ( " Tournament_StopWatchNoCap" ) );
1438+ SetDialogVariable ( " stopwatchlabel" , g_pVGuiLocalize->Find ( " Tournament_StopWatchNoCap" ), false );
14391439 }
14401440 else if ( TFGameRules ()->GetStopWatchState () == STOPWATCH_RUNNING )
14411441 {
@@ -1476,8 +1476,8 @@ void CHudStopWatch::OnTick( void )
14761476 pszPoints = g_pVGuiLocalize->Find ( " #Tournament_StopWatch_Points" );
14771477 }
14781478
1479- SetDialogVariable ( " pointslabel" , pszPoints );
1480- SetDialogVariable ( " scoretobeat" , wzScoreVal );
1479+ SetDialogVariable ( " pointslabel" , pszPoints, false );
1480+ SetDialogVariable ( " scoretobeat" , wzScoreVal, false );
14811481
14821482 wchar_t wzHelp[128 ];
14831483
@@ -1490,7 +1490,7 @@ void CHudStopWatch::OnTick( void )
14901490 g_pVGuiLocalize->ConstructString_safe ( wzHelp, g_pVGuiLocalize->Find ( " Tournament_StopWatch_TimeVictoryDefender" ), 1 , pDefender->Get_Localized_Name () );
14911491 }
14921492
1493- SetDialogVariable ( " descriptionlabel" , wzHelp );
1493+ SetDialogVariable ( " descriptionlabel" , wzHelp, false );
14941494
14951495 if ( pTimer && !pTimer->IsWatchingTimeStamps () )
14961496 {
@@ -1513,7 +1513,7 @@ void CHudStopWatch::OnTick( void )
15131513 m_pStopWatchDescriptionBG->SetVisible ( false );
15141514 m_pStopWatchDescriptionLabel->SetVisible ( false );
15151515
1516- SetDialogVariable ( " descriptionlabel" , g_pVGuiLocalize->Find ( " #Tournament_StopWatch_CapVictory" ) );
1516+ SetDialogVariable ( " descriptionlabel" , g_pVGuiLocalize->Find ( " #Tournament_StopWatch_CapVictory" ), false );
15171517
15181518 m_pStopWatchImage->SetImage ( " ../hud/ico_time_60" );
15191519
@@ -1537,7 +1537,7 @@ void CHudStopWatch::OnTick( void )
15371537 g_pVGuiLocalize->ConstructString_safe ( wzScoreVal, g_pVGuiLocalize->Find ( " Tournament_StopWatchPointCaptureSpectator" ), 2 , wzVal, iPoints == 1 ? g_pVGuiLocalize->Find ( " #Tournament_StopWatch_Point" ) : g_pVGuiLocalize->Find ( " #Tournament_StopWatch_Points" ) );
15381538 }
15391539
1540- SetDialogVariable ( " stopwatchlabel" , wzScoreVal );
1540+ SetDialogVariable ( " stopwatchlabel" , wzScoreVal, false );
15411541 }
15421542 }
15431543}
0 commit comments