GlobalLobbyInviteWindow.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * GlobalLobbyInviteWindow.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../windows/CWindowObject.h"
  12. class CLabel;
  13. class FilledTexturePlayerColored;
  14. class TransparentFilledRectangle;
  15. class CListBox;
  16. class CButton;
  17. struct GlobalLobbyAccount;
  18. class GlobalLobbyInviteWindow : public CWindowObject
  19. {
  20. std::shared_ptr<FilledTexturePlayerColored> filledBackground;
  21. std::shared_ptr<CLabel> labelTitle;
  22. std::shared_ptr<CListBox> accountList;
  23. std::shared_ptr<TransparentFilledRectangle> listBackground;
  24. std::shared_ptr<CButton> buttonClose;
  25. public:
  26. GlobalLobbyInviteWindow();
  27. };
  28. class GlobalLobbyInviteAccountCard : public CIntObject
  29. {
  30. std::string accountID;
  31. std::shared_ptr<TransparentFilledRectangle> backgroundOverlay;
  32. std::shared_ptr<CLabel> labelName;
  33. std::shared_ptr<CLabel> labelStatus;
  34. std::shared_ptr<CLabel> labelInviteStatus;
  35. std::shared_ptr<CButton> buttonInvite;
  36. void clickPressed(const Point & cursorPosition) override;
  37. public:
  38. GlobalLobbyInviteAccountCard(const GlobalLobbyAccount & accountDescription);
  39. };