/// <summary> /// Left Click Favorites Button. /// </summary> /// <param name="x">X position of the mouse</param> /// <param name="y">Y position of the mouse</param> public void LeftClickFavoritesButton(int x, int y) { if (AddToFavoritesButton.containsPoint(x, y)) { Menu.PlayerLoader.SaveFavoriteToList(Game1.player.isMale, Menu.BaseIndex, Game1.player.skin.Get(), Game1.player.hair.Get(), Menu.FaceIndex, Menu.NoseIndex, Menu.ShoeIndex, Game1.player.accessory.Get(), Menu.IsBald); MenuComponents.ChangeScaleLeftClick(AddToFavoritesButton); Game1.playSound("coin"); } }
/// <summary> /// Left button Left Click. /// </summary> /// <param name="x">X position of the mouse</param> /// <param name="y">Y position of the mouse</param> public void LeftClick(int x, int y) { foreach (ClickableTextureComponent component in NewLeftButtonsList) { if (component.bounds.Contains(x, y) && component.visible) { SelectionClick(component.name, -1); MenuComponents.ChangeScaleLeftClick(component); MenuComponents.CheckIfBald(component); Game1.playSound("grassyStep"); } } }