private static void ShowMessage(CelestialBody body, bool wasVisible, bool visible, RadiationFieldType field) { if (visible && !wasVisible) { StringBuilder sb = new StringBuilder(256); string message = Localizer.Format("#KerCon_FieldXofYresearched", // <<1>>: <<2>> researched Lib.Bold(body.bodyName), Lib.Color(RadiationField.Name(field), Lib.Kolor.Science)); sb.Append(message); sb.Append("\n\n"); sb.Append(Localizer.Format("#KerCon_FieldResearchedMessage")); var bd = Instance.BodyData(body); API.Message(sb.ToString()); MessageSystem.Message m = new MessageSystem.Message("#KerCon_FieldResearched", sb.ToString(), MessageSystemButton.MessageButtonColor.GREEN, MessageSystemButton.ButtonIcons.ACHIEVE); MessageSystem.Instance.AddMessage(m); } }