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.

46 lines
1.1 KiB

  1. //========= Copyright � 1996-2001, Valve LLC, All rights reserved. ============
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef DIALOGSERVERPASSWORD_H
  8. #define DIALOGSERVERPASSWORD_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. //-----------------------------------------------------------------------------
  13. // Purpose: Prompt for user to enter a password to be able to connect to the server
  14. //-----------------------------------------------------------------------------
  15. class CDialogServerPassword : public vgui::Frame
  16. {
  17. public:
  18. CDialogServerPassword(vgui::Panel *parent);
  19. ~CDialogServerPassword();
  20. // initializes the dialog and brings it to the foreground
  21. void Activate(const char *serverName, unsigned int serverID);
  22. /* message returned:
  23. "JoinServerWithPassword"
  24. "serverID"
  25. "password"
  26. */
  27. private:
  28. virtual void OnCommand(const char *command);
  29. vgui::Label *m_pInfoLabel;
  30. vgui::Label *m_pGameLabel;
  31. vgui::TextEntry *m_pPasswordEntry;
  32. vgui::Button *m_pConnectButton;
  33. typedef vgui::Frame BaseClass;
  34. int m_iServerID;
  35. };
  36. #endif // DIALOGSERVERPASSWORD_H