示例#1
0
        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));
        }
示例#2
0
文件: Brand.cs 项目: SmokyBot/LS
        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));
        }