Пример #1
0
 public override void started(float timelineTime, Clock clock)
 {
     if (text != null)
     {
         finished    = false;
         textDisplay = TimelineController.showText(text, CameraName);
         if (textDisplay == null)
         {
             finished = true;
         }
         else
         {
             textDisplay.Position             = position;
             textDisplay.Size                 = size;
             textDisplay.FontName             = fontName;
             textDisplay.FontHeight           = fontHeight;
             textDisplay.TextAlign            = textAlign;
             textDisplay.ScenePoint           = scenePoint;
             textDisplay.PositionOnScenePoint = positionOnScenePoint;
         }
     }
     else
     {
         finished = true;
     }
 }
Пример #2
0
 public override void editing()
 {
     if (text != null)
     {
         textDisplay = TimelineController.showText(text, CameraName);
         if (textDisplay != null)
         {
             textDisplay.Position             = position;
             textDisplay.Size                 = size;
             textDisplay.FontName             = fontName;
             textDisplay.FontHeight           = fontHeight;
             textDisplay.TextAlign            = textAlign;
             textDisplay.ScenePoint           = scenePoint;
             textDisplay.PositionOnScenePoint = positionOnScenePoint;
             textDisplay.Editable             = true;
             textDisplay.TextEdited          += new EventDelegate <ITextDisplay, string>(textDisplay_TextEdited);
         }
     }
 }