//--------------------------------------------------------------------------------------------- public void MoveSpellNext(int direction, List <StandardSpell> switchCol) { if (switchCol == null) { switchCol = Magery.GetStandardSpells(); //Nebo all } int index = 0; try { StandardSpell sp; if (Magery.ParseSpell(this.SelectedSpell, out sp)) { index = UOExtensions.Utils.GetSwitchIndex(switchCol.IndexOf(sp), direction, switchCol.Count); } } catch { index = 0; } this.SelectedSpellSet = switchCol[index].ToString(); }
//--------------------------------------------------------------------------------------------- public void MoveSpellNext(int direction, params string[] spells) { this.MoveSpellNext(direction, Magery.GetStandardSpells(spells)); }