示例#1
0
 public override void receiveLeftClick(int x, int y, bool playSound = true)
 {
     if (this.isWithinBounds(x, y))
     {
         foreach (ClickableComponent levelButton in this.levelButtons)
         {
             if (levelButton.containsPoint(x, y))
             {
                 Game1.playSound("smallSelect");
                 Game1.changeMusicTrack("none");
                 this.exitThisMenu(false);
                 DeepWoodsManager.WarpFarmerIntoDeepWoods(Convert.ToInt32(levelButton.name));
             }
         }
         base.receiveLeftClick(x, y, true);
     }
     else
     {
         this.exitThisMenu(false);
     }
 }