GlobalLobbyAddChannelWindow.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 "GlobalLobbyObserver.h"
  12. #include "../windows/CWindowObject.h"
  13. class CLabel;
  14. class FilledTexturePlayerColored;
  15. class TransparentFilledRectangle;
  16. class CListBox;
  17. class CButton;
  18. struct GlobalLobbyAccount;
  19. class GlobalLobbyAddChannelWindow final : public CWindowObject
  20. {
  21. std::shared_ptr<FilledTexturePlayerColored> filledBackground;
  22. std::shared_ptr<CLabel> labelTitle;
  23. std::shared_ptr<CListBox> languageList;
  24. std::shared_ptr<TransparentFilledRectangle> listBackground;
  25. std::shared_ptr<CButton> buttonClose;
  26. public:
  27. GlobalLobbyAddChannelWindow();
  28. };
  29. class GlobalLobbyAddChannelWindowCard : public CIntObject
  30. {
  31. std::string languageID;
  32. std::shared_ptr<TransparentFilledRectangle> backgroundOverlay;
  33. std::shared_ptr<CLabel> labelNameNative;
  34. std::shared_ptr<CLabel> labelNameTranslated;
  35. void clickPressed(const Point & cursorPosition) override;
  36. public:
  37. GlobalLobbyAddChannelWindowCard(const std::string & languageID);
  38. };