Ejemplo n.º 1
0
        public ScreenManager()
            : base(G.Game)
        {
            Components = new List<Screen>();
            _ComponentsToUpdate = new List<Screen>();

            Transition = new Transition();
            Transition.OnTime = Time.s(1);
            Transition.OffTime = Time.s(1);
            Transition.Position = 1;
            ScreenState = ScreenState.TransitionOn;

            IsExiting = false;
            IsPopup = false;
        }
Ejemplo n.º 2
0
        public Screen()
        {
            ScreenContext.SetContext(this);
            Components = new List<Screen>();
            componentsToUpdate = new List<Screen>();

            Transition = new Transition
                             {
                                 OnTime = Time.s(1),
                                 OffTime = Time.s(1),
                                 Position = 0
                             };
            ScreenState = ScreenState.TransitionOn;

            IsExiting = false;
            IsPopup = false;
        }