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.

32 lines
848 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef TF_BADGE_PANEL_H
  7. #define TF_BADGE_PANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/EditablePanel.h"
  12. #include "tf_match_description.h"
  13. class CTFBadgePanel : public vgui::EditablePanel
  14. {
  15. DECLARE_CLASS_SIMPLE( CTFBadgePanel, vgui::EditablePanel );
  16. public:
  17. CTFBadgePanel( vgui::Panel *pParent, const char *pName );
  18. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  19. void SetupBadge( const IProgressionDesc* pProgress, const LevelInfo_t& levelInfo );
  20. void SetupBadge( const IProgressionDesc* pProgress, const CSteamID& steamID );
  21. private:
  22. class CModelImagePanel *m_pBadgePanel;
  23. uint32 m_nPrevLevel;
  24. };
  25. #endif // TF_BADGE_PANEL_H