mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Display object description only on right-click
This commit is contained in:
@@ -271,6 +271,15 @@ std::string CGObjectInstance::getHoverText(const CGHeroInstance * hero) const
|
||||
return getHoverText(hero->tempOwner);
|
||||
}
|
||||
|
||||
std::string CGObjectInstance::getPopupText(PlayerColor player) const
|
||||
{
|
||||
return getHoverText(player);
|
||||
}
|
||||
std::string CGObjectInstance::getPopupText(const CGHeroInstance * hero) const
|
||||
{
|
||||
return getHoverText(hero);
|
||||
}
|
||||
|
||||
std::vector<Component> CGObjectInstance::getPopupComponents(PlayerColor player) const
|
||||
{
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user