mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Accept a ConstPtr in ToolTips::setFocusObject
This commit is contained in:
parent
32d5dece58
commit
5a7bbbd508
2 changed files with 3 additions and 3 deletions
|
@ -317,7 +317,7 @@ namespace MWGui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolTips::setFocusObject(const MWWorld::Ptr& focus)
|
void ToolTips::setFocusObject(const MWWorld::ConstPtr& focus)
|
||||||
{
|
{
|
||||||
mFocusObject = focus;
|
mFocusObject = focus;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace MWGui
|
||||||
|
|
||||||
void setDelay(float delay);
|
void setDelay(float delay);
|
||||||
|
|
||||||
void setFocusObject(const MWWorld::Ptr& focus);
|
void setFocusObject(const MWWorld::ConstPtr& focus);
|
||||||
void setFocusObjectScreenCoords(float min_x, float min_y, float max_x, float max_y);
|
void setFocusObjectScreenCoords(float min_x, float min_y, float max_x, float max_y);
|
||||||
///< set the screen-space position of the tooltip for focused object
|
///< set the screen-space position of the tooltip for focused object
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ namespace MWGui
|
||||||
private:
|
private:
|
||||||
MyGUI::Widget* mDynamicToolTipBox;
|
MyGUI::Widget* mDynamicToolTipBox;
|
||||||
|
|
||||||
MWWorld::Ptr mFocusObject;
|
MWWorld::ConstPtr mFocusObject;
|
||||||
|
|
||||||
MyGUI::IntSize getToolTipViaPtr (int count, bool image=true);
|
MyGUI::IntSize getToolTipViaPtr (int count, bool image=true);
|
||||||
///< @return requested tooltip size
|
///< @return requested tooltip size
|
||||||
|
|
Loading…
Reference in a new issue