static void PrioritySelector(PriorSpell defaultSpell = PriorSpell.N) { int defaultindex; switch (defaultSpell) { case PriorSpell.Q: defaultindex = 0; break; case PriorSpell.W: defaultindex = 1; break; case PriorSpell.E: defaultindex = 2; break; case PriorSpell.N: defaultindex = 3; break; default: defaultindex = 3; break; } Menu.SubMenu("Misc").AddItem(new MenuItem("Misc.PriorSpell", "PriorSpell", true)).SetValue(new StringList(new string[] { "Q", "W", "E", "None" }, defaultindex)); }