private void OnHover(Constructable constructable) { if (isActive) { HandReticle main = HandReticle.main; if (constructable.constructed) { main.SetText(HandReticle.TextType.Hand, this.deconstructText, false); } else { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine(this.constructText); foreach (KeyValuePair <TechType, int> keyValuePair in constructable.GetRemainingResources()) { TechType key = keyValuePair.Key; string text = Language.main.Get(key); int value = keyValuePair.Value; if (value > 1) { stringBuilder.AppendLine(Language.main.GetFormat <string, int>("RequireMultipleFormat", text, value)); } else { stringBuilder.AppendLine(text); } } main.SetText(HandReticle.TextType.Hand, stringBuilder.ToString(), false); main.SetProgress(constructable.amount); main.SetIcon(HandReticle.IconType.Progress, 1.5f); } } }