forked from mirror/openmw-tes3mp
Allow weight tooltips for gold and keys if not 0
This commit is contained in:
parent
caf025f93d
commit
4f5d676b4e
1 changed files with 1 additions and 3 deletions
|
@ -159,11 +159,9 @@ namespace MWClass
|
||||||
|
|
||||||
std::string text;
|
std::string text;
|
||||||
|
|
||||||
|
text += MWGui::ToolTips::getValueString(ref->mBase->mData.mWeight, "#{sWeight}");
|
||||||
if (!gold && !ref->mBase->mData.mIsKey)
|
if (!gold && !ref->mBase->mData.mIsKey)
|
||||||
{
|
|
||||||
text += "\n#{sWeight}: " + MWGui::ToolTips::toString(ref->mBase->mData.mWeight);
|
|
||||||
text += MWGui::ToolTips::getValueString(getValue(ptr), "#{sValue}");
|
text += MWGui::ToolTips::getValueString(getValue(ptr), "#{sValue}");
|
||||||
}
|
|
||||||
|
|
||||||
if (MWBase::Environment::get().getWindowManager()->getFullHelp()) {
|
if (MWBase::Environment::get().getWindowManager()->getFullHelp()) {
|
||||||
text += MWGui::ToolTips::getCellRefString(ptr.getCellRef());
|
text += MWGui::ToolTips::getCellRefString(ptr.getCellRef());
|
||||||
|
|
Loading…
Reference in a new issue