mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Only show components if UI enhancements is on
This commit is contained in:
parent
901fd77699
commit
0f2922d064
@ -352,10 +352,13 @@ void CRClickPopup::createAndPush(const CGObjectInstance * obj, const Point & p,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::vector<Component> components;
|
std::vector<Component> components;
|
||||||
if(LOCPLINT->localState->getCurrentHero())
|
if (settings["general"]["enableUiEnhancements"].Bool())
|
||||||
components = obj->getPopupComponents(LOCPLINT->localState->getCurrentHero());
|
{
|
||||||
else
|
if(LOCPLINT->localState->getCurrentHero())
|
||||||
components = obj->getPopupComponents(LOCPLINT->playerID);
|
components = obj->getPopupComponents(LOCPLINT->localState->getCurrentHero());
|
||||||
|
else
|
||||||
|
components = obj->getPopupComponents(LOCPLINT->playerID);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::shared_ptr<CComponent>> guiComponents;
|
std::vector<std::shared_ptr<CComponent>> guiComponents;
|
||||||
for (auto & component : components)
|
for (auto & component : components)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user