Ejemplo n.º 1
0
 public StartMenu(int rows, int columns, Image image)
 {
     this.rows = rows;
     this.columns = columns;
     menuDestinations = new Button[rows, columns];
     menuImage = image;
     animationDelay = 2;
     animationFinished = false;
     animationIndex = 0;
     animationImages = new List<Image>();
     animationImages.Add(Image.FromFile("../../../Images/Menus/StartMenu/Animation/StartMenuAnimation1.png"));
     animationImages.Add(Image.FromFile("../../../Images/Menus/StartMenu/Animation/StartMenuAnimation2.png"));
     animationImages.Add(Image.FromFile("../../../Images/Menus/StartMenu/Animation/StartMenuAnimation3.png"));
     animationImages.Add(Image.FromFile("../../../Images/Menus/StartMenu/Animation/StartMenuAnimation4.png"));
     animationImages.Add(Image.FromFile("../../../Images/Menus/StartMenu/Animation/StartMenuAnimation5.png"));
     position = new Point(0, 0);
 }
Ejemplo n.º 2
0
 public void fillDestination(int row, int column, Button button)
 {
     menuDestinations[row, column] = button;
 }
Ejemplo n.º 3
0
 void Start()
 {
     button=GetComponent<Button>();
     manager = GameManager.find();
 }
Ejemplo n.º 4
0
 public void drawHighlightedMenu(Graphics g, MenuFactory menuFactory)
 {
     currentButton =  menuFactory.getCurrentMenu().getButtons()[menuFactory.getCurrentMenu().getPosition().Y, menuFactory.getCurrentMenu().getPosition().X];
     g.DrawImage(currentButton.getHighlightImage(), currentButton.getLocation());
 }