Ejemplo n.º 1
0
 public void GeneraBotonesMenu()
 {
     bot = new boton(100, 300, "partnu.jpg", 40, 100);
     botones.Add(bot);
     bot = new boton(100, 400, "ayuda.jpg", 40, 100);
     botones.Add(bot);
     bot = new boton(300, 300, "cred.jpg", 40, 100);
     botones.Add(bot);
     bot = new boton(300, 400, "salir.jpg", 40, 100);
     botones.Add(bot);
 }
Ejemplo n.º 2
0
 public void GeneraBotonesGame()
 {
     bot = new boton(160, Form1.ActiveForm.ClientSize.Height - 105, "aldeanobot.png", 40, 40);
     botones.Add(bot);
     bot = new boton(210, Form1.ActiveForm.ClientSize.Height - 105, "soldadobot.png", 40, 40);
     bot.setVisible(false);
     botones.Add(bot);
     bot = new boton(260, Form1.ActiveForm.ClientSize.Height - 105, "soldespbot.png", 40, 40);
     botones.Add(bot);
     bot.setVisible(false);
     bot = new boton(310, Form1.ActiveForm.ClientSize.Height - 105, "navebot.png", 40, 40);
     botones.Add(bot);
     bot.setVisible(false);
     bot = new boton(160, Form1.ActiveForm.ClientSize.Height - 55, "centrobot.png", 40, 40);
     botones.Add(bot);
     bot = new boton(210, Form1.ActiveForm.ClientSize.Height - 55, "cuartelbot.png", 40, 40);
     botones.Add(bot);
     bot = new boton(260, Form1.ActiveForm.ClientSize.Height - 55, "granjabot3.png", 40, 40);
     botones.Add(bot);
     bot = new boton(600, Form1.ActiveForm.ClientSize.Height - 105, "menubot.png", 40, 40);
     botones.Add(bot);
 }
Ejemplo n.º 3
0
 public void GeneraBotonesPG()
 {
     bot = new boton(150, 400, "volver.jpg", 40, 100);
     botones.Add(bot);
 }