forked from teamnwah/openmw-tes3coop
Use object name instead of ID when available for tooltips
This commit is contained in:
parent
2eaceb71ba
commit
09042ba6d9
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ namespace MWGui
|
|||
setCoord(0, 0, 300, 300);
|
||||
mDynamicToolTipBox->setVisible(true);
|
||||
ToolTipInfo info;
|
||||
info.caption=mFocusObject.getCellRef().getRefId();
|
||||
info.caption = mFocusObject.getClass().getName(mFocusObject);
|
||||
if (info.caption.empty())
|
||||
info.caption=mFocusObject.getCellRef().getRefId();
|
||||
info.icon="";
|
||||
tooltipSize = createToolTip(info);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue