private void RefreshToolTip(MinionResume resume) { if ((Object)resume != (Object)null) { AttributeInstance attributeInstance = Db.Get().Attributes.QualityOfLife.Lookup(resume); AttributeInstance attributeInstance2 = Db.Get().Attributes.QualityOfLifeExpectation.Lookup(resume); ToolTip component = GetComponent <ToolTip>(); component.ClearMultiStringTooltip(); component.AddMultiStringTooltip(minion.GetProperName() + "\n\n", TooltipTextStyle_Header); component.AddMultiStringTooltip(string.Format(UI.SKILLS_SCREEN.CURRENT_MORALE, attributeInstance.GetTotalValue(), attributeInstance2.GetTotalValue()), null); component.AddMultiStringTooltip("\n" + UI.DETAILTABS.STATS.NAME + "\n\n", TooltipTextStyle_Header); foreach (AttributeInstance attribute in resume.GetAttributes()) { if (attribute.Attribute.ShowInUI == Attribute.Display.Skill) { string text = UIConstants.ColorPrefixWhite; if (attribute.GetTotalValue() > 0f) { text = UIConstants.ColorPrefixGreen; } else if (attribute.GetTotalValue() < 0f) { text = UIConstants.ColorPrefixRed; } component.AddMultiStringTooltip(" • " + attribute.Name + ": " + text + attribute.GetTotalValue() + UIConstants.ColorSuffix, null); } } } }