/// <summary> /// Отображение скилов /// </summary> private void ShowSkills() { C_Spells.CurrentPlayer = CurrentPlayer; C_Spells.Show(); }
private void UpdateView() { C_Name.Text = CurrentPlayer.Name; C_Level.Text = "Lvl: " + CurrentPlayer.Level; C_HelthPr.Maximum = (double)CurrentPlayer.MaxHealth; C_HelthPr.Value = (double)CurrentPlayer.Health; C_Helth.Text = "Helth: " + CurrentPlayer.Health.ToString() + "//" + CurrentPlayer.MaxHealth.ToString(); C_ManaPr.Maximum = (double)CurrentPlayer.MaxMana; C_ManaPr.Value = (double)CurrentPlayer.Mana; C_Mana.Text = "Mana: " + CurrentPlayer.Mana.ToString() + "//" + CurrentPlayer.MaxMana.ToString(); C_ExpPr.Maximum = (double)CurrentPlayer.MaxExp; C_ExpPr.Value = (double)CurrentPlayer.Exp; C_Exp.Text = "Exp: " + CurrentPlayer.Exp.ToString() + "//" + CurrentPlayer.MaxExp.ToString(); Buff buff = CurrentPlayer.Buffs.FirstOrDefault(p => p.Name == "SoulCount"); if (buff != null && buff.SoulCount != 0) { C_Attack.Text = CurrentPlayer.Demage.ToString() + " + " + buff.SoulCount; } else { C_Attack.Text = CurrentPlayer.Demage.ToString(); } C_Speed.Text = CurrentPlayer.Speed.ToString(); C_Arrmor.Text = CurrentPlayer.Arrmor.ToString(); C_AttackSpeed.Text = CurrentPlayer.AttackSpeed.ToString(); C_ManaRegeneration.Text = CurrentPlayer.ManaRegeneration.ToString(); C_HelthRegeneration.Text = CurrentPlayer.HealthRegeneration.ToString(); C_Gold.Text = CurrentPlayer.Gold.ToString(); C_Kills.Text = CurrentPlayer.Kills.ToString(); C_Death.Text = CurrentPlayer.Death.ToString(); C_Spells.KeyUpSpellView(CurrentPlayer.AllowUpSpell); if (CurrentPlayer.Silenced) { C_Silenc.Visibility = Windows.UI.Xaml.Visibility.Visible; } else { C_Silenc.Visibility = Windows.UI.Xaml.Visibility.Collapsed; } if (CurrentPlayer.Hexed) { C_Hex.Visibility = Windows.UI.Xaml.Visibility.Visible; } else { C_Hex.Visibility = Windows.UI.Xaml.Visibility.Collapsed; } if (CurrentPlayer.Buffs.Any(p => p.Stun)) { C_Stun.Visibility = Windows.UI.Xaml.Visibility.Visible; } else { C_Stun.Visibility = Windows.UI.Xaml.Visibility.Collapsed; } }