1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/client/windows/CHeroBackpackWindow.cpp

31 lines
829 B
C++
Raw Normal View History

2023-07-06 21:14:12 +02:00
/*
* CHeroBackpackWindow.cpp, 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
*
*/
#include "StdInc.h"
#include "CHeroBackpackWindow.h"
#include "../gui/CGuiHandler.h"
CHeroBackpackWindow::CHeroBackpackWindow(const CGHeroInstance * hero)
: CWindowObject(PLAYER_COLORED)
{
OBJECT_CONSTRUCTION_CAPTURING(255-DISPOSE);
2023-07-16 20:16:12 +02:00
arts = std::make_shared<CArtifactsOfHeroBackpack>(Point(-100, -170));
2023-07-06 21:14:12 +02:00
arts->setHero(hero);
addSet(arts);
2023-07-16 20:16:12 +02:00
arts_straight = std::make_shared<CArtifactsOfHeroBackpack>(Point(-500, -170));
arts_straight->setHero(hero);
arts_straight->isScrollStraight = true;
addSet(arts_straight);
addCloseCallback(std::bind(&CHeroBackpackWindow::close, this));
}