2023-07-06 21:14:12 +02:00
|
|
|
/*
|
|
|
|
* 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 "../widgets/CWindowWithArtifacts.h"
|
|
|
|
#include "CWindowObject.h"
|
|
|
|
|
2023-08-20 00:52:03 +02:00
|
|
|
class CFilledTexture;
|
|
|
|
|
2023-07-06 21:14:12 +02:00
|
|
|
class CHeroBackpackWindow : public CWindowObject, public CWindowWithArtifacts
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CHeroBackpackWindow(const CGHeroInstance * hero);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<CArtifactsOfHeroBackpack> arts;
|
2023-07-17 18:42:55 +02:00
|
|
|
std::shared_ptr<CButton> quitButton;
|
2023-08-20 00:52:03 +02:00
|
|
|
std::shared_ptr<CFilledTexture> stretchedBackground;
|
2023-08-31 21:27:32 +02:00
|
|
|
const int windowMargin = 10;
|
2023-08-20 00:52:03 +02:00
|
|
|
|
2023-08-31 21:27:32 +02:00
|
|
|
void showAll(Canvas & to) override;
|
2023-07-16 20:16:12 +02:00
|
|
|
};
|