mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-02 08:41:32 +00:00
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,6 +99,8 @@ namespace MWGui
|
||||||
setCoord(0, 0, 300, 300);
|
setCoord(0, 0, 300, 300);
|
||||||
mDynamicToolTipBox->setVisible(true);
|
mDynamicToolTipBox->setVisible(true);
|
||||||
ToolTipInfo info;
|
ToolTipInfo info;
|
||||||
|
info.caption = mFocusObject.getClass().getName(mFocusObject);
|
||||||
|
if (info.caption.empty())
|
||||||
info.caption=mFocusObject.getCellRef().getRefId();
|
info.caption=mFocusObject.getCellRef().getRefId();
|
||||||
info.icon="";
|
info.icon="";
|
||||||
tooltipSize = createToolTip(info);
|
tooltipSize = createToolTip(info);
|
||||||
|
|
Loading…
Reference in a new issue