Ejemplo n.º 1
0
 public Button(Rectangle drawRect, LonharGame game, Color color, Color hoverColor, int textAlignment, String text, SpriteFont font)
     : this(drawRect, new Texture2D(game.GraphicsDevice, 1, 1), textAlignment, text, font)
 {
     this.color = color;
     this.hoverColor = hoverColor;
     texture.SetData(new Color[] { Color.White });
 }
Ejemplo n.º 2
0
 public Button(Rectangle drawRect, LonharGame game, Color color)
 {
     DrawRect = drawRect;
     this.color = color;
     hoverColor = color;
     texture = new Texture2D(game.GraphicsDevice, 1, 1);
     texture.SetData(new Color[] { Color.White });
 }
Ejemplo n.º 3
0
 public GameState(LonharGame game)
 {
     this.game = game;
 }
Ejemplo n.º 4
0
 public Button(Rectangle drawRect, LonharGame game, Color color, Color hoverColor)
     : this(drawRect, game, color)
 {
     this.hoverColor = hoverColor;
 }