Exemplo n.º 1
0
        public DrawableButton GetMovePad()
        {
            DrawableButton movePad = new DrawableButton();
            movePad.position = new Vector2(40f, 472f);
            movePad.setTexture = TextureCache.gamePad;
            movePad.drawColor = Color.LightGray;
            movePad.clickedColor = Color.White;
            movePad.color = Color.LightGray;
            movePad.Click += (s, e) =>
            {
                //move the trainer
            };

            return movePad;
        }
Exemplo n.º 2
0
 public DrawableButton GetButtonA()
 {
     DrawableButton buttonA = new DrawableButton();
     buttonA.position = new Vector2(1070f, 472f);
     buttonA.setTexture = TextureCache.buttonA;
     buttonA.drawColor = Color.LightGray;
     buttonA.clickedColor = Color.White;
     buttonA.color = Color.LightGray;
     buttonA.Click += (s, e) =>
     {
         //Perform action on click of A
     };
     return buttonA;
 }