mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
30 lines
707 B
C++
30 lines
707 B
C++
/*
|
|
* 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"
|
|
|
|
class CFilledTexture;
|
|
|
|
class CHeroBackpackWindow : public CWindowObject, public CWindowWithArtifacts
|
|
{
|
|
public:
|
|
CHeroBackpackWindow(const CGHeroInstance * hero);
|
|
|
|
private:
|
|
std::shared_ptr<CArtifactsOfHeroBackpack> arts;
|
|
std::shared_ptr<CButton> quitButton;
|
|
std::shared_ptr<CFilledTexture> stretchedBackground;
|
|
const int windowMargin = 10;
|
|
|
|
void showAll(Canvas & to) override;
|
|
};
|