示例#1
0
        public MainMenu(Window window)
        {
            ParentWindow = window;
            skybox = new Skybox();

            start = new Button();
            start.ApplyStylishEffect();
            //start.Location = new Vector()
        }
示例#2
0
        public GameWindow()
        {
            int width = Settings.Default.ResolutionX;
            int height = Settings.Default.ResolutionY;
            Initialize(width, height, GameplayConstants.WindowName);

            LogManager.WriteInfo("Main window created successfully.");

            Mouse.ButtonDown += (o, e) => MouseClicked = true;
            Mouse.ButtonUp += (o, e) => MouseClicked = false;

            skybox = new Skybox();
            Children3D.Add(skybox);
        }