diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/vgui/tf_leaderboardpanel.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/vgui/tf_leaderboardpanel.h')
| -rw-r--r-- | game/client/tf/vgui/tf_leaderboardpanel.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_leaderboardpanel.h b/game/client/tf/vgui/tf_leaderboardpanel.h new file mode 100644 index 0000000..8420d84 --- /dev/null +++ b/game/client/tf/vgui/tf_leaderboardpanel.h @@ -0,0 +1,36 @@ +#ifndef TF_LEADERBOARDPANEL_H +#define TF_LEADERBOARDPANEL_H + +#include "vgui_controls/EditablePanel.h" +#include "tf_wardata.h" +#include "vgui_controls/ProgressBar.h" +#include "quest_log_panel.h" +#include "tf_asyncpanel.h" + +using namespace vgui; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +class CTFLeaderboardPanel : public CBaseASyncPanel +{ + DECLARE_CLASS_SIMPLE( CTFLeaderboardPanel, CBaseASyncPanel ); +public: + CTFLeaderboardPanel( Panel *pParent, const char *pszPanelName ); + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ) OVERRIDE; + virtual void ApplySettings( KeyValues *inResourceData ); + +protected: + virtual bool GetLeaderboardData( CUtlVector< LeaderboardEntry_t* >& scores ) = 0; + virtual bool UpdateLeaderboards(); + virtual bool CheckForData_Internal() OVERRIDE; + + CUtlVector< EditablePanel* > m_vecLeaderboardEntries; + + CPanelAnimationVarAliasType( int, m_yEntryStep, "entry_step", "5", "proportional_int"); + Color m_EvenTextColor; + Color m_OddTextColor; + Color m_LocalPlayerTextColor; +}; + +#endif //TF_LEADERBOARDPANEL_H
\ No newline at end of file |