|
@@ -643,11 +643,15 @@ void AdventureMapInterface::onTileHovered(const int3 &targetPosition)
|
|
|
objRelations = LOCPLINT->cb->getPlayerRelations(LOCPLINT->playerID, objAtTile->tempOwner);
|
|
|
std::string text = LOCPLINT->localState->getCurrentHero() ? objAtTile->getHoverText(LOCPLINT->localState->getCurrentHero()) : objAtTile->getHoverText(LOCPLINT->playerID);
|
|
|
boost::replace_all(text,"\n"," ");
|
|
|
+ if (GH.isKeyboardShiftDown())
|
|
|
+ text.append(" (" + std::to_string(targetPosition.x) + ", " + std::to_string(targetPosition.y) + ")");
|
|
|
GH.statusbar()->write(text);
|
|
|
}
|
|
|
else if(isTargetPositionVisible)
|
|
|
{
|
|
|
std::string tileTooltipText = CGI->mh->getTerrainDescr(targetPosition, false);
|
|
|
+ if (GH.isKeyboardShiftDown())
|
|
|
+ tileTooltipText.append(" (" + std::to_string(targetPosition.x) + ", " + std::to_string(targetPosition.y) + ")");
|
|
|
GH.statusbar()->write(tileTooltipText);
|
|
|
}
|
|
|
|