Counter Strike : Global Offensive Source Code
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.

41 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef PLAYERLISTDIALOG_H
  8. #define PLAYERLISTDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Frame.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: List of players, their ingame-name and their friends-name
  15. //-----------------------------------------------------------------------------
  16. class CPlayerListDialog : public vgui::Frame
  17. {
  18. DECLARE_CLASS_SIMPLE( CPlayerListDialog, vgui::Frame );
  19. public:
  20. explicit CPlayerListDialog(vgui::Panel *parent);
  21. ~CPlayerListDialog();
  22. virtual void Activate();
  23. private:
  24. MESSAGE_FUNC( OnItemSelected, "ItemSelected" );
  25. virtual void OnCommand(const char *command);
  26. void ToggleMuteStateOfSelectedUser();
  27. void RefreshPlayerProperties();
  28. vgui::ListPanel *m_pPlayerList;
  29. vgui::Button *m_pMuteButton;
  30. };
  31. #endif // PLAYERLISTDIALOG_H