Skip to content

Commit

Permalink
Don't show tooltips for unnamed ESM4Named
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Oct 27, 2023
1 parent 3f4591e commit 84cad3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/openmw/mwclass/esm4base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@ namespace MWClass
{
}

bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return true; }

MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override
std::string_view getName(const MWWorld::ConstPtr& ptr) const override
{
return ESM4Impl::getToolTipInfo(ptr.get<Record>()->mBase->mFullName, count);
return ptr.get<Record>()->mBase->mFullName;
}

std::string_view getName(const MWWorld::ConstPtr& ptr) const override
MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override
{
return ptr.get<Record>()->mBase->mFullName;
return ESM4Impl::getToolTipInfo(getName(ptr), count);
}

bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return !getName(ptr).empty(); }
};
}

Expand Down

0 comments on commit 84cad3d

Please sign in to comment.