From ba42b50cf05228131a55da0e653f47e6f6121f3d Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 1 Jun 2019 14:13:43 +0300 Subject: [PATCH] Changed: Send item info request for updated tooltips (ie durability changes) --HG-- branch : feature-item-icon-buffs --- code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp | 2 ++ code/ryzom/client/src/interface_v3/dbctrl_sheet.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp index f94a7f180..2d3a6790a 100644 --- a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp +++ b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp @@ -3374,6 +3374,7 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const if (useItemInfoForFamily(item->Family)) { // call lua function to update tooltip window + _ItemInfoWaiter.sendRequest(); help = _ItemInfoWaiter.infoValidated(); } else if (!_ContextHelp.empty()) @@ -3501,6 +3502,7 @@ void CDBCtrlSheet::getContextHelpToolTip(ucstring &help) const { if (useItemInfoForFamily(item->Family)) { + _ItemInfoWaiter.sendRequest(); help = _ItemInfoWaiter.infoValidated(); return; } diff --git a/code/ryzom/client/src/interface_v3/dbctrl_sheet.h b/code/ryzom/client/src/interface_v3/dbctrl_sheet.h index 1d185d9f4..2b12924a5 100644 --- a/code/ryzom/client/src/interface_v3/dbctrl_sheet.h +++ b/code/ryzom/client/src/interface_v3/dbctrl_sheet.h @@ -793,7 +793,7 @@ protected: sint64 _NotifyAnimEndTime; - CControlSheetInfoWaiter _ItemInfoWaiter; + mutable CControlSheetInfoWaiter _ItemInfoWaiter; private: mutable TSheetType _ActualType;