1
0
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:
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

@@ -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 {};