/// <summary>
        /// Initialise the fade transition, specifying how long the fade should last, in ms.
        /// </summary>
        /// <param name="transition">The transition this fade is part of.</param>
        /// <param name="manager">The window this fade is to be drawn on.</param>
        /// <param name="lengthMS">The length of time, in ms, the fade should last.</param>
        public FeatureFrameTransition(StateTransition transition, FrameOverlayManager manager, IFeatureTransition transitionEffect)
            : base(transition, manager)
        {
            mTransition = transitionEffect;
            mTransition.Start = From;
            mTransition.Finish = To;
            mTransition.Finished += new Action(transitionEffect_Finished);

            AddFeature(mTransition);
        }
Exemple #2
0
        /// <summary>
        /// Initialise the fade transition, specifying how long the fade should last, in ms.
        /// </summary>
        /// <param name="transition">The transition this fade is part of.</param>
        /// <param name="manager">The window this fade is to be drawn on.</param>
        /// <param name="lengthMS">The length of time, in ms, the fade should last.</param>
        public FeatureFrameTransition(StateTransition transition, FrameOverlayManager manager, IFeatureTransition transitionEffect)
            : base(transition, manager)
        {
            mTransition           = transitionEffect;
            mTransition.Start     = From;
            mTransition.Finish    = To;
            mTransition.Finished += new Action(transitionEffect_Finished);

            AddFeature(mTransition);
        }
Exemple #3
0
 public IFeatureTransition GetImageTransition(XmlNode node, string reason, IFeatureTransition defalt, params string[] attributes)
 {
     return(GetInstance(node, mImageTransitions, "image transition", reason, defalt, attributes));
 }
 public FlythroughState(string name, OverlayPlugin manager, string flythrough, string slideshowWindow, string slideshowFolder, IFeatureTransition slideshowTransition, params ITrigger[] steps)
     : this(name, manager, flythrough, steps)
 {
     mSlideshowWindowName = slideshowWindow;
     mSlideshowFolder = slideshowFolder;
     mSlideshowTransition = slideshowTransition;
 }
 public bool Accept(DialogueManager dialog)
 {
     _feature = dialog as IFeatureTransition;
     return(_feature != null);
 }