mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
using CHeroArea
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user