• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TransitionType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TransitionType的典型用法代码示例。如果您正苦于以下问题:C# TransitionType类的具体用法?C# TransitionType怎么用?C# TransitionType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TransitionType类属于命名空间,在下文中一共展示了TransitionType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Transition

 public Transition(string name, long unid, bool showAnnotation, int priority, TransitionType transitionType, int delay)
     : base(name, unid, showAnnotation)
 {
     this.priority = priority;
     this.transitionType = transitionType;
     this.delay = delay;
 }
开发者ID:davidbedok,项目名称:UBPNS,代码行数:7,代码来源:Transition.cs


示例2: FloatingMessage

 public FloatingMessage(String text, TransitionType transition = TransitionType.FIXED, Actor attachedMonster = null)
 {
     this.text = text;
     this.attachedMonster = attachedMonster;
     this.dialogSprite = new SpriteBatch(UI.getInstance().graphics);
     this.transitionType = transition;
 }
开发者ID:TwoLeggedMammal,项目名称:Summons,代码行数:7,代码来源:UI.cs


示例3: BackgroundScreen

 /// <summary>
 /// Constructs a new background screen.
 /// </summary>
 public BackgroundScreen(string filename, TransitionType trans)
 {
     TransitionOnTime = TimeSpan.FromSeconds(0.5);
     TransitionOffTime = TimeSpan.FromSeconds(0.5);
     this.filename = filename;
     transitionType = trans;
 }
开发者ID:LostCodeStudios,项目名称:SpaceHordes,代码行数:10,代码来源:BackgroundScreen.cs


示例4: ChangeScene

    public static void ChangeScene(string sceneName, TransitionType type)
    {
        if(sceneName.Length == 0){
            Debug.Log("SceneName is Null");
            return;
        }
        if (_nextSceneName.Length > 0){
            Debug.Log("Current Loading some other scene");
            return;
        }
        //ロード中
        if (_asyncOpp != null && !_asyncOpp.isDone){
            return;
        }

        string curScene = Application.loadedLevelName;  //_nextSeqName;

        _lastSceneName = curScene;
        _nextSceneName = sceneName;

        if (type == TransitionType.None)
        {
            SceneManager.LoadNextLevelCore();
        }
        else
        {
            _transitionFlag = false;
            // Commence Transition Effects
        //			_loadingTransition.ShowTransition(type, () => {
        //				SceneManager.LoadNextLevel();
        //			});
        }
    }
开发者ID:kreeds,项目名称:TestProjectDemo,代码行数:33,代码来源:SceneManager.cs


示例5: PopUpGraphicScreen

 public PopUpGraphicScreen(Texture2D _graphic, Vector2 _positionOffset, TransitionType _ttype, TimeSpan _transitionTime)
 {
     graphic = _graphic;
     ttype = _ttype;
     TransitionOnTime = _transitionTime;
     TransitionOffTime = _transitionTime;
     positionOffset = _positionOffset;
     position = Camera.Origin - new Vector2(graphic.Width * 0.5f, graphic.Height * 0.5f) + positionOffset;
 }
开发者ID:markadamdixon,项目名称:CompletedGame_ProduceWars_CSharp,代码行数:9,代码来源:PopUpGraphicScreen.cs


示例6: FillList

        private void FillList(ListBox list, TransitionType selection)
        {
            for (int i = 0; i < (int)TransitionType.EaseOutInBounce; i++) {
                list.Items.Add((TransitionType)i);

                if ((TransitionType)i == selection) {
                    list.SelectedIndex = i;
                }
            }
        }
开发者ID:modulexcite,项目名称:SilverlightWpfContrib,代码行数:10,代码来源:TweeningSample.xaml.cs


示例7: TransitioningImage

        /// <summary>
        /// 
        /// </summary>
        /// <param name="first"></param>
        /// <param name="second"></param>
        /// <param name="type">Linear interpolation or cosine</param>
        /// <param name="frames">Number of frames until the picture completely changes to the second one, then goes back to the first one</param>
        public TransitioningImage(Texture first, Texture second, TransitionType type, int frames, bool animateFirstAlpha = true)
        {
            First = new TexturedRectangle(first);
            Second = new TexturedRectangle(second);
            Type = type;
            Frames = frames;
            AnimateFirstImageAlpha = animateFirstAlpha;

            AddChild(First);
            AddChild(Second);
        }
开发者ID:LukaHorvat,项目名称:Electric,代码行数:18,代码来源:TransitioningImage.cs


示例8: TransitionEffect

 public TransitionEffect(Vector2 center,TransitionType type)
 {
     this.scale = 1;
     if (type == TransitionType.Translate)
         this.translation = new Vector2(-500, 0);
     else
         translation = Vector2.Zero;
     this.center = center;
     this.type = type;
     alpha = 1;
 }
开发者ID:pampersrocker,项目名称:STAR,代码行数:11,代码来源:TransitionEffect.cs


示例9: StartTransition

	public void StartTransition (Color fromColor, Color toColor, float duration, TransitionType type) {
		if (transitState == TransitionState.TransitedIn || transitState == TransitionState.TransitedOut) {
			// Change the state to transiting in/out (according to the previous state)
			transitState = transitState == TransitionState.TransitedIn ? TransitionState.TransitingOut : TransitionState.TransitingIn;

			// Enable the transiter's Image
			transiters[type].EnableImage ();

			// Call the transition animation according to the given TransitionType
			transiters[type].StartTransition (fromColor, toColor, duration);
		}
	}
开发者ID:RedFil,项目名称:DragonsRage-Unity-,代码行数:12,代码来源:UITransitionCanvasBehaviour.cs


示例10: NavigationEntry

 /// <summary>
 /// NavigationEntry
 /// </summary>
 /// <param name="completionTime">completionTime</param>
 /// <param name="displayUrl">displayUrl</param>
 /// <param name="httpStatusCode">httpStatusCode</param>
 /// <param name="originalUrl">originalUrl</param>
 /// <param name="title">title</param>
 /// <param name="transitionType">transitionType</param>
 /// <param name="url">url</param>
 /// <param name="hasPostData">hasPostData</param>
 /// <param name="isValid">isValid</param>
 /// <param name="isCurrent">is the current entry</param>
 public NavigationEntry(bool isCurrent, DateTime completionTime, string displayUrl, int httpStatusCode, string originalUrl, string title, TransitionType transitionType, string url, bool hasPostData, bool isValid)
 {
     this.isCurrent = isCurrent;
     this.completionTime = completionTime;
     this.displayUrl = displayUrl;
     this.httpStatusCode = httpStatusCode;
     this.originalUrl = originalUrl;
     this.title = title;
     this.transitionType = transitionType;
     this.url = url;
     this.hasPostData = hasPostData;
     this.isValid = isValid;
 }
开发者ID:Creo1402,项目名称:CefSharp,代码行数:26,代码来源:NavigationEntry.cs


示例11: StateMenu

 public StateMenu(LeGame g)
     : base(g)
 {
     Log("Creating state");
     background = new ScrollBackground(game, "menu/background");
     mouse = new MouseEntity(game);
     singleColor = multiColor = optionsColor = exitColor = TEXT_COLOR;
     isTransitioning = true;
     doChangeState = false;
     transitionCount = 0;
     targetState = StateManager.State.Single;
     currentTransition = TransitionType.FadeIn;
 }
开发者ID:TheCodeOff,项目名称:TheGame,代码行数:13,代码来源:StateMenu.cs


示例12: Start

        protected void Start(Control control, TransitionType transitionType, int duration, AnimationAction actionHandler, AnimationFinishedEvaluator evaluatorHandler)
        {
            this.targetControl = control;
            this.transitionType = transitionType;
            this.actionHandler = actionHandler;
            this.evaluatorHandler = evaluatorHandler;

            this.counter = 0;
            this.startTime = 0;
            this.targetTime = duration;

            timer = DelayedCall.Start(DoAnimation, duration);
        }
开发者ID:2k10,项目名称:SA-MP-Plus,代码行数:13,代码来源:AnimationBase.cs


示例13: ActivateView

        /// <summary>
        /// Show view onto the screen
        /// </summary>
        /// <param name="view">View to activate</param>
        /// <param name="type">Type of a transition</param>
        public static void ActivateView(IView view, TransitionType type)
        {
            if (_masterForm.InvokeRequired)
            {
                _masterForm.Invoke(new Action<IView>(ActivateView), new object[] { view, type });
                return;
            }

            var from = _currentView != null ? _currentView : view;
            var to = view;

            AddViewToForm(to);

            ViewTransitionManager.Execute(from, to, type);
        }
开发者ID:xorkrus,项目名称:vk_wm,代码行数:20,代码来源:ViewManager.cs


示例14: Start

        /// <summary>
        /// Starts the specified control.
        /// </summary>
        /// <param name="control">The control.</param>
        /// <param name="targetSize">Size of the target.</param>
        /// <param name="transitionType">Type of the transition.</param>
        /// <param name="duration">The duration.</param>
        public void Start(Control control, Size targetSize, TransitionType transitionType, int duration)
        {
            base.Start(control, transitionType, duration,
                delegate
                {
                    int width = DoExpandAnimation(control.Width, targetSize.Width);
                    int height = DoExpandAnimation(control.Height, targetSize.Height);

                    control.Size = new Size(width, height);
                },
                delegate
                {
                    return (control.Size.Equals(targetSize));
                });
        }
开发者ID:barecool,项目名称:winforms-modernui,代码行数:22,代码来源:ExpandAnimation.cs


示例15: Start

        public void Start(Control control, Point targetPoint, TransitionType transitionType, int duration)
        {
            base.Start(control, transitionType, duration,
                delegate
                {
                    int x = DoMoveAnimation(control.Location.X, targetPoint.X);
                    int y = DoMoveAnimation(control.Location.Y, targetPoint.Y);

                    control.Location = new Point(x, y);
                },
                delegate
                {
                    return (control.Location.Equals(targetPoint));
                });
        }
开发者ID:5196HRDT,项目名称:SISCSHARP,代码行数:15,代码来源:MoveAnimation.cs


示例16: ExitableBackgroundScreen

 public ExitableBackgroundScreen(string filename, TransitionType type)
     : base(filename, type)
 {
     exit = new InputAction(
         new Buttons[]
         {
             Buttons.A,
             Buttons.B,
             Buttons.Back
         },
         new Keys[]
         {
             Keys.Space,
             Keys.Escape
         },
         true);
 }
开发者ID:LostCodeStudios,项目名称:SpaceHordes,代码行数:17,代码来源:ExitableBackgroundScreen.cs


示例17: ListBoxVideoItem

        public ListBoxVideoItem(int id, string timestart, string clipid, string display1, string display2, TimeSpan lengthofclip, TypeEnum type, WhatNextEnum whatnext, int inframes, int outframes, Image itemImage, VideoCatergoryEnum category, TransitionType segue, Int32 seglength, string clipfilename)
            : base(id, timestart)
        {
            this.clipID = clipid;
            this.display1 = display1;
            this.display2 = display2;
            this.lengthOfClip = lengthofclip;
            this.type = type;
            this._whatnext = whatnext;
            this.inFrames = inframes;
            this.outFrames = outframes;
            this.itemImage = itemImage;
            this.Catergory = category;
            this.Segue = segue;
            this.SegLength = seglength;

            this.ClipFilename = clipfilename;
        }
开发者ID:zhouqilin,项目名称:CasparCGPlayout,代码行数:18,代码来源:ListBoxVideoItem.cs


示例18: StartTransition

    public void StartTransition(TransitionType transition)
    {
        if (transitionActive) return;

        switch(transition)
        {
            case TransitionType.GameToGlobe:
                StartCoroutine(GameToGlobeTransition());
                break;
            case TransitionType.GlobeToGame:
                StartCoroutine(GlobeToGameTransition());
                break;
            case TransitionType.GlobeGameToCam:
                StartCoroutine(GlobeGameToCam());
                break;
            case TransitionType.GlobeCamToGame:
                StartCoroutine(GlobeCamToGame());
                break;
        }
    }
开发者ID:mathijs750,项目名称:Tarot,代码行数:20,代码来源:TransitionManager.cs


示例19: Execute

        internal static void Execute(IView from, IView to, TransitionType type)
        {
            _fromView = from;
            _toView = to;

            switch (type)
            {
                case TransitionType.Basic:
                    _currentTransition = _basicTransition;
                    break;

                case TransitionType.SlideLeft:
                    _slideTransition.SlideDirection = TransitionType.SlideLeft;
                    _currentTransition = _slideTransition;
                    break;

                case TransitionType.SlideRight:
                    _slideTransition.SlideDirection = TransitionType.SlideRight;
                    _currentTransition = _slideTransition;
                    break;

                case TransitionType.FlipLeft:
                    _flipTransition.FlipDirection = TransitionType.FlipLeft;
                    _currentTransition = _flipTransition;
                    break;

                case TransitionType.FlipRight:
                    _flipTransition.FlipDirection = TransitionType.FlipRight;
                    _currentTransition = _flipTransition;
                    break;
            }

            if (!_currentTransition.IsTransitionAvailable())
                _currentTransition = _basicTransition;

            _currentTransition.Execute();
        }
开发者ID:xorkrus,项目名称:vk_wm,代码行数:37,代码来源:ViewTransitionManager.cs


示例20: FillAnimation

        private static void FillAnimation(DoubleAnimationUsingKeyFrames animation, TransitionType type, double from, double to, TimeSpan duration, double fps)
        {
            Equation equation = (Equation)Delegate.CreateDelegate(typeof(Equation), typeof(Equations).GetMethod(type.ToString()));

            double total = duration.TotalMilliseconds;
            double step = 1000D / (double)fps;

            // clear animation
            animation.KeyFrames.Clear();

            for (double i = 0; i < total; i += step) {
                LinearDoubleKeyFrame frame = new LinearDoubleKeyFrame();
                frame.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(i));
                frame.Value = equation(i, from, to - from, total);

                animation.KeyFrames.Add(frame);
            }

            // always add exact final key frame
            LinearDoubleKeyFrame finalFrame = new LinearDoubleKeyFrame();
            finalFrame.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(total));
            finalFrame.Value = to;
            animation.KeyFrames.Add(finalFrame);
        }
开发者ID:modulexcite,项目名称:SilverlightWpfContrib,代码行数:24,代码来源:Tween.cs



注:本文中的TransitionType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Translation类代码示例发布时间:2022-05-24
下一篇:
C# TransitionCollection类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap