예제 #1
0
        private void RemoveOpener(OpenerSpellInfo spell)
        {
            if (spell == null)
            {
                return;
            }

            if (!GuiOpenerList.Contains(spell))
            {
                return;
            }

            GuiOpenerList.Remove(spell);
            SaveOpener();
        }
예제 #2
0
        private void MoveSelectionDown(OpenerSpellInfo spell)
        {
            if (spell == null)
            {
                return;
            }

            if (!GuiOpenerList.Contains(spell))
            {
                return;
            }

            if (GuiOpenerList.Last() == spell)
            {
                return;
            }

            var index = GuiOpenerList.IndexOf(spell);

            GuiOpenerList.Move(index, index + 1);
            SaveOpener();
        }