public SlideshowState(string name, OverlayPlugin manager, string folder, ITrigger next, ITrigger prev, IFeatureTransitionFactory transition, double fadeLengthMS)
            : base(name, manager)
        {
            AddTrigger(true, next);
            AddTrigger(false, prev);

            mTickListener = new Action(Core_Tick);
        }
Exemple #2
0
        public ITransitionStyle Create(OverlayPlugin manager, XmlNode node)
        {
            Logger.Info("Creating Bitmap Window Transition");
            double length = GetDouble(node, 5000.0, "Length");
            IFeatureTransitionFactory transition = manager.GetImageTransitionFactory(node, "transition style", "Style");

            if (transition == null)
            {
                Logger.Debug("Unable to look up custom transition for transition style. Using default, fade.");
                transition = new FeatureFadeFactory();
            }
            return(new FeatureFrameTransitionFactory(transition, length));
        }
 public FeatureFrameTransitionFactory(IFeatureTransitionFactory factory, double lengthMS)
 {
     mFactory = factory;
     mLengthMS = lengthMS;
 }
Exemple #4
0
 public FeatureFrameTransitionFactory(IFeatureTransitionFactory factory, double lengthMS)
 {
     mFactory  = factory;
     mLengthMS = lengthMS;
 }