//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "hud.h" #include "hl1_clientscoreboard.h" #include "c_team.h" #include "c_playerresource.h" #include "c_hl1mp_player.h" //#include "hl2mp_gamerules.h" #include #include #include #include #include #include #include "voice_status.h" #include "hl1mp_gamerules.h" #if 1 enum { TEAM_COMBINE = 2, TEAM_REBELS, }; using namespace vgui; #define TEAM_MAXCOUNT 5 // id's of sections used in the scoreboard enum EScoreboardSections { SCORESECTION_COMBINE = 1, SCORESECTION_REBELS = 2, SCORESECTION_FREEFORALL = 3, }; const int NumSegments = 7; static int coord[NumSegments+1] = { 0, 1, 2, 3, 4, 6, 9, 10 }; //----------------------------------------------------------------------------- // Purpose: Konstructor //----------------------------------------------------------------------------- CHL1MPClientScoreBoardDialog::CHL1MPClientScoreBoardDialog(IViewPort *pViewPort):CClientScoreBoardDialog(pViewPort) { } //----------------------------------------------------------------------------- // Purpose: Destructor //----------------------------------------------------------------------------- CHL1MPClientScoreBoardDialog::~CHL1MPClientScoreBoardDialog() { } void CHL1MPClientScoreBoardDialog::Paint() { // int m_nTextureID = vgui::surface()->CreateNewTextureID(); // vgui::surface()->DrawSetTexture( TrackerImage ); // vgui::surface()->DrawTexturedRect( 0, 0, 640, 480 ); // m_pPlayerList->SetBgColor( Color(0, 0, 0, 0) ); // surface()->DrawSetColor( 0, 0, 0, 128 ); // vgui::surface()->DrawFilledRect( 0,0, 4000,4000 ); // const ConVar * hostname = cvar->FindVar( "hostname" ); // SetControlString("ServerName", hostname->GetString() ); // MoveLabelToFront("ServerName"); // Label *entry = dynamic_cast