CTutorialWindow.h 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * CTutorialWindow.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 CFilledTexture;
  13. class CButton;
  14. class CLabel;
  15. class CMultiLineLabel;
  16. class VideoWidget;
  17. enum TutorialMode
  18. {
  19. TOUCH_ADVENTUREMAP,
  20. TOUCH_BATTLE
  21. };
  22. class CTutorialWindow : public CWindowObject
  23. {
  24. TutorialMode mode;
  25. std::shared_ptr<CFilledTexture> background;
  26. std::shared_ptr<CButton> buttonOk;
  27. std::shared_ptr<CButton> buttonLeft;
  28. std::shared_ptr<CButton> buttonRight;
  29. std::shared_ptr<CLabel> labelTitle;
  30. std::shared_ptr<CMultiLineLabel> labelInformation;
  31. std::shared_ptr<VideoWidget> videoPlayer;
  32. std::vector<std::string> videos;
  33. int page;
  34. void exit();
  35. void next();
  36. void previous();
  37. void setContent();
  38. public:
  39. CTutorialWindow(const TutorialMode & m);
  40. static void openWindowFirstTime(const TutorialMode & m);
  41. };