1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Update MiscWidgets.h

This commit is contained in:
George King
2025-09-03 13:38:45 +02:00
committed by GitHub
parent 36a51228e6
commit 1114afb479

View File

@@ -62,7 +62,7 @@ public:
void showPopupWindow(const Point & cursorPosition) override;
};
/// base class for hero/town/garrison tooltips
/// base class for hero/town tooltips
class CArmyTooltip : public CIntObject
{
std::shared_ptr<CLabel> title;
@@ -74,6 +74,17 @@ public:
CArmyTooltip(Point pos, const CArmedInstance * army);
};
/// base class garrison tooltips
class CGarrisonTooltip : public CIntObject
{
std::shared_ptr<CLabel> title;
std::vector<std::shared_ptr<CAnimImage>> icons;
std::vector<std::shared_ptr<CLabel>> subtitles;
void init(const InfoAboutArmy& army);
public:
CGarrisonTooltip(Point pos, const InfoAboutArmy& army);
};
/// Class for hero tooltip. Does not have any background!
/// background for infoBox: ADSTATHR
/// background for tooltip: HEROQVBK