StackInfoBasicPanel.h 900 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * StackInfoBasicPanel.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 "../gui/CIntObject.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. class CStack;
  14. VCMI_LIB_NAMESPACE_END
  15. class CLabel;
  16. class CMultiLineLabel;
  17. class CAnimImage;
  18. class StackInfoBasicPanel : public CIntObject
  19. {
  20. private:
  21. std::shared_ptr<CPicture> background;
  22. std::shared_ptr<CPicture> background2;
  23. std::vector<std::shared_ptr<CLabel>> labels;
  24. std::vector<std::shared_ptr<CMultiLineLabel>> labelsMultiline;
  25. std::vector<std::shared_ptr<CAnimImage>> icons;
  26. public:
  27. StackInfoBasicPanel(const CStack * stack, bool initializeBackground);
  28. void show(Canvas & to) override;
  29. void initializeData(const CStack * stack);
  30. void update(const CStack * updatedInfo);
  31. };