GUIClasses.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. /*
  2. * GUIClasses.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "CWindowObject.h"
  12. #include "../lib/GameConstants.h"
  13. #include "../lib/ResourceSet.h"
  14. #include "../lib/CConfigHandler.h"
  15. #include "../widgets/CArtifactHolder.h"
  16. #include "../widgets/CGarrisonInt.h"
  17. #include "../widgets/Images.h"
  18. class CGDwelling;
  19. class CreatureCostBox;
  20. class IMarket;
  21. class CCreaturePic;
  22. class MoraleLuckBox;
  23. class CHeroArea;
  24. class CMinorResDataBar;
  25. class CSlider;
  26. class CComponentBox;
  27. class CTextInput;
  28. class CListBox;
  29. class CLabelGroup;
  30. class CToggleButton;
  31. class CToggleGroup;
  32. class CVolumeSlider;
  33. class CGStatusBar;
  34. class CTextBox;
  35. class CResDataBar;
  36. class CHeroWithMaybePickedArtifact;
  37. /// Recruitment window where you can recruit creatures
  38. class CRecruitmentWindow : public CStatusbarWindow
  39. {
  40. class CCreatureCard : public CIntObject, public std::enable_shared_from_this<CCreatureCard>
  41. {
  42. CRecruitmentWindow * parent;
  43. std::shared_ptr<CCreaturePic> animation;
  44. bool selected;
  45. public:
  46. const CCreature * creature;
  47. si32 amount;
  48. void select(bool on);
  49. CCreatureCard(CRecruitmentWindow * window, const CCreature * crea, int totalAmount);
  50. void clickLeft(tribool down, bool previousState) override;
  51. void clickRight(tribool down, bool previousState) override;
  52. void showAll(SDL_Surface * to) override;
  53. };
  54. std::function<void(CreatureID,int)> onRecruit; //void (int ID, int amount) <-- call to recruit creatures
  55. int level;
  56. const CArmedInstance * dst;
  57. std::shared_ptr<CCreatureCard> selected;
  58. std::vector<std::shared_ptr<CCreatureCard>> cards;
  59. std::shared_ptr<CSlider> slider;
  60. std::shared_ptr<CButton> maxButton;
  61. std::shared_ptr<CButton> buyButton;
  62. std::shared_ptr<CButton> cancelButton;
  63. std::shared_ptr<CLabel> title;
  64. std::shared_ptr<CLabel> availableValue;
  65. std::shared_ptr<CLabel> toRecruitValue;
  66. std::shared_ptr<CLabel> availableTitle;
  67. std::shared_ptr<CLabel> toRecruitTitle;
  68. std::shared_ptr<CreatureCostBox> costPerTroopValue;
  69. std::shared_ptr<CreatureCostBox> totalCostValue;
  70. void select(std::shared_ptr<CCreatureCard> card);
  71. void buy();
  72. void sliderMoved(int to);
  73. void showAll(SDL_Surface * to) override;
  74. public:
  75. const CGDwelling * const dwelling;
  76. CRecruitmentWindow(const CGDwelling * Dwelling, int Level, const CArmedInstance * Dst, const std::function<void(CreatureID,int)> & Recruit, int y_offset = 0);
  77. void availableCreaturesChanged();
  78. };
  79. /// Split window where creatures can be split up into two single unit stacks
  80. class CSplitWindow : public CWindowObject
  81. {
  82. std::function<void(int, int)> callback;
  83. int leftAmount;
  84. int rightAmount;
  85. int leftMin;
  86. int rightMin;
  87. std::shared_ptr<CLabel> title;
  88. std::shared_ptr<CSlider> slider;
  89. std::shared_ptr<CCreaturePic> animLeft;
  90. std::shared_ptr<CCreaturePic> animRight;
  91. std::shared_ptr<CButton> ok;
  92. std::shared_ptr<CButton> cancel;
  93. std::shared_ptr<CTextInput> leftInput;
  94. std::shared_ptr<CTextInput> rightInput;
  95. void setAmountText(std::string text, bool left);
  96. void setAmount(int value, bool left);
  97. void sliderMoved(int value);
  98. void apply();
  99. public:
  100. /**
  101. * creature - displayed creature
  102. * callback(leftAmount, rightAmount) - function to call on close
  103. * leftMin, rightMin - minimal amount of creatures in each stack
  104. * leftAmount, rightAmount - amount of creatures in each stack
  105. */
  106. CSplitWindow(const CCreature * creature, std::function<void(int, int)> callback, int leftMin, int rightMin, int leftAmount, int rightAmount);
  107. };
  108. /// Raised up level window where you can select one out of two skills
  109. class CLevelWindow : public CWindowObject
  110. {
  111. std::shared_ptr<CAnimImage> portrait;
  112. std::shared_ptr<CButton> ok;
  113. std::shared_ptr<CLabel> mainTitle;
  114. std::shared_ptr<CLabel> levelTitle;
  115. std::shared_ptr<CAnimImage> skillIcon;
  116. std::shared_ptr<CLabel> skillValue;
  117. std::shared_ptr<CComponentBox> box; //skills to select
  118. std::function<void(ui32)> cb;
  119. void selectionChanged(unsigned to);
  120. public:
  121. CLevelWindow(const CGHeroInstance *hero, PrimarySkill::PrimarySkill pskill, std::vector<SecondarySkill> &skills, std::function<void(ui32)> callback);
  122. ~CLevelWindow();
  123. };
  124. /// Town portal, castle gate window
  125. class CObjectListWindow : public CWindowObject
  126. {
  127. class CItem : public CIntObject
  128. {
  129. CObjectListWindow * parent;
  130. std::shared_ptr<CLabel> text;
  131. std::shared_ptr<CPicture> border;
  132. public:
  133. const size_t index;
  134. CItem(CObjectListWindow * parent, size_t id, std::string text);
  135. void select(bool on);
  136. void clickLeft(tribool down, bool previousState) override;
  137. };
  138. std::function<void(int)> onSelect;//called when OK button is pressed, returns id of selected item.
  139. std::shared_ptr<CIntObject> titleWidget;
  140. std::shared_ptr<CLabel> title;
  141. std::shared_ptr<CLabel> descr;
  142. std::shared_ptr<CListBox> list;
  143. std::shared_ptr<CButton> ok;
  144. std::shared_ptr<CButton> exit;
  145. std::vector< std::pair<int, std::string> > items;//all items present in list
  146. void init(std::shared_ptr<CIntObject> titleWidget_, std::string _title, std::string _descr);
  147. void exitPressed();
  148. public:
  149. size_t selected;//index of currently selected item
  150. std::function<void()> onExit;//optional exit callback
  151. /// Callback will be called when OK button is pressed, returns id of selected item. initState = initially selected item
  152. /// Image can be nullptr
  153. ///item names will be taken from map objects
  154. CObjectListWindow(const std::vector<int> &_items, std::shared_ptr<CIntObject> titleWidget_, std::string _title, std::string _descr, std::function<void(int)> Callback);
  155. CObjectListWindow(const std::vector<std::string> &_items, std::shared_ptr<CIntObject> titleWidget_, std::string _title, std::string _descr, std::function<void(int)> Callback);
  156. std::shared_ptr<CIntObject> genItem(size_t index);
  157. void elementSelected();//call callback and close this window
  158. void changeSelection(size_t which);
  159. void keyPressed (const SDL_KeyboardEvent & key) override;
  160. };
  161. class CSystemOptionsWindow : public CWindowObject
  162. {
  163. private:
  164. std::shared_ptr<CLabel> title;
  165. std::shared_ptr<CLabelGroup> leftGroup;
  166. std::shared_ptr<CLabelGroup> rightGroup;
  167. std::shared_ptr<CButton> load;
  168. std::shared_ptr<CButton> save;
  169. std::shared_ptr<CButton> restart;
  170. std::shared_ptr<CButton> mainMenu;
  171. std::shared_ptr<CButton> quitGame;
  172. std::shared_ptr<CButton> backToMap; //load and restart are not used yet
  173. std::shared_ptr<CToggleGroup> heroMoveSpeed;
  174. std::shared_ptr<CToggleGroup> enemyMoveSpeed;
  175. std::shared_ptr<CToggleGroup> mapScrollSpeed;
  176. std::shared_ptr<CVolumeSlider> musicVolume;
  177. std::shared_ptr<CVolumeSlider> effectsVolume;
  178. std::shared_ptr<CToggleButton> showReminder;
  179. std::shared_ptr<CToggleButton> quickCombat;
  180. std::shared_ptr<CToggleButton> spellbookAnim;
  181. std::shared_ptr<CToggleButton> fullscreen;
  182. std::shared_ptr<CButton> gameResButton;
  183. std::shared_ptr<CLabel> gameResLabel;
  184. SettingsListener onFullscreenChanged;
  185. //functions bound to buttons
  186. void bloadf(); //load game
  187. void bsavef(); //save game
  188. void bquitf(); //quit game
  189. void breturnf(); //return to game
  190. void brestartf(); //restart game
  191. void bmainmenuf(); //return to main menu
  192. void selectGameRes();
  193. void setGameRes(int index);
  194. void closeAndPushEvent(int eventType, int code = 0);
  195. public:
  196. CSystemOptionsWindow();
  197. };
  198. class CTavernWindow : public CStatusbarWindow
  199. {
  200. public:
  201. class HeroPortrait : public CIntObject
  202. {
  203. public:
  204. std::string hoverName;
  205. std::string description; // "XXX is a level Y ZZZ with N artifacts"
  206. const CGHeroInstance * h;
  207. void clickLeft(tribool down, bool previousState) override;
  208. void clickRight(tribool down, bool previousState) override;
  209. void hover (bool on) override;
  210. HeroPortrait(int & sel, int id, int x, int y, const CGHeroInstance * H);
  211. private:
  212. int *_sel;
  213. const int _id;
  214. std::shared_ptr<CAnimImage> portrait;
  215. };
  216. //recruitable heroes
  217. std::shared_ptr<HeroPortrait> h1;
  218. std::shared_ptr<HeroPortrait> h2; //recruitable heroes
  219. int selected;//0 (left) or 1 (right)
  220. int oldSelected;//0 (left) or 1 (right)
  221. std::shared_ptr<CButton> thiefGuild;
  222. std::shared_ptr<CButton> cancel;
  223. std::shared_ptr<CButton> recruit;
  224. const CGObjectInstance * tavernObj;
  225. std::shared_ptr<CLabel> title;
  226. std::shared_ptr<CLabel> cost;
  227. std::shared_ptr<CTextBox> rumor;
  228. CTavernWindow(const CGObjectInstance * TavernObj);
  229. ~CTavernWindow();
  230. void recruitb();
  231. void thievesguildb();
  232. void show(SDL_Surface * to) override;
  233. };
  234. class CCallback;
  235. class CExchangeWindow;
  236. struct HeroArtifact
  237. {
  238. const CGHeroInstance * hero;
  239. const CArtifactInstance * artifact;
  240. ArtifactPosition artPosition;
  241. HeroArtifact(const CGHeroInstance * hero, const CArtifactInstance * artifact, ArtifactPosition artPosition)
  242. :hero(hero), artifact(artifact), artPosition(artPosition)
  243. {
  244. }
  245. };
  246. class CExchangeController
  247. {
  248. private:
  249. const CGHeroInstance * left;
  250. const CGHeroInstance * right;
  251. std::shared_ptr<CCallback> cb;
  252. CExchangeWindow * view;
  253. public:
  254. CExchangeController(CExchangeWindow * view, ObjectInstanceID hero1, ObjectInstanceID hero2);
  255. std::function<void()> onMoveArmyToRight();
  256. std::function<void()> onSwapArmy();
  257. std::function<void()> onMoveArmyToLeft();
  258. std::function<void()> onSwapArtifacts();
  259. std::function<void()> onMoveArtifactsToLeft();
  260. std::function<void()> onMoveArtifactsToRight();
  261. std::function<void()> onMoveStackToLeft(SlotID slotID);
  262. std::function<void()> onMoveStackToRight(SlotID slotID);
  263. private:
  264. void moveArmy(bool leftToRight);
  265. void moveArtifacts(bool leftToRight);
  266. void moveArtifact(const CGHeroInstance * source, const CGHeroInstance * target, ArtifactPosition srcPosition);
  267. void moveStack(const CGHeroInstance * source, const CGHeroInstance * target, SlotID sourceSlot);
  268. void swapArtifacts(ArtifactPosition artPosition);
  269. std::vector<HeroArtifact> moveCompositeArtsToBackpack();
  270. void swapArtifacts();
  271. };
  272. class CExchangeWindow : public CStatusbarWindow, public CGarrisonHolder, public CWindowWithArtifacts
  273. {
  274. std::array<std::shared_ptr<CHeroWithMaybePickedArtifact>, 2> herosWArt;
  275. std::array<std::shared_ptr<CLabel>, 2> titles;
  276. std::vector<std::shared_ptr<CAnimImage>> primSkillImages;//shared for both heroes
  277. std::array<std::vector<std::shared_ptr<CLabel>>, 2> primSkillValues;
  278. std::array<std::vector<std::shared_ptr<CAnimImage>>, 2> secSkillIcons;
  279. std::array<std::shared_ptr<CAnimImage>, 2> specImages;
  280. std::array<std::shared_ptr<CAnimImage>, 2> expImages;
  281. std::array<std::shared_ptr<CLabel>, 2> expValues;
  282. std::array<std::shared_ptr<CAnimImage>, 2> manaImages;
  283. std::array<std::shared_ptr<CLabel>, 2> manaValues;
  284. std::array<std::shared_ptr<CAnimImage>, 2> portraits;
  285. std::vector<std::shared_ptr<LRClickableAreaWTextComp>> primSkillAreas;
  286. std::array<std::vector<std::shared_ptr<LRClickableAreaWTextComp>>, 2> secSkillAreas;
  287. std::array<std::shared_ptr<CHeroArea>, 2> heroAreas;
  288. std::array<std::shared_ptr<LRClickableAreaWText>, 2> specialtyAreas;
  289. std::array<std::shared_ptr<LRClickableAreaWText>, 2> experienceAreas;
  290. std::array<std::shared_ptr<LRClickableAreaWText>, 2> spellPointsAreas;
  291. std::array<std::shared_ptr<MoraleLuckBox>, 2> morale;
  292. std::array<std::shared_ptr<MoraleLuckBox>, 2> luck;
  293. std::shared_ptr<CButton> quit;
  294. std::array<std::shared_ptr<CButton>, 2> questlogButton;
  295. std::shared_ptr<CGarrisonInt> garr;
  296. std::shared_ptr<CButton> moveAllGarrButtonLeft;
  297. std::shared_ptr<CButton> echangeGarrButton;
  298. std::shared_ptr<CButton> moveAllGarrButtonRight;
  299. std::shared_ptr<CButton> moveArtifactsButtonLeft;
  300. std::shared_ptr<CButton> echangeArtifactsButton;
  301. std::shared_ptr<CButton> moveArtifactsButtonRight;
  302. std::vector<std::shared_ptr<CButton>> moveStackLeftButtons;
  303. std::vector<std::shared_ptr<CButton>> moveStackRightButtons;
  304. CExchangeController controller;
  305. public:
  306. std::array<const CGHeroInstance *, 2> heroInst;
  307. std::array<std::shared_ptr<CArtifactsOfHero>, 2> artifs;
  308. void updateGarrisons() override;
  309. void questlog(int whichHero); //questlog button callback; whichHero: 0 - left, 1 - right
  310. void updateWidgets();
  311. const CGarrisonSlot * getSelectedSlotID() const;
  312. CExchangeWindow(ObjectInstanceID hero1, ObjectInstanceID hero2, QueryID queryID);
  313. ~CExchangeWindow();
  314. };
  315. /// Here you can buy ships
  316. class CShipyardWindow : public CStatusbarWindow
  317. {
  318. std::shared_ptr<CPicture> bgWater;
  319. std::shared_ptr<CAnimImage> bgShip;
  320. std::shared_ptr<CLabel> title;
  321. std::shared_ptr<CLabel> costLabel;
  322. std::shared_ptr<CAnimImage> woodPic;
  323. std::shared_ptr<CAnimImage> goldPic;
  324. std::shared_ptr<CLabel> woodCost;
  325. std::shared_ptr<CLabel> goldCost;
  326. std::shared_ptr<CButton> build;
  327. std::shared_ptr<CButton> quit;
  328. public:
  329. CShipyardWindow(const std::vector<si32> & cost, int state, int boatType, const std::function<void()> & onBuy);
  330. };
  331. /// Puzzle screen which gets uncovered when you visit obilisks
  332. class CPuzzleWindow : public CWindowObject
  333. {
  334. private:
  335. int3 grailPos;
  336. std::shared_ptr<CPicture> logo;
  337. std::shared_ptr<CLabel> title;
  338. std::shared_ptr<CButton> quitb;
  339. std::shared_ptr<CResDataBar> resDataBar;
  340. std::vector<std::shared_ptr<CPicture>> piecesToRemove;
  341. std::vector<std::shared_ptr<CPicture>> visiblePieces;
  342. ui8 currentAlpha;
  343. public:
  344. void showAll(SDL_Surface * to) override;
  345. void show(SDL_Surface * to) override;
  346. CPuzzleWindow(const int3 & grailPos, double discoveredRatio);
  347. };
  348. /// Creature transformer window
  349. class CTransformerWindow : public CStatusbarWindow, public CGarrisonHolder
  350. {
  351. class CItem : public CIntObject
  352. {
  353. public:
  354. int id;//position of creature in hero army
  355. bool left;//position of the item
  356. int size; //size of creature stack
  357. CTransformerWindow * parent;
  358. std::shared_ptr<CAnimImage> icon;
  359. std::shared_ptr<CLabel> count;
  360. void move();
  361. void clickLeft(tribool down, bool previousState) override;
  362. void update();
  363. CItem(CTransformerWindow * parent, int size, int id);
  364. };
  365. const CArmedInstance * army;//object with army for transforming (hero or town)
  366. const CGHeroInstance * hero;//only if we have hero in town
  367. const CGTownInstance * town;//market, town garrison is used if hero == nullptr
  368. std::shared_ptr<CLabel> titleLeft;
  369. std::shared_ptr<CLabel> titleRight;
  370. std::shared_ptr<CTextBox> helpLeft;
  371. std::shared_ptr<CTextBox> helpRight;
  372. std::vector<std::shared_ptr<CItem>> items;
  373. std::shared_ptr<CButton> all;
  374. std::shared_ptr<CButton> convert;
  375. std::shared_ptr<CButton> cancel;
  376. public:
  377. void makeDeal();
  378. void addAll();
  379. void updateGarrisons() override;
  380. CTransformerWindow(const CGHeroInstance * _hero, const CGTownInstance * _town);
  381. };
  382. class CUniversityWindow : public CStatusbarWindow
  383. {
  384. class CItem : public CIntObject
  385. {
  386. std::shared_ptr<CAnimImage> icon;
  387. std::shared_ptr<CAnimImage> topBar;
  388. std::shared_ptr<CAnimImage> bottomBar;
  389. std::shared_ptr<CLabel> name;
  390. std::shared_ptr<CLabel> level;
  391. public:
  392. int ID;//id of selected skill
  393. CUniversityWindow * parent;
  394. void showAll(SDL_Surface * to) override;
  395. void clickLeft(tribool down, bool previousState) override;
  396. void clickRight(tribool down, bool previousState) override;
  397. void hover(bool on) override;
  398. int state();//0=can't learn, 1=learned, 2=can learn
  399. CItem(CUniversityWindow * _parent, int _ID, int X, int Y);
  400. };
  401. const CGHeroInstance * hero;
  402. const IMarket * market;
  403. std::shared_ptr<CAnimation> bars;
  404. std::vector<std::shared_ptr<CItem>> items;
  405. std::shared_ptr<CButton> cancel;
  406. std::shared_ptr<CIntObject> titlePic;
  407. std::shared_ptr<CLabel> title;
  408. std::shared_ptr<CTextBox> clerkSpeech;
  409. public:
  410. CUniversityWindow(const CGHeroInstance * _hero, const IMarket * _market);
  411. void makeDeal(int skill);
  412. };
  413. /// Confirmation window for University
  414. class CUnivConfirmWindow : public CStatusbarWindow
  415. {
  416. std::shared_ptr<CTextBox> clerkSpeech;
  417. std::shared_ptr<CLabel> name;
  418. std::shared_ptr<CLabel> level;
  419. std::shared_ptr<CAnimImage> icon;
  420. CUniversityWindow * owner;
  421. std::shared_ptr<CButton> confirm;
  422. std::shared_ptr<CButton> cancel;
  423. std::shared_ptr<CAnimImage> costIcon;
  424. std::shared_ptr<CLabel> cost;
  425. void makeDeal(int skill);
  426. public:
  427. CUnivConfirmWindow(CUniversityWindow * PARENT, int SKILL, bool available);
  428. };
  429. /// Garrison window where you can take creatures out of the hero to place it on the garrison
  430. class CGarrisonWindow : public CWindowObject, public CGarrisonHolder
  431. {
  432. std::shared_ptr<CLabel> title;
  433. std::shared_ptr<CAnimImage> banner;
  434. std::shared_ptr<CAnimImage> portrait;
  435. std::shared_ptr<CGarrisonInt> garr;
  436. public:
  437. std::shared_ptr<CButton> quit;
  438. CGarrisonWindow(const CArmedInstance * up, const CGHeroInstance * down, bool removableUnits);
  439. void updateGarrisons() override;
  440. };
  441. /// Hill fort is the building where you can upgrade units
  442. class CHillFortWindow : public CStatusbarWindow, public CGarrisonHolder
  443. {
  444. private:
  445. static const int slotsCount = 7;
  446. //todo: mithril support
  447. static const int resCount = 7;
  448. const CGObjectInstance * fort;
  449. const CGHeroInstance * hero;
  450. std::shared_ptr<CLabel> title;
  451. std::shared_ptr<CHeroArea> heroPic;
  452. std::array<std::shared_ptr<CAnimImage>, resCount> totalIcons;
  453. std::array<std::shared_ptr<CLabel>, resCount> totalLabels;
  454. std::array<std::shared_ptr<CButton>, slotsCount> upgrade;//upgrade single creature
  455. std::array<int, slotsCount + 1> currState;//current state of slot - to avoid calls to getState or updating buttons
  456. //there is a place for only 2 resources per slot
  457. std::array< std::array<std::shared_ptr<CAnimImage>, 2>, slotsCount> slotIcons;
  458. std::array< std::array<std::shared_ptr<CLabel>, 2>, slotsCount> slotLabels;
  459. std::shared_ptr<CButton> upgradeAll;
  460. std::shared_ptr<CButton> quit;
  461. std::shared_ptr<CGarrisonInt> garr;
  462. std::string getDefForSlot(SlotID slot);
  463. std::string getTextForSlot(SlotID slot);
  464. void makeDeal(SlotID slot);//-1 for upgrading all creatures
  465. int getState(SlotID slot); //-1 = no creature 0=can't upgrade, 1=upgraded, 2=can upgrade
  466. public:
  467. CHillFortWindow(const CGHeroInstance * visitor, const CGObjectInstance * object);
  468. void updateGarrisons() override;//update buttons after garrison changes
  469. };
  470. class CThievesGuildWindow : public CStatusbarWindow
  471. {
  472. const CGObjectInstance * owner;
  473. std::shared_ptr<CButton> exitb;
  474. std::shared_ptr<CMinorResDataBar> resdatabar;
  475. std::vector<std::shared_ptr<CLabel>> rowHeaders;
  476. std::vector<std::shared_ptr<CAnimImage>> columnBackgrounds;
  477. std::vector<std::shared_ptr<CLabel>> columnHeaders;
  478. std::vector<std::shared_ptr<CAnimImage>> cells;
  479. std::vector<std::shared_ptr<CPicture>> banners;
  480. std::vector<std::shared_ptr<CAnimImage>> bestHeroes;
  481. std::vector<std::shared_ptr<CTextBox>> primSkillHeaders;
  482. std::vector<std::shared_ptr<CLabel>> primSkillValues;
  483. std::vector<std::shared_ptr<CAnimImage>> bestCreatures;
  484. std::vector<std::shared_ptr<CLabel>> personalities;
  485. public:
  486. CThievesGuildWindow(const CGObjectInstance * _owner);
  487. };