From 1114afb4790a6c3c721a2953fbe9362a1b54de1f Mon Sep 17 00:00:00 2001 From: George King <98261225+GeorgeK1ng@users.noreply.github.com> Date: Wed, 3 Sep 2025 13:38:45 +0200 Subject: [PATCH] Update MiscWidgets.h --- client/widgets/MiscWidgets.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/client/widgets/MiscWidgets.h b/client/widgets/MiscWidgets.h index 729466f02..7a35bfa0e 100644 --- a/client/widgets/MiscWidgets.h +++ b/client/widgets/MiscWidgets.h @@ -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 title; @@ -74,6 +74,17 @@ public: CArmyTooltip(Point pos, const CArmedInstance * army); }; +/// base class garrison tooltips +class CGarrisonTooltip : public CIntObject +{ + std::shared_ptr title; + std::vector> icons; + std::vector> 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