|
|
@ -2476,16 +2476,19 @@ class CAHTarget : public IActionHandler
|
|
|
|
if (entity && entity->properties().selectable() && !entity->getDisplayName().empty())
|
|
|
|
if (entity && entity->properties().selectable() && !entity->getDisplayName().empty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UserEntity->selection(entity->slot());
|
|
|
|
UserEntity->selection(entity->slot());
|
|
|
|
CGroupCompas *gc = dynamic_cast<CGroupCompas *>(CWidgetManager::getInstance()->getElementFromId("ui:interface:compass"));
|
|
|
|
if (ClientCfg.TargetChangeCompass)
|
|
|
|
if (gc)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CCompassTarget ct;
|
|
|
|
CGroupCompas *gc = dynamic_cast<CGroupCompas *>(CWidgetManager::getInstance()->getElementFromId("ui:interface:compass"));
|
|
|
|
ct.setType(CCompassTarget::Selection);
|
|
|
|
if (gc)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCompassTarget ct;
|
|
|
|
|
|
|
|
ct.setType(CCompassTarget::Selection);
|
|
|
|
|
|
|
|
|
|
|
|
gc->setActive(true);
|
|
|
|
gc->setActive(true);
|
|
|
|
gc->setTarget(ct);
|
|
|
|
gc->setTarget(ct);
|
|
|
|
gc->blink();
|
|
|
|
gc->blink();
|
|
|
|
CWidgetManager::getInstance()->setTopWindow(gc);
|
|
|
|
CWidgetManager::getInstance()->setTopWindow(gc);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!quiet)
|
|
|
|
else if (!quiet)
|
|
|
|