示例#1
0
        public override void HandleSceneOnEnter(SceneOnEnterEvent e)
        {
            this._previousSceneType = e.PreviousScene.GetType();

            var titleBar = new Titlebar(this._titlebarCaption);

            this.AddChild(titleBar);
            this.AddChild(new FirstPersonSceneBackArrow(GoBack));
            this.Events.AddEvent(PriorityType.ANIMATION, new Titlebar.FadeAndRemoveEvent(this, titleBar));
        }
示例#2
0
 public FadeAndRemoveEvent(Scene scene, Titlebar target) : base(FadeAndRemoveEventID, 100, 2500)
 {
     this._scene   = scene;
     this._target  = target;
     this._counter = 0;
 }