Пример #1
0
        protected override void LoadContent()
        {
            sb = new SpriteBatch(GraphicsDevice);

            // Load static content
            Test.LoadStaticContent(Content);
            Slider.LoadContent(Content);
            Button.LoadContent(Content);

            font = Content.Load <SpriteFont>("UIFont");

            menu = new TestMenu(GraphicsDevice, Content);
            menu.TestSelected += (type) => SetCurrentTest(type);

            base.LoadContent();
        }
Пример #2
0
        protected override void LoadContent()
        {
            sb = new SpriteBatch(GraphicsDevice);

            // Load static content
            Test.LoadStaticContent(Content);
            Slider.LoadContent(Content);
            Button.LoadContent(Content);

            font = Content.Load<SpriteFont>("UIFont");

            menu = new TestMenu(GraphicsDevice, Content);
            menu.TestSelected += (type) => SetCurrentTest(type);

            base.LoadContent();
        }