Team Fortress 2 Source Code as on 22/4/2020
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.
|
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef TFWINPANEL_H
#define TFWINPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/EditablePanel.h>
#include <game/client/iviewport.h>
#include <vgui/IScheme.h>
#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
|