mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 16:45:43 +00:00
Don't show tooltips for unnamed ESM4Named
This commit is contained in:
parent
3f4591eb3b
commit
84cad3de01
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
{
|
||||
return ESM4Impl::getToolTipInfo(ptr.get<Record>()->mBase->mFullName, count);
|
||||
}
|
||||
|
||||
std::string_view getName(const MWWorld::ConstPtr& ptr) const override
|
||||
{
|
||||
return ptr.get<Record>()->mBase->mFullName;
|
||||
}
|
||||
|
||||
MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override
|
||||
{
|
||||
return ESM4Impl::getToolTipInfo(getName(ptr), count);
|
||||
}
|
||||
|
||||
bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return !getName(ptr).empty(); }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue