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.

35 lines
1.1 KiB

  1. #ifndef TF_LEADERBOARDPANEL_H
  2. #define TF_LEADERBOARDPANEL_H
  3. #include "vgui_controls/EditablePanel.h"
  4. #include "tf_wardata.h"
  5. #include "vgui_controls/ProgressBar.h"
  6. #include "quest_log_panel.h"
  7. #include "tf_asyncpanel.h"
  8. using namespace vgui;
  9. //-----------------------------------------------------------------------------
  10. // Purpose:
  11. //-----------------------------------------------------------------------------
  12. class CTFLeaderboardPanel : public CBaseASyncPanel
  13. {
  14. DECLARE_CLASS_SIMPLE( CTFLeaderboardPanel, CBaseASyncPanel );
  15. public:
  16. CTFLeaderboardPanel( Panel *pParent, const char *pszPanelName );
  17. virtual void ApplySchemeSettings( vgui::IScheme *pScheme ) OVERRIDE;
  18. virtual void ApplySettings( KeyValues *inResourceData );
  19. protected:
  20. virtual bool GetLeaderboardData( CUtlVector< LeaderboardEntry_t* >& scores ) = 0;
  21. virtual bool UpdateLeaderboards();
  22. virtual bool CheckForData_Internal() OVERRIDE;
  23. CUtlVector< EditablePanel* > m_vecLeaderboardEntries;
  24. CPanelAnimationVarAliasType( int, m_yEntryStep, "entry_step", "5", "proportional_int");
  25. Color m_EvenTextColor;
  26. Color m_OddTextColor;
  27. Color m_LocalPlayerTextColor;
  28. };
  29. #endif //TF_LEADERBOARDPANEL_H