|
|
@ -3123,6 +3123,7 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string luaMethodName = ( (item->Family == ITEMFAMILY::CRYSTALLIZED_SPELL) ? "updateCrystallizedSpellTooltip" : "updateBuffItemTooltip");
|
|
|
|
string luaMethodName = ( (item->Family == ITEMFAMILY::CRYSTALLIZED_SPELL) ? "updateCrystallizedSpellTooltip" : "updateBuffItemTooltip");
|
|
|
|
CDBCtrlSheet *ctrlSheet = const_cast<CDBCtrlSheet*>(this);
|
|
|
|
CDBCtrlSheet *ctrlSheet = const_cast<CDBCtrlSheet*>(this);
|
|
|
|
|
|
|
|
CCtrlBase *ctrlBase = const_cast<CDBCtrlSheet*>(this);
|
|
|
|
if ( ! getInventory().isItemInfoUpToDate(getInventory().getItemSlotId(ctrlSheet)))
|
|
|
|
if ( ! getInventory().isItemInfoUpToDate(getInventory().getItemSlotId(ctrlSheet)))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Prepare the waiter
|
|
|
|
// Prepare the waiter
|
|
|
@ -3136,7 +3137,10 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!_ContextHelp.empty())
|
|
|
|
if (!_ContextHelp.empty())
|
|
|
|
|
|
|
|
{
|
|
|
|
help= _ContextHelp;
|
|
|
|
help= _ContextHelp;
|
|
|
|
|
|
|
|
ctrlBase->setDefaultContextHelp(ucstring());
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
help = ControlSheetTooltipUpdater.infoValidated(ctrlSheet, luaMethodName);
|
|
|
|
help = ControlSheetTooltipUpdater.infoValidated(ctrlSheet, luaMethodName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|