//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef TFWINPANEL_H #define TFWINPANEL_H #ifdef _WIN32 #pragma once #endif #include #include #include #include "hud.h" #include "hudelement.h" #include "econ_controls.h" #include "vgui_avatarimage.h" using namespace vgui; #define NUM_NOTABLE_PLAYERS 3 #define NUM_CATEGORIES 2 #define NUM_ITEMS_PER_CATEGORY 3 class CTFWinPanel : public EditablePanel, public CHudElement { private: DECLARE_CLASS_SIMPLE( CTFWinPanel, EditablePanel ); public: CTFWinPanel( const char *pElementName ); virtual void Reset(); virtual void Init(); virtual void ApplySchemeSettings( vgui::IScheme *pScheme ); virtual void ApplySettings( KeyValues *inResourceData ); virtual void FireGameEvent( IGameEvent * event ); virtual void OnThink(); virtual bool ShouldDraw( void ); virtual void SetVisible( bool state ); virtual int GetRenderGroupPriority() { return 70; } private: void UpdateTeamInfo(); private: EditablePanel *m_pTeamScorePanel; CExLabel *m_pRedTeamName; CExLabel *m_pBlueTeamName; CAvatarImagePanel *m_pRedLeaderAvatarImage; CAvatarImagePanel *m_pBlueLeaderAvatarImage; EditablePanel *m_pRedLeaderAvatarBG; EditablePanel *m_pBlueLeaderAvatarBG; float m_flTimeUpdateTeamScore; int m_iBlueTeamScore; int m_iRedTeamScore; bool m_bShouldBeVisible; }; #endif //TFWINPANEL_H