Esempio n. 1
0
        private void AddJournalEntry(object sender, JournalEntry entry)
        {
            string text = $"{(entry.Name != string.Empty ? $"{entry.Name}: " : string.Empty)}{entry.Text}";

            //TransformFont(ref font, ref asUnicode);
            _journalEntries.AddEntry(text, (byte)entry.Font, entry.Hue, entry.IsUnicode);
        }
Esempio n. 2
0
        private void AddJournalEntry(JournalEntry entry)
        {
            string text = string.Format("{0}{1}", entry.SpeakerName != string.Empty ? entry.SpeakerName + ": " : string.Empty, entry.Text);

            m_JournalEntries.AddEntry(string.Format(
                                          "<outline color='#{3}' style='font-family:{1}{2};'>{0}</outline>", text, entry.AsUnicode ? "uni" : "ascii",
                                          entry.Font, Utility.GetColorFromUshort(Resources.HueData.GetHue(entry.Hue, -1))));
        }
Esempio n. 3
0
        private void AddJournalEntry(JournalEntry entry)
        {
            string text      = string.Format("{0}{1}", entry.SpeakerName != string.Empty ? entry.SpeakerName + ": " : string.Empty, entry.Text);
            int    font      = entry.Font;
            bool   asUnicode = entry.AsUnicode;

            TransformFont(ref font, ref asUnicode);
            _journalEntries.AddEntry(text, font, entry.Hue);
        }
Esempio n. 4
0
        private void AddJournalEntry(JournalEntry entry)
        {
            string text      = string.Format("{0}{1}", entry.SpeakerName != string.Empty ? entry.SpeakerName + ": " : string.Empty, entry.Text);
            int    font      = entry.Font;
            bool   asUnicode = entry.AsUnicode;

            TransformFont(ref font, ref asUnicode);

            m_JournalEntries.AddEntry(string.Format(
                                          "<span color='#{3}' style='font-family:{1}{2};'>{0}</span>", text, asUnicode ? "uni" : "ascii", font,
                                          // "<span color='#{1}' style='font-family:ascii9;'>{0}</span>", text,
                                          Utility.GetColorFromUshort(Resources.HueData.GetHue(entry.Hue, 0))));
        }
Esempio n. 5
0
 private void AddJournalEntry(string text)
 {
     m_JournalEntries.AddEntry(string.Format("<left color='#50422D'>{0}</left><br/>", text));
 }