| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | 
							- /*
 
-  * CHeroBackpackWindow.h, part of VCMI engine
 
-  *
 
-  * Authors: listed in file AUTHORS in main folder
 
-  *
 
-  * License: GNU General Public License v2.0 or later
 
-  * Full text of license available in license.txt file, in main folder
 
-  *
 
-  */
 
- #pragma once
 
- #include "CWindowWithArtifacts.h"
 
- class CFilledTexture;
 
- class CHeroBackpackWindow : public CStatusbarWindow, public CWindowWithArtifacts
 
- {
 
- public:
 
- 	CHeroBackpackWindow(const CGHeroInstance * hero, const std::vector<CArtifactsOfHeroPtr> & artsSets);
 
- 	void notFocusedClick() override;
 
- 	
 
- protected:
 
- 	std::shared_ptr<CArtifactsOfHeroBackpack> arts;
 
- 	std::vector<std::shared_ptr<CButton>> buttons;
 
- 	std::shared_ptr<CFilledTexture> stretchedBackground;
 
- 	const int windowMargin = 5;
 
- 	void showAll(Canvas & to) override;
 
- };
 
- class CHeroQuickBackpackWindow : public CWindowWithArtifacts
 
- {
 
- public:
 
- 	CHeroQuickBackpackWindow(const CGHeroInstance * hero, ArtifactPosition targetSlot);
 
- 	void gesture(bool on, const Point & initialPosition, const Point & finalPosition) override;
 
- 	void gesturePanning(const Point & initialPosition, const Point & currentPosition, const Point & lastUpdateDistance) override;
 
- 	void notFocusedClick() override;
 
- private:
 
- 	std::shared_ptr<CArtifactsOfHeroQuickBackpack> arts;
 
- 	std::shared_ptr<CFilledTexture> stretchedBackground;
 
- 	const int windowMargin = 5;
 
- 	void showAll(Canvas & to) override;
 
- };
 
 
  |