Ejemplo n.º 1
0
        public static void YogUI_LoadContent(Game game)
        {
            content = new ResourceContentManager(game.Services, Resource1.ResourceManager);
            white = new Texture2D(game.GraphicsDevice, 1, 1);
            white.SetData<Color>(new Color[] { Color.White });
            circleShader = content.Load<Effect>("CircleShader");
            btn_hover.LoadFromTexture(content.Load<Texture2D>("btn_default_focused_holo_9"));
            btn_normal.LoadFromTexture(content.Load<Texture2D>("btn_default_normal_holo_9"));

            textField_normal.LoadFromTexture(content.Load<Texture2D>("textfield_default_9"));
            textField_selected.LoadFromTexture(content.Load<Texture2D>("textfield_selected_9"));
            textField_selected_right.LoadFromTexture(content.Load<Texture2D>("textfield_selected_right_9"));
            textField_selected_wrong.LoadFromTexture(content.Load<Texture2D>("textfield_selected_wrong_9"));

            //Texture2D test = content.Load<Texture2D>("ninepatchtest");
               // bool isPatch = textField_normal.isAlreadyNinepatch(textField_normal.texture);

            inputManager = new InputManager();
            theGame = game;
        }
Ejemplo n.º 2
0
 public void UpdateTest()
 {
     InputManager target = new InputManager(); // TODO: Initialize to an appropriate value
     GameTime time = null; // TODO: Initialize to an appropriate value
     target.Update(time);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Ejemplo n.º 3
0
 public void InputManagerConstructorTest()
 {
     InputManager target = new InputManager();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }