You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.7 KiB
66 lines
1.7 KiB
![]()
2 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
|
||
|
#ifndef CHL1MPClientScoreBoardDialog_H
|
||
|
#define CHL1MPClientScoreBoardDialog_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include <clientscoreboarddialog.h>
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Purpose: Game ScoreBoard
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CHL1MPClientScoreBoardDialog : public CClientScoreBoardDialog
|
||
|
{
|
||
|
private:
|
||
|
DECLARE_CLASS_SIMPLE(CHL1MPClientScoreBoardDialog, CClientScoreBoardDialog);
|
||
|
|
||
|
public:
|
||
|
CHL1MPClientScoreBoardDialog(IViewPort *pViewPort);
|
||
|
~CHL1MPClientScoreBoardDialog();
|
||
|
|
||
|
|
||
|
protected:
|
||
|
// scoreboard overrides
|
||
|
virtual void InitScoreboardSections();
|
||
|
virtual void UpdateTeamInfo();
|
||
|
virtual bool GetPlayerScoreInfo(int playerIndex, KeyValues *outPlayerInfo);
|
||
|
virtual void UpdatePlayerInfo();
|
||
|
|
||
|
virtual void Paint();
|
||
|
|
||
|
// vgui overrides for rounded corner background
|
||
|
virtual void PaintBackground();
|
||
|
virtual void PaintBorder();
|
||
|
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
|
||
|
|
||
|
private:
|
||
|
virtual void AddHeader(); // add the start header of the scoreboard
|
||
|
virtual void AddSection(int teamType, int teamNumber); // add a new section header for a team
|
||
|
|
||
|
int GetSectionFromTeamNumber( int teamNumber );
|
||
|
enum
|
||
|
{
|
||
|
CSTRIKE_NAME_WIDTH = 220,
|
||
|
CSTRIKE_CLASS_WIDTH = 56,
|
||
|
CSTRIKE_SCORE_WIDTH = 40,
|
||
|
CSTRIKE_DEATH_WIDTH = 46,
|
||
|
CSTRIKE_PING_WIDTH = 46,
|
||
|
// CSTRIKE_VOICE_WIDTH = 40,
|
||
|
// CSTRIKE_FRIENDS_WIDTH = 24,
|
||
|
};
|
||
|
|
||
|
// rounded corners
|
||
|
Color m_bgColor;
|
||
|
Color m_borderColor;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // CHL1MPClientScoreBoardDialog_H
|