public void AddToLog(string s) { if (logRTB.Text.Length > 0) { richText.AddText("\n\n"); } richText.AddTaggedText(s + "", UIFonts.normalVerdana, Color.White); }
public PropertiesForm() { InitializeComponent(); mapDescriptionRichText = new UIRichText(mapDescriptionRTB); filePathTextBox.Text = Current.map.Name; mapNameTextBox.Text = DHSTRINGS.GetTriggerString(DHJassExecutor.Globals["DHMapName"].StringValue); mapDescriptionRichText.AddTaggedText(DHSTRINGS.GetTriggerString(DHJassExecutor.Globals["DHMapDescription"].StringValue), UIFonts.boldVerdana, Color.White); mapImagePanel.BackgroundImage = DHRC.GetTgaImage("war3mapPreview.tga"); }