1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/client/windows/QuickRecruitmentWindow.h
FeniksFire 1331c81a8b Update graphics for QuickRecruitmentWindow
Adding graphics maded by edeksumo
2018-01-13 09:49:29 +01:00

47 lines
1.2 KiB
C++

/*
* QuickRecruitmentWindow.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/CGarrisonInt.h"
class CButton;
class CreatureCostBox;
class CreaturePurchaseCard;
class CFilledTexture;
class QuickRecruitmentWindow : public CWindowObject
{
public:
int getAvailableCreatures();
void updateAllSliders();
QuickRecruitmentWindow(const CGTownInstance * townd, Rect startupPosition);
private:
void initWindow(Rect startupPosition);
void setButtons();
void setCancelButton();
void setBuyButton();
void setMaxButton();
void setCreaturePurhaseCards();
void maxAllCards(std::vector<std::shared_ptr<CreaturePurchaseCard>> cards);
void maxAllSlidersAmount(std::vector<std::shared_ptr<CreaturePurchaseCard>> cards);
void purhaseUnits();
const CGTownInstance * town;
std::shared_ptr<CButton> maxButton, buyButton, cancelButton;
std::shared_ptr<CreatureCostBox> totalCost;
std::vector<std::shared_ptr<CreaturePurchaseCard>> cards;
std::shared_ptr<CFilledTexture> backgroundTexture;
std::shared_ptr<CPicture> costBackground;
};