コード例 #1
0
        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));
            }
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: chadleong/RuneManager
        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();
            }
        }