Added: Ctrl DB Sheet tooltip can be overwrited

--HG--
branch : compatibility-develop
hg/compatibility-develop
ulukyn 6 years ago
parent 29d931ed3c
commit 397fc6a589

@ -3150,12 +3150,16 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const
getInventory().addItemInfoWaiter(&ControlSheetTooltipUpdater); getInventory().addItemInfoWaiter(&ControlSheetTooltipUpdater);
} }
if (!_ContextHelp.empty())
help= _ContextHelp;
else
help = ControlSheetTooltipUpdater.infoValidated(ctrlSheet, luaMethodName); help = ControlSheetTooltipUpdater.infoValidated(ctrlSheet, luaMethodName);
} }
else
if (!_ContextHelp.empty())
help= _ContextHelp;
else else
help= getItemActualName(); help= getItemActualName();
} }
else else
help= _ContextHelp; help= _ContextHelp;

Loading…
Cancel
Save