Make tooltips update dynamically when the underlying text changes
This was SVN commit r7333.
This commit is contained in:
parent
dc0cd4bedd
commit
48c871980e
@ -283,8 +283,16 @@ void GUITooltip::Update(IGUIObject* Nearest, CPos MousePos, CGUI* GUI)
|
||||
break;
|
||||
|
||||
case ST_SHOWING:
|
||||
if (Nearest != m_PreviousObject)
|
||||
if (Nearest == m_PreviousObject)
|
||||
{
|
||||
// Still showing the same object's tooltip, but the text might have changed
|
||||
if (GetTooltip(Nearest, style))
|
||||
ShowTooltip(Nearest, MousePos, style, GUI);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Mouse moved onto a new object
|
||||
|
||||
if (GetTooltip(Nearest, style))
|
||||
{
|
||||
CStr style_old;
|
||||
|
Loading…
Reference in New Issue
Block a user