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.

76 lines
2.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef TF_LOBBYPANEL_CASUAL_H
  7. #define TF_LOBBYPANEL_CASUAL_H
  8. #include "cbase.h"
  9. #include "game/client/iviewport.h"
  10. #include "tf_lobbypanel.h"
  11. #include "tf_leaderboardpanel.h"
  12. // memdbgon must be the last include file in a .cpp file!!!
  13. #include <tier0/memdbgon.h>
  14. class CBaseLobbyPanel;
  15. //-----------------------------------------------------------------------------
  16. // Purpose:
  17. //-----------------------------------------------------------------------------
  18. class CLobbyPanel_Casual : public CBaseLobbyPanel
  19. {
  20. DECLARE_CLASS_SIMPLE( CLobbyPanel_Casual, CBaseLobbyPanel );
  21. public:
  22. CLobbyPanel_Casual( vgui::Panel *pParent, CBaseLobbyContainerFrame* pLobbyContainer );
  23. virtual ~CLobbyPanel_Casual();
  24. //
  25. // Panel overrides
  26. //
  27. virtual void ApplySchemeSettings( vgui::IScheme *pScheme ) OVERRIDE;
  28. virtual void PerformLayout( void ) OVERRIDE;
  29. virtual EMatchGroup GetMatchGroup( void ) const OVERRIDE;
  30. virtual void OnThink() OVERRIDE;
  31. virtual void FireGameEvent( IGameEvent *event ) OVERRIDE;
  32. private:
  33. MESSAGE_FUNC_PTR( OnCheckButtonChecked, "CheckButtonChecked", panel );
  34. CPanelAnimationVarAliasType( int, m_iCategorySpacer, "category_spacer", "4", "proportional_int" );
  35. CPanelAnimationVarAliasType( int, m_iCategoryNameWidth, "category_name_width", "190", "proportional_int" );
  36. virtual bool ShouldShowLateJoin() const OVERRIDE;
  37. virtual void ApplyChatUserSettings( const LobbyPlayerInfo &player,KeyValues *pKV ) const OVERRIDE;
  38. virtual const char* GetResFile() const OVERRIDE { return "Resource/UI/LobbyPanel_Casual.res"; }
  39. void WriteGameSettingsControls() OVERRIDE;
  40. void WriteCategories( void );
  41. CUtlVector<vgui::Label *> m_vecSearchCriteriaLabels;
  42. vgui::HFont m_fontCategoryListItem;
  43. vgui::HFont m_fontGroupHeader;
  44. float m_flCompetitiveRankProgress;
  45. float m_flCompetitiveRankPrevProgress;
  46. float m_flRefreshPlayerListTime;
  47. bool m_bCompetitiveRankChangePlayedSound;
  48. float m_flNextCasualStatsUpdateTime;
  49. bool m_bHasAMapSelected;
  50. CUtlMap< EMatchmakingGroupType, Panel* > m_mapGroupPanels;
  51. CUtlMap< EGameCategory, Panel* > m_mapCategoryPanels;
  52. bool m_bCriteriaDirty;
  53. };
  54. #endif //TF_LOBBYPANEL_COMP_H