예제 #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();
        }