protected override void OnCardOver(object sender, CardsEventArgs e) { base.OnCardOver(sender, e); for (var i = 0; i < e.Cards.Length; i++) { e.CardSizes[i] = new Size(e.Cards[i].RealWidth * 100 / e.Cards[i].RealHeight, 100); } if (_fanPanel.HandDensity == 0) { if (bottomZone.Visibility != Visibility.Visible) { bottomZone.Visibility = Visibility.Visible; Anim.From = 0; Anim.To = 0.4; bottomZone.BeginAnimation(OpacityProperty, Anim); Anim.From = null; } else { Anim.To = 0.4; bottomZone.BeginAnimation(OpacityProperty, Anim); } } else { //e.CardSize = new Size(100 * Program.GameEngine.Definition.DefaultSize.Width / Program.GameEngine.Definition.DefaultSize.Height, 100); _fanPanel.DisplayInsertIndicator(e.ClickedCard, _fanPanel.GetIndexFromPoint(Mouse.GetPosition(_fanPanel))); } }
protected override void OnCardOver(object sender, CardsEventArgs e) { base.OnCardOver(sender, e); e.CardSize = new Size( 100 * Program.Game.Definition.CardDefinition.Width / Program.Game.Definition.CardDefinition.Height, 100); _fanPanel.DisplayInsertIndicator(e.ClickedCard, _fanPanel.GetIndexFromPoint(Mouse.GetPosition(_fanPanel))); }
protected override void OnCardOver(object sender, CardsEventArgs e) { base.OnCardOver(sender, e); for (var i = 0; i < e.Cards.Length; i++) { e.CardSizes[i] = new Size(e.Cards[i].RealWidth * 100 / e.Cards[i].RealHeight, 100); } //e.CardSize = new Size(100 * Program.GameEngine.Definition.DefaultSize.Width / Program.GameEngine.Definition.DefaultSize.Height, 100); _fanPanel.DisplayInsertIndicator(e.ClickedCard, _fanPanel.GetIndexFromPoint(Mouse.GetPosition(_fanPanel))); }