1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

don't show icons in the inventory tooltips, exactly like MW does

This commit is contained in:
scrawl 2012-05-12 20:28:12 +02:00
parent e6e50f4ad4
commit 24e54a81bd
2 changed files with 5 additions and 3 deletions

View file

@ -82,7 +82,7 @@ void ToolTips::onFrame(float frameDuration)
else if (type == "ItemPtr")
{
mFocusObject = *focus->getUserData<MWWorld::Ptr>();
tooltipSize = getToolTipViaPtr();
tooltipSize = getToolTipViaPtr(false);
}
IntPoint tooltipPosition = InputManager::getInstance().getMousePosition() + IntPoint(0, 24);
@ -134,7 +134,7 @@ void ToolTips::setFocusObject(const MWWorld::Ptr& focus)
mFocusObject = focus;
}
IntSize ToolTips::getToolTipViaPtr ()
IntSize ToolTips::getToolTipViaPtr (bool image)
{
// this the maximum width of the tooltip before it starts word-wrapping
setCoord(0, 0, 300, 300);
@ -151,6 +151,8 @@ IntSize ToolTips::getToolTipViaPtr ()
mDynamicToolTipBox->setVisible(true);
ToolTipInfo info = object.getToolTipInfo(mFocusObject);
if (!image)
info.icon = "";
tooltipSize = createToolTip(info);
}

View file

@ -65,7 +65,7 @@ namespace MWGui
void findImageExtension(std::string& image);
MyGUI::IntSize getToolTipViaPtr ();
MyGUI::IntSize getToolTipViaPtr (bool image=true);
///< @return requested tooltip size
MyGUI::IntSize createToolTip(const ToolTipInfo& info);