1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Display object description only on right-click

This commit is contained in:
Ivan Savenko
2023-10-19 14:36:11 +03:00
parent 530c70c282
commit e0f6b582f5
5 changed files with 70 additions and 55 deletions

View File

@@ -112,6 +112,9 @@ public:
/// Returns hero-specific hover name, including visited/not visited info. Default = player-specific name
virtual std::string getHoverText(const CGHeroInstance * hero) const;
virtual std::string getPopupText(PlayerColor player) const;
virtual std::string getPopupText(const CGHeroInstance * hero) const;
virtual std::vector<Component> getPopupComponents(PlayerColor player) const;
virtual std::vector<Component> getPopupComponents(const CGHeroInstance * hero) const;