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.

48 lines
919 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. // $NoKeywords: $
  5. //=============================================================================//
  6. #ifndef STATCARD_H
  7. #define STATCARD_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui/IScheme.h>
  12. #include "hud.h"
  13. #include "hudelement.h"
  14. #include "vgui_avatarimage.h"
  15. #include "cs_shareddefs.h"
  16. #include <vgui_controls/EditablePanel.h>
  17. using namespace vgui;
  18. class StatCard : public EditablePanel
  19. {
  20. private:
  21. DECLARE_CLASS_SIMPLE( StatCard, EditablePanel );
  22. public:
  23. StatCard(vgui::Panel *parent, const char *name);
  24. ~StatCard();
  25. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  26. void UpdateInfo();
  27. protected:
  28. ImagePanel* m_pAvatarDefault;
  29. //ImagePanel* m_pBackgroundArt;
  30. CAvatarImagePanel* m_pAvatar;
  31. Label* m_pName;
  32. Label* m_pKillToDeathRatio;
  33. Label* m_pStars;
  34. private:
  35. };
  36. #endif //STATCARD_H