|
|
@@ -352,10 +352,13 @@ void CRClickPopup::createAndPush(const CGObjectInstance * obj, const Point & p,
|
|
|
else
|
|
|
{
|
|
|
std::vector<Component> components;
|
|
|
- if(LOCPLINT->localState->getCurrentHero())
|
|
|
- components = obj->getPopupComponents(LOCPLINT->localState->getCurrentHero());
|
|
|
- else
|
|
|
- components = obj->getPopupComponents(LOCPLINT->playerID);
|
|
|
+ if (settings["general"]["enableUiEnhancements"].Bool())
|
|
|
+ {
|
|
|
+ if(LOCPLINT->localState->getCurrentHero())
|
|
|
+ components = obj->getPopupComponents(LOCPLINT->localState->getCurrentHero());
|
|
|
+ else
|
|
|
+ components = obj->getPopupComponents(LOCPLINT->playerID);
|
|
|
+ }
|
|
|
|
|
|
std::vector<std::shared_ptr<CComponent>> guiComponents;
|
|
|
for (auto & component : components)
|