Example #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 });
 }
Example #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 });
 }
Example #3
0
 public GameState(LonharGame game)
 {
     this.game = game;
 }
Example #4
0
 public Button(Rectangle drawRect, LonharGame game, Color color, Color hoverColor)
     : this(drawRect, game, color)
 {
     this.hoverColor = hoverColor;
 }