private static TopicMetadata Alien(AlienType alien) { return new TopicMetadata { Name = alien.Metadata().Name, Category = TopicCategory.AlienLifeForms, Scheme = ColorScheme.LightWhite, RequiredResearch = new[] { alien.Metadata().RequiredResearch }, Subject = alien }; }
private void AddTopicControls(AlienType alien) { var metadata = alien.Metadata(); AddControl(new Label(24, 5, metadata.Name, Font.Large, ColorScheme.LightAqua)); AddControl(new Overlay(metadata.Overlay)); var nextTop = 40; foreach (var descriptionLine in metadata.DescriptionLines) { var top = nextTop; nextTop += 8; AddControl(new Label(top, 5, descriptionLine, Font.Normal, ColorScheme.LightPurple)); } }