summaryrefslogtreecommitdiff
path: root/game/client/hl2mp/ui/hl2mpclientscoreboard.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/hl2mp/ui/hl2mpclientscoreboard.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/hl2mp/ui/hl2mpclientscoreboard.h')
-rw-r--r--game/client/hl2mp/ui/hl2mpclientscoreboard.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/game/client/hl2mp/ui/hl2mpclientscoreboard.h b/game/client/hl2mp/ui/hl2mpclientscoreboard.h
new file mode 100644
index 0000000..d933658
--- /dev/null
+++ b/game/client/hl2mp/ui/hl2mpclientscoreboard.h
@@ -0,0 +1,63 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CHL2MPCLIENTSCOREBOARDDIALOG_H
+#define CHL2MPCLIENTSCOREBOARDDIALOG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <clientscoreboarddialog.h>
+
+//-----------------------------------------------------------------------------
+// Purpose: Game ScoreBoard
+//-----------------------------------------------------------------------------
+class CHL2MPClientScoreBoardDialog : public CClientScoreBoardDialog
+{
+private:
+ DECLARE_CLASS_SIMPLE(CHL2MPClientScoreBoardDialog, CClientScoreBoardDialog);
+
+public:
+ CHL2MPClientScoreBoardDialog(IViewPort *pViewPort);
+ ~CHL2MPClientScoreBoardDialog();
+
+
+protected:
+ // scoreboard overrides
+ virtual void InitScoreboardSections();
+ virtual void UpdateTeamInfo();
+ virtual bool GetPlayerScoreInfo(int playerIndex, KeyValues *outPlayerInfo);
+ virtual void UpdatePlayerInfo();
+
+ // 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 = 320,
+ 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 // CHL2MPCLIENTSCOREBOARDDIALOG_H