예제 #1
0
 public GameLayerManager(CustomManager manager)
 {
     Manager = manager;
     _Panel = new Panel(manager) { Color = Color.Transparent, Width = 1224, Height = 550, Parent = manager.MainWindow, Passive = true };
     _Panel.Init();
     manager.Add(_Panel);
 }
예제 #2
0
        /// <summary>
        /// Creates an application using the Default skin file. 
        /// </summary>
        public TheGameOfLife()
            : base(true)
        {
            _screenManager = new ScreenManager(this);
            Manager = new CustomManager(this, _screenManager);

            Content.RootDirectory = "Content";
            Manager.SkinDirectory = "Content/Skins";
            Manager.LayoutDirectory = "Content/Layouts";

            ClearBackground = true;
            BackgroundColor = Color.White;

            TargetElapsedTime = TimeSpan.FromMilliseconds(1000 / 60f);

            IsFixedTimeStep = true;
            SystemBorder = true;
            ExitConfirmation = false;

            Manager.Visible = false;
            _screenManager = new ScreenManager(this);
        }