Improvements in compass

30-changes-for-silan-refactoring
Nuno 3 years ago
parent ab842cfc00
commit 0a434d6402

@ -431,11 +431,11 @@ void CGroupCompas::draw()
} }
} }
CCtrlBase *toolTip = getCtrl("tt"); CCtrlBase *toolTip = getCtrl("open_menu");
if (toolTip) if (toolTip)
{ {
if (displayedTarget.getType() != CCompassTarget::North) if (displayedTarget.getType() != CCompassTarget::North)
toolTip->setDefaultContextHelp(CI18N::get("uittCompassDistance")); toolTip->setDefaultContextHelp(displayedTarget.Name);
else else
toolTip->setDefaultContextHelp(std::string()); toolTip->setDefaultContextHelp(std::string());
} }

Loading…
Cancel
Save