mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-18 18:40:06 +00:00
Use object name instead of ID when available for tooltips
This commit is contained in:
parent
2eaceb71ba
commit
09042ba6d9
@ -99,7 +99,9 @@ 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.getCellRef().getRefId();
|
info.caption = mFocusObject.getClass().getName(mFocusObject);
|
||||||
|
if (info.caption.empty())
|
||||||
|
info.caption=mFocusObject.getCellRef().getRefId();
|
||||||
info.icon="";
|
info.icon="";
|
||||||
tooltipSize = createToolTip(info);
|
tooltipSize = createToolTip(info);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user