1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

using CHeroArea

This commit is contained in:
Laserlicht
2023-12-22 01:30:41 +01:00
committed by GitHub
parent f75ccc308b
commit c20f0bdc3e
4 changed files with 22 additions and 8 deletions

View File

@@ -190,12 +190,15 @@ public:
CHeroArea(int x, int y, const CGHeroInstance * hero);
void addClickCallback(ClickFunctor callback);
void addRClickCallback(ClickFunctor callback);
void clickPressed(const Point & cursorPosition) override;
void showPopupWindow(const Point & cursorPosition) override;
void hover(bool on) override;
private:
const CGHeroInstance * hero;
std::shared_ptr<CAnimImage> portrait;
ClickFunctor clickFunctor;
ClickFunctor clickRFunctor;
ClickFunctor showPopupHandler;
};