public FontOverrideData(FontOverrideData data)
 {
     ColorCode = data.ColorCode;
     Size      = data.Size;
     Bold      = data.Bold;
     Italics   = data.Italics;
 }
Beispiel #2
0
        public void Execute(ICallStack callStack, IStoryContext context)
        {
            FontOverrideData fontOverrideData = FontOverrideData.Default;

            if (!string.IsNullOrEmpty(color))
            {
                fontOverrideData.ColorCode = color;
            }
            if (size > float.Epsilon)
            {
                fontOverrideData.Size = size;
            }
            fontOverrideData.Bold    = bold;
            fontOverrideData.Italics = italics;
            context.MessagePresenter.SetFont(fontOverrideData);
        }