void CHudAccount::Paint() { // Update the time. C_CSPlayer *pPlayer = C_CSPlayer::GetLocalCSPlayer(); if ( pPlayer ) { SetDisplayValue( (int)pPlayer->GetAccount() ); SetShouldDisplayValue( true ); BaseClass::Paint(); } }
void CHudRoundTimer::Paint() { // Update the time. C_CSGameRules *pRules = CSGameRules(); if ( pRules ) { SetDisplayValue( (int)ceil( CSGameRules()->TimeRemaining() ) ); SetShouldDisplayValue( true ); BaseClass::Paint(); } }
//----------------------------------------------------------------------------- // Purpose: Constructor //----------------------------------------------------------------------------- CHudMoneyClassic::CHudMoneyClassic( const char *pElementName ) : BaseClass(NULL, "HudMoneyClassic"), CHudElement( pElementName ) { SetShouldDisplayValue(true); SetShouldDisplaySmallValueMoney(false); }