Przeglądaj źródła

Update MiscWidgets.h

George King 1 miesiąc temu
rodzic
commit
1114afb479
1 zmienionych plików z 12 dodań i 1 usunięć
  1. 12 1
      client/widgets/MiscWidgets.h

+ 12 - 1
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<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