private void rune_Click(object sender, EventArgs e) { ResetRuneClicked(); RuneControl tc = ((RuneControl)sender); tc.Gamma = 1.4f; tc.Refresh(); var ind = runes.ToList().IndexOf(tc) + 1; RuneSelected = ind; if (alwaysShowBases || (ind > 0 && tc.Tag != null)) { RuneClick?.Invoke(sender, new RuneClickEventArgs(ind, (Rune)tc.Tag)); } }
private void rune_Click(object sender, EventArgs e) { foreach (RuneControl t in runes) { t.Gamma = 1; t.Refresh(); } RuneControl tc = ((RuneControl)sender); if (tc.Tag != null) { tc.Gamma = 1.4f; tc.Refresh(); rune_Stats((Rune)tc.Tag); runeBox.Show(); runeShown.SetRune((Rune)tc.Tag); } else { tc.Hide(); runeBox.Hide(); } }