// This signature gets used when the player encounters an object for which we have an associated help item... void HelpItemManager::addInlineHelpItem(U8 objectType, S32 objectTeam, S32 playerTeam) { // Nothing to do if we are disabled if(!mEnabled) return; // Figure out which help item to show for this object for(S32 i = 0; i < HelpItemCount; i++) if(helpItems[i].associatedObjectTypeNumber == objectType && checkWhose(helpItems[i].whose, objectTeam, playerTeam)) { addInlineHelpItem(HelpItem(i)); return; } }
void BaseHoverHandler::clear() { m_diagnosticTooltip = false; m_toolTip.clear(); m_lastHelpItemIdentified = HelpItem(); }