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_lobbypanel_casual.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_lobbypanel_casual.h')
| -rw-r--r-- | game/client/tf/vgui/tf_lobbypanel_casual.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_lobbypanel_casual.h b/game/client/tf/vgui/tf_lobbypanel_casual.h new file mode 100644 index 0000000..e7c882c --- /dev/null +++ b/game/client/tf/vgui/tf_lobbypanel_casual.h @@ -0,0 +1,77 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// +#ifndef TF_LOBBYPANEL_CASUAL_H +#define TF_LOBBYPANEL_CASUAL_H + +#include "cbase.h" +#include "game/client/iviewport.h" +#include "tf_lobbypanel.h" +#include "tf_leaderboardpanel.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include <tier0/memdbgon.h> + + +class CBaseLobbyPanel; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +class CLobbyPanel_Casual : public CBaseLobbyPanel +{ + DECLARE_CLASS_SIMPLE( CLobbyPanel_Casual, CBaseLobbyPanel ); + +public: + CLobbyPanel_Casual( vgui::Panel *pParent, CBaseLobbyContainerFrame* pLobbyContainer ); + virtual ~CLobbyPanel_Casual(); + + // + // Panel overrides + // + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ) OVERRIDE; + virtual void PerformLayout( void ) OVERRIDE; + + virtual EMatchGroup GetMatchGroup( void ) const OVERRIDE; + + virtual void OnThink() OVERRIDE; + + virtual void FireGameEvent( IGameEvent *event ) OVERRIDE; + +private: + + MESSAGE_FUNC_PTR( OnCheckButtonChecked, "CheckButtonChecked", panel ); + + CPanelAnimationVarAliasType( int, m_iCategorySpacer, "category_spacer", "4", "proportional_int" ); + CPanelAnimationVarAliasType( int, m_iCategoryNameWidth, "category_name_width", "190", "proportional_int" ); + + virtual bool ShouldShowLateJoin() const OVERRIDE; + virtual void ApplyChatUserSettings( const LobbyPlayerInfo &player,KeyValues *pKV ) const OVERRIDE; + virtual const char* GetResFile() const OVERRIDE { return "Resource/UI/LobbyPanel_Casual.res"; } + + void WriteGameSettingsControls() OVERRIDE; + + void WriteCategories( void ); + + CUtlVector<vgui::Label *> m_vecSearchCriteriaLabels; + + vgui::HFont m_fontCategoryListItem; + vgui::HFont m_fontGroupHeader; + + float m_flCompetitiveRankProgress; + float m_flCompetitiveRankPrevProgress; + float m_flRefreshPlayerListTime; + bool m_bCompetitiveRankChangePlayedSound; + float m_flNextCasualStatsUpdateTime; + + bool m_bHasAMapSelected; + + CUtlMap< EMatchmakingGroupType, Panel* > m_mapGroupPanels; + CUtlMap< EGameCategory, Panel* > m_mapCategoryPanels; + + bool m_bCriteriaDirty; +}; + +#endif //TF_LOBBYPANEL_COMP_H
\ No newline at end of file |