mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04:00
don't show icons in the inventory tooltips, exactly like MW does
This commit is contained in:
parent
e6e50f4ad4
commit
24e54a81bd
@ -82,7 +82,7 @@ void ToolTips::onFrame(float frameDuration)
|
|||||||
else if (type == "ItemPtr")
|
else if (type == "ItemPtr")
|
||||||
{
|
{
|
||||||
mFocusObject = *focus->getUserData<MWWorld::Ptr>();
|
mFocusObject = *focus->getUserData<MWWorld::Ptr>();
|
||||||
tooltipSize = getToolTipViaPtr();
|
tooltipSize = getToolTipViaPtr(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
IntPoint tooltipPosition = InputManager::getInstance().getMousePosition() + IntPoint(0, 24);
|
IntPoint tooltipPosition = InputManager::getInstance().getMousePosition() + IntPoint(0, 24);
|
||||||
@ -134,7 +134,7 @@ void ToolTips::setFocusObject(const MWWorld::Ptr& focus)
|
|||||||
mFocusObject = focus;
|
mFocusObject = focus;
|
||||||
}
|
}
|
||||||
|
|
||||||
IntSize ToolTips::getToolTipViaPtr ()
|
IntSize ToolTips::getToolTipViaPtr (bool image)
|
||||||
{
|
{
|
||||||
// this the maximum width of the tooltip before it starts word-wrapping
|
// this the maximum width of the tooltip before it starts word-wrapping
|
||||||
setCoord(0, 0, 300, 300);
|
setCoord(0, 0, 300, 300);
|
||||||
@ -151,6 +151,8 @@ IntSize ToolTips::getToolTipViaPtr ()
|
|||||||
mDynamicToolTipBox->setVisible(true);
|
mDynamicToolTipBox->setVisible(true);
|
||||||
|
|
||||||
ToolTipInfo info = object.getToolTipInfo(mFocusObject);
|
ToolTipInfo info = object.getToolTipInfo(mFocusObject);
|
||||||
|
if (!image)
|
||||||
|
info.icon = "";
|
||||||
tooltipSize = createToolTip(info);
|
tooltipSize = createToolTip(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ namespace MWGui
|
|||||||
|
|
||||||
void findImageExtension(std::string& image);
|
void findImageExtension(std::string& image);
|
||||||
|
|
||||||
MyGUI::IntSize getToolTipViaPtr ();
|
MyGUI::IntSize getToolTipViaPtr (bool image=true);
|
||||||
///< @return requested tooltip size
|
///< @return requested tooltip size
|
||||||
|
|
||||||
MyGUI::IntSize createToolTip(const ToolTipInfo& info);
|
MyGUI::IntSize createToolTip(const ToolTipInfo& info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user