Ejemplo n.º 1
0
 public void CopyPresentationFrom(Scriptable item, bool noOverwriteExisting)
 {         // see Item
     if (HighlightStyle == null)
     {
         HighlightStyle = new HighlightStyleC();
     }
     HighlightStyle.CopyFrom(item.HighlightStyle);
     if (!noOverwriteExisting || Sound == null)
     {
         Sound = item.Sound?.Clone();
     }
     if (!noOverwriteExisting || string.IsNullOrEmpty(OutputText))
     {
         OutputText = item.OutputText;
     }
     OutputAsDisplay = item.OutputAsDisplay;
     if (!noOverwriteExisting || string.IsNullOrEmpty(SpeechText))
     {
         SpeechText = item.SpeechText;
     }
     SpeechAsDisplay = item.SpeechAsDisplay;
     if (!noOverwriteExisting || string.IsNullOrEmpty(PromptText))
     {
         PromptText = item.PromptText;
     }
 }