Пример #1
0
 public override void performHoverAction(int x, int y)
 {
     this.hoverText = "";
     foreach (ClickableComponent button in this.buttons)
     {
         if (button.containsPoint(x, y))
         {
             this.hoverText = GameMenu.getLabelOfTabFromIndex(Convert.ToInt32(button.name));
         }
     }
 }
Пример #2
0
 public override void performHoverAction(int x, int y)
 {
     hoverText = "";
     foreach (ClickableComponent c in buttons)
     {
         if (c.containsPoint(x, y))
         {
             int slotNumber = Convert.ToInt32(c.name);
             hoverText = GameMenu.getLabelOfTabFromIndex(slotNumber);
         }
     }
 }