2017-11-01 15:58:49 +02:00
|
|
|
/*
|
|
|
|
* CreatureCostBox.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 "../lib/ResourceSet.h"
|
2018-04-07 13:34:11 +02:00
|
|
|
#include "gui/CIntObject.h"
|
|
|
|
|
|
|
|
class CLabel;
|
|
|
|
class CAnimImage;
|
2017-11-01 15:58:49 +02:00
|
|
|
|
|
|
|
class CreatureCostBox : public CIntObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void set(TResources res);
|
2018-04-07 13:34:11 +02:00
|
|
|
CreatureCostBox(Rect position, std::string titleText);
|
2017-11-01 15:58:49 +02:00
|
|
|
void createItems(TResources res);
|
2017-11-14 09:50:04 +02:00
|
|
|
private:
|
2018-04-07 13:34:11 +02:00
|
|
|
using LabelPtr = std::shared_ptr<CLabel>;
|
|
|
|
using ImagePtr = std::shared_ptr<CAnimImage>;
|
|
|
|
|
|
|
|
LabelPtr title;
|
|
|
|
std::map<int, std::pair<LabelPtr, ImagePtr>> resources;
|
2017-11-01 15:58:49 +02:00
|
|
|
};
|