Exemplo n.º 1
0
 private static TopicMetadata UfoComponent(UfoComponentType ufoComponent)
 {
     return new TopicMetadata
     {
         Name = ufoComponent.Metadata().Name,
         Category = TopicCategory.UfoComponents,
         Scheme = ColorScheme.LightWhite,
         RequiredResearch = new[] { ufoComponent.Metadata().RequiredResearch },
         Subject = ufoComponent
     };
 }
Exemplo n.º 2
0
		private void AddTopicControls(UfoComponentType ufoComponent)
		{
			var metadata = ufoComponent.Metadata();
			var title = new WrappedLabel(24, 5, metadata.LabelWidth, metadata.Name, Font.Large, ColorScheme.LightAqua);
			AddControl(title);
			AddControl(new Overlay(metadata.Overlay));
			AddControl(new WrappedLabel(title.Bottom + 2, 5, metadata.LabelWidth, metadata.Description, Font.Normal, ColorScheme.LightPurple));
		}