Beispiel #1
0
        public Annie()
        {
            Player = ObjectManager.Player;
            MainMenu = new CommonMenu(MenuDisplay, true);
            Orbwalker = MainMenu.Orbwalker;
            AnnieCustomMenu.Load(MainMenu);

            LoadLambdaExpressions();

            Spells = new CommonSpells(this);
            AnnieSpells.Load(this);

            Buttons = new AnnieButtons(this);
            AnnieOrbwalker = new AnnieCore(this);

            Draws = new AnnieDrawings(this);
            DrawDamage = new CommonDamageDrawing(this);
            DisableAA = new CommonDisableAA(this);
            ForceUltimate = new CommonForceUltimate(this);
            UltimateRange = Spells.R.Range;
            ForceUltimate.ForceUltimate = AnnieOrbwalker.Ultimate;
            DrawDamage.AmountOfDamage = Spells.MaxComboDamage;
            DrawDamage.Active = true;

            Tibbers = new AnnieTibbers(this);

            Obj_AI_Base.OnProcessSpellCast += EAgainstEnemyAA;
            Interrupter2.OnInterruptableTarget += InterruptDangerousSpells;
            AntiGapcloser.OnEnemyGapcloser += StunGapCloser;
            Game.OnUpdate += StackE;
            Obj_AI_Base.OnLevelUp += EvolveUltimate;
        }
 private void BindMenuList()
 {
     //dtMenu.SetClientID(dtMenu.ClientID);
     TreeNodeInfo<MenuInfo> list = new CommonMenu().GetMenuTree(MenuInfo.DEFAULT_PARENT_ID, true);
     dtMenu.DataSource = list;
     dtMenu.DataBind();
 }
Beispiel #3
0
 public static void Load(CommonMenu mainMenu)
 {
     RemoveItems(mainMenu);
     LoadLaneClear(mainMenu);
     LoadCombo(mainMenu);
     LoadMisc(mainMenu);
 }
Beispiel #4
0
 private static void LoadLaneClear(CommonMenu mainMenu)
 {
     mainMenu.LaneClearMenu.AddItem(
         new MenuItem(KoreanUtils.ParamName(mainMenu, "saveqtofarm"), "Giữ Q để đánh lính").SetValue(true));
     mainMenu.LaneClearMenu.AddItem(
         new MenuItem(KoreanUtils.ParamName(mainMenu, "minminionstow"), "Dùng W nếu giết được từ...").SetValue(
             new Slider(3, 1, 6)));
 }
 private static void LoadLaneClear(CommonMenu mainMenu)
 {
     mainMenu.LaneClearMenu.AddItem(
         new MenuItem(KoreanUtils.ParamName(mainMenu, "saveqtofarm"), "Save Q to Farm").SetValue(true));
     mainMenu.LaneClearMenu.AddItem(
         new MenuItem(KoreanUtils.ParamName(mainMenu, "minminionstow"), "W Must Hit at Least").SetValue(
             new Slider(3, 1, 6)));
 }
Beispiel #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TreeNodeInfo<MenuInfo> tree = new CommonMenu().GetMenuTree(MenuInfo.DEFAULT_PARENT_ID, false);
         mMain.Items.Clear();
         BindTree(tree, mMain);
     }
 }
Beispiel #7
0
        protected CommonChampion(string menuDisplay)
        {
            Player = ObjectManager.Player;

            MainMenu = new CommonMenu(menuDisplay, true);
            Orbwalker = MainMenu.Orbwalker;
            Spells = new CommonSpells(this);
            ForceUltimate = new CommonForceUltimate(this);
            DrawDamage = new CommonDamageDrawing(this);
            DrawDamage.AmountOfDamage = Spells.MaxComboDamage;
            DrawDamage.Active = true;
            commonEvolveUltimate = new CommonEvolveUltimate();
        }
Beispiel #8
0
 public string delCarMenu()
 {
     try
     {
         Console.WriteLine("--------------------");
         Console.WriteLine("Car 데이터 삭제");
         Console.WriteLine("--------------------");
         Console.Write("삭제할 차량 모델을 입력 : ");
         return(Console.ReadLine());
     }
     catch (FormatException e)
     {
         CommonMenu.errMsg("delCarMenu", e.Message);
         return(delCarMenu());
     }
 }
Beispiel #9
0
        public int getRandSize()
        {
            int size = 0;

            try
            {
                Console.WriteLine("--------------------");
                Console.WriteLine("랜덤 데이터 갯수 설정");
                Console.WriteLine("--------------------");
                Console.Write("갯수 입력 : ");
                return(Convert.ToInt32(Console.ReadLine()));
            }
            catch (FormatException e)
            {
                CommonMenu.errMsg("getRandSize", e.Message);
            }
            return(size);
        }
Beispiel #10
0
        public void AddMenuCount(string userNo, string menuCode)
        {
            var menu =
                SQLiteHelper.DB.Table <CommonMenu>().FirstOrDefault(o => o.UserNo == userNo && o.MenuCode == menuCode);

            if (menu == null)
            {
                menu = new CommonMenu
                {
                    UserNo     = userNo,
                    MenuCode   = menuCode,
                    ClickCount = 1
                };
            }
            else
            {
                menu.ClickCount = menu.ClickCount + 1;
            }
            SQLiteHelper.DB.InsertOrReplace(menu);
        }
Beispiel #11
0
 public string[] updateCarMenu()
 {
     try
     {
         string[] model = new string[2];
         Console.WriteLine("--------------------");
         Console.WriteLine("Car 데이터 수정");
         Console.WriteLine("--------------------");
         Console.Write("검색할 차량 모델을 입력 : ");
         model[0] = Console.ReadLine();
         Console.Write("변경할 차량 모델을 입력 : ");
         model[1] = Console.ReadLine();
         return(model);
     }
     catch (FormatException e)
     {
         CommonMenu.errMsg("updateCarMenu", e.Message);
         return(updateCarMenu());
     }
 }
Beispiel #12
0
 public string[] updateSellMenu()
 {
     try
     {
         string[] sellname = new string[2];
         Console.WriteLine("--------------------");
         Console.WriteLine("판매자 이름 수정");
         Console.WriteLine("--------------------");
         Console.Write("검색할 판매자 이름을 입력 : ");
         sellname[0] = Console.ReadLine();
         Console.Write("변경할 판매자 이름을 입력 : ");
         sellname[1] = Console.ReadLine();
         return(sellname);
     }
     catch (FormatException e)
     {
         CommonMenu.errMsg("updateSellMenu", e.Message);
         return(updateSellMenu());
     }
 }
Beispiel #13
0
 public int subUpdateMenu()
 {
     try
     {
         Console.WriteLine("--------------------");
         Console.WriteLine("데이터 추가 선택");
         Console.WriteLine("--------------------");
         Console.WriteLine("1.차량 정보 수정");
         Console.WriteLine("2.고객 정보 수정");
         Console.WriteLine("3.판매자 정보 수정");
         Console.WriteLine("4.종료");
         Console.WriteLine("--------------------");
         Console.Write("수정메뉴 선택 : ");
         return(Convert.ToInt32(Console.ReadLine()));
     }
     catch (FormatException e)
     {
         CommonMenu.errMsg("subUpdateMenu", e.Message);
         return(subUpdateMenu());
     }
 }
Beispiel #14
0
 public string[] addCarMenu()
 {
     string[] data = new string[4];
     try
     {
         Console.WriteLine("--------------------");
         Console.WriteLine("Car 데이터 추가");
         Console.WriteLine("--------------------");
         Console.Write("1.차종 : ");
         data[0] = Console.ReadLine();
         Console.Write("2.색상 : ");
         data[1] = Console.ReadLine();
         Console.Write("3.제조사 : ");
         data[2] = Console.ReadLine();
         Console.Write("4.가격 : ");
         data[3] = Console.ReadLine();
     }
     catch (FormatException e)
     {
         CommonMenu.errMsg("addCarMenu", e.Message);
     }
     return(data);
 }
Beispiel #15
0
 public Seller addSellMenu2()
 {
     try
     {
         Console.WriteLine("--------------------");
         Console.WriteLine("판매자 데이터 추가");
         Console.WriteLine("--------------------");
         Console.Write("1.이름 : ");
         string name = Console.ReadLine();
         Console.Write("2.전화번호 : ");
         string tel = Console.ReadLine();
         Console.Write("3.직급 : ");
         string jikwi = Console.ReadLine();
         Console.Write("4.사무실 : ");
         string office = Console.ReadLine();
         return(new Seller(name, tel, jikwi, office));
     }
     catch (FormatException e)
     {
         CommonMenu.errMsg("addSellMenu2", e.Message);
         return(addSellMenu2());
     }
 }
Beispiel #16
0
        protected override void OnAdded()
        {
            //背景
            var background = new SpriteNode();

            background.Texture  = Texture2D.Load("bg_studio.jpg");
            background.Position = new Vector2F(0, 0);
            background.ZOrder   = Common.Parameter.ZOrder.BackGround;
            AddChildNode(background);

            var sign = new SpriteNode();

            sign.Texture  = Texture2D.Load("studiosign.png");
            sign.Position = new Vector2F(0, 0);
            sign.ZOrder   = Common.Parameter.ZOrder.Sign;
            AddChildNode(sign);

            _powerPanel = new PowerPanel();
            _powerPanel.SetPosition(new Vector2F(sign.Texture.Size.X, 0));
            _powerPanel.SetNode(this);
            _powerPanel.UpdateValue();

            _moneyPanel = new MoneyPanel();
            _moneyPanel.SetPosition(new Vector2F(sign.Texture.Size.X, _powerPanel.GetHeight()));
            _moneyPanel.SetNode(this);
            _moneyPanel.SetValue(GameData.PlayerData.Money);

            _weatherPanel = new WeatherPanel();
            _weatherPanel.SetPosition(new Vector2F(sign.Texture.Size.X, _powerPanel.GetHeight() + _moneyPanel.GetHeight()));
            _weatherPanel.SetNode(this);
            _weatherPanel.UpdateValue();

            menu  = new CommonMenu(this);
            panel = new StudioPanel();
            panel.SetNode(this);
            panel.DisplayUpdate();
        }
Beispiel #17
0
 private static void LoadCombo(CommonMenu mainMenu)
 {
 }
Beispiel #18
0
        private static void LoadMisc(CommonMenu mainMenu)
        {
            Menu passiveStunMenu =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Passive Control", KoreanUtils.ParamName(mainMenu, "passivestunmenu")));

            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useetostack"), "Use E to Stack").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "manalimitforstacking"), "Mana % Limit for Stacking")
                .SetValue(new Slider(30, 0, 100)));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "savestunforcombo"), "Save Stun for Combo/Harass").SetValue
                    (false));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "showeeasybutton"), "Show Stun-Button").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositionx"), "Button Position X (Read Only)")
                .SetValue(0));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositiony"), "Button Position Y (Read Only)")
                .SetValue(0));

            Menu flashTibbers =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Flash-Ultimate", KoreanUtils.ParamName(mainMenu, "flashtibbersmenu")));

            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "flashtibbers"), "Key").SetValue(
                    new KeyBind('T', KeyBindType.Press)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "minenemiestoflashr"), "Only Use if X or More Enemies Hit")
                .SetValue(new Slider(2, 1, 5)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "orbwalktoflashtibbers"), "Allow Movement with Key Pressed").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "supportmode"), "Support Mode").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useqtofarm"), "Use Q to Farm").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useeagainstaa"), "Use E against AA").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "antigapcloser"), "Anti-Gapcloser").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(
                    KoreanUtils.ParamName(mainMenu, "interruptspells"),
                    "Interrupt dangerous spells if possible").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "autotibbers"), "Tibbers - Auto Pilot").SetValue(true));

            Menu DontUseComboMenu = mainMenu.MiscMenu.AddSubMenu(new Menu("Don't Harass/Combo Against", "dontusecomboon"));

            foreach (var enemy in HeroManager.Enemies)
            {
                DontUseComboMenu.AddItem(
                    new MenuItem(
                        KoreanUtils.ParamName(mainMenu, "combo" + enemy.ChampionName.ToLowerInvariant()),
                        enemy.ChampionName).SetValue(true));
            }

            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel1"), "------------------------------"));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel2"), "IMPORTANT: Targets set to OFF will be..."));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel3"), "...attacked if alone or are at low HP"));
        }
Beispiel #19
0
        private static void LoadMisc(CommonMenu mainMenu)
        {
            Menu passiveStunMenu =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Cài đặt thêm", KoreanUtils.ParamName(mainMenu, "passivestunmenu")));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useetostack"), "Dùng E lấy choáng").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "manalimitforstacking"), "Giới hạn mana dùng E")
                    .SetValue(new Slider(30, 0, 100)));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "savestunforcombo"), "Giữ choáng cho Combo hoặc Rỉa máu").SetValue
                    (false));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "showeeasybutton"), "Hiện nút tùy chỉnh choáng").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositionx"), "Button Position X (Read Only)")
                    .SetValue(0));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositiony"), "Button Position Y (Read Only)")
                    .SetValue(0));

            Menu flashTibbers =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Tốc biến + Thả Gấu", KoreanUtils.ParamName(mainMenu, "flashtibbersmenu")));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "flashtibbers"), "Phím").SetValue(
                    new KeyBind('T', KeyBindType.Press)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "minenemiestoflashr"), "Dùng khi nếu bằng cài đặt hoặc nhiều hơn")
                    .SetValue(new Slider(2, 1, 5)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "orbwalktoflashtibbers"), "Khi ấn phím là di chuyển theo chuột").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "supportmode"), "Chế độ hỗ trợ (đường dưới)").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useqtofarm"), "Dùng Q để đánh lính").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useeagainstaa"), "Dùng E để chống địch đánh thường").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "antigapcloser"), "Chống tiếp cận Annie").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(
                    KoreanUtils.ParamName(mainMenu, "interruptspells"),
                    "Ngắt phép thuật nguy hiểm nếu có thể").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "autotibbers"), "Tự động điều khiển Gấu").SetValue(true));

            Menu DontUseComboMenu = mainMenu.MiscMenu.AddSubMenu(new Menu("Không rỉa máu hoặc Combo", "dontusecomboon"));

            foreach (var enemy in HeroManager.Enemies)
            {
                DontUseComboMenu.AddItem(
                    new MenuItem(
                        KoreanUtils.ParamName(mainMenu, "combo" + enemy.ChampionName.ToLowerInvariant()),
                        enemy.ChampionName).SetValue(true));
            }

            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel1"), "------------------------------"));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel2"), "QUAN TRỌNG : Các mục tiêu đã tắt sẽ được ..."));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel3"), "... tấn công nếu đang một mình hoặc máu thấp thấp"));
        }
Beispiel #20
0
 private static void RemoveItems(CommonMenu mainMenu)
 {
     mainMenu.HarasMenu.Items.Remove(mainMenu.HarasMenu.Item(KoreanUtils.ParamName(mainMenu, "useetoharas")));
     mainMenu.LaneClearMenu.Items.Remove(
         mainMenu.LaneClearMenu.Item(KoreanUtils.ParamName(mainMenu, "useetolaneclear")));
     mainMenu.ComboMenu.Items.Remove(mainMenu.ComboMenu.Item(KoreanUtils.ParamName(mainMenu, "useetocombo")));
 }
Beispiel #21
0
 private static void LoadCombo(CommonMenu mainMenu)
 {
 }
Beispiel #22
0
        static private void LoadHarasMenu(CommonChampion champion)
        {
            CommonMenu mainMenu = champion.MainMenu;

            mainMenu.HarasMenu.Items.Remove(KoreanUtils.GetParam(mainMenu, "useetoharas"));
        }
Beispiel #23
0
 /// <summary>
 /// 选择编辑栏目
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void tMenus_SelectedNodeChanged(object sender, EventArgs e)
 {
     try
     {
         //选中节点值
         string value = tMenus.SelectedNode.Value;
         this.MenuID = value;
         MenuInfo mInfo = new CommonMenu().GetMenuByID(this.MenuID);
         this.ParentID = mInfo.ParentID;
         lbName.Text = mInfo.Name;
         tbName.Text = mInfo.Name;
         tbSortNum.Text = mInfo.SortNum.ToString();
         tbURL.Text = mInfo.Url;
         rblIsShow.SelectedIndex = (mInfo.IsShow == true) ? 0 : 1;
         rblExtend.SelectedIndex = (mInfo.IsExtendUrl == true) ? 0 : 1;
         rblNews.SelectedIndex = (mInfo.IsRecentNews == true) ? 0 : 1;
         btnSubmit.Visible = true;
         btnAdd.Visible = true;
         btnDel.Visible = true;
         btnSub.Visible = true;
     }
     catch (Exception exc)
     {
         ShowMsg(exc.Message);
         LogEntry.Log.Write(exc.ToString(), EventLogEntryType.Error, LogSourceType.联系人管理);
     }
 }
        private static void LoadMisc(CommonMenu mainMenu)
        {
            Menu passiveStunMenu =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Passive Control", KoreanUtils.ParamName(mainMenu, "passivestunmenu")));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useetostack"), "Use E to Stack").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "manalimitforstacking"), "Mana % Limit for Stacking")
                    .SetValue(new Slider(30, 0, 100)));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "savestunforcombo"), "Save Stun for Combo/Harass").SetValue
                    (false));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "showeeasybutton"), "Show Stun-Button").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositionx"), "Button Position X (Read Only)")
                    .SetValue(0));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositiony"), "Button Position Y (Read Only)")
                    .SetValue(0));

            Menu flashTibbers =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Flash-Ultimate", KoreanUtils.ParamName(mainMenu, "flashtibbersmenu")));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "flashtibbers"), "Key").SetValue(
                    new KeyBind('T', KeyBindType.Press)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "minenemiestoflashr"), "Only Use if X or More Enemies Hit")
                    .SetValue(new Slider(2, 1, 5)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "orbwalktoflashtibbers"), "Allow Movement with Key Pressed").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "supportmode"), "Support Mode").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useqtofarm"), "Use Q to Farm").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useeagainstaa"), "Use E against AA").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "antigapcloser"), "Anti-Gapcloser").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(
                    KoreanUtils.ParamName(mainMenu, "interruptspells"),
                    "Interrupt dangerous spells if possible").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "autotibbers"), "Tibbers - Auto Pilot").SetValue(true));

            Menu DontUseComboMenu = mainMenu.MiscMenu.AddSubMenu(new Menu("Don't Harass/Combo Against", "dontusecomboon"));

            foreach (var enemy in HeroManager.Enemies)
            {
                DontUseComboMenu.AddItem(
                    new MenuItem(
                        KoreanUtils.ParamName(mainMenu, "combo" + enemy.ChampionName.ToLowerInvariant()),
                        enemy.ChampionName).SetValue(true));
            }

            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel1"), "------------------------------"));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel2"), "IMPORTANT: Targets set to OFF will be..."));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel3"), "...attacked if alone or are at low HP"));
        }
Beispiel #25
0
 /// <summary>
 /// 添加子节点
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnSub_Click(object sender, EventArgs e)
 {
     try
     {
         this.ParentID = this.MenuID;
         string parentID = this.MenuID;
         string name = tbName.Text;
         string url = tbURL.Text;
         int sortNum = Convert.ToInt16(tbSortNum.Text);
         bool isShow = (rblIsShow.SelectedIndex == 0) ? true : false;
         bool isExtend = (rblExtend.SelectedIndex == 0) ? true : false;
         bool isNews = (rblNews.SelectedIndex == 0) ? true : false;
         string id = new CommonMenu().Add(name, parentID, sortNum, isShow, url, isExtend, isNews);
         this.MenuID = id;
         BindTree();
         ShowMsg("操作成功。");
     }
     catch (Exception exc)
     {
         ShowMsg(exc.Message);
         LogEntry.Log.Write(exc.ToString(), EventLogEntryType.Error, LogSourceType.联系人管理);
     }
 }
Beispiel #26
0
        private static void LoadMisc(CommonMenu mainMenu)
        {
            Menu passiveStunMenu =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Pyromania control (passive)", KoreanUtils.ParamName(mainMenu, "passivestunmenu")));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useetostack"), "Use E to stack").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "manalimitforstacking"), "Mana limit for stacking")
                    .SetValue(new Slider(30, 0, 100)));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "savestunforcombo"), "Save stun for combo/haras").SetValue(
                    false));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "showeeasybutton"), "Show easy button").SetValue(true));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositionx"), "Button position X (ReadOnly)")
                    .SetValue(0));
            passiveStunMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "easybuttonpositiony"), "Button position Y (ReadOnly)")
                    .SetValue(0));

            Menu flashTibbers =
                mainMenu.MiscMenu.AddSubMenu(
                    new Menu("Flash + Tibbers", KoreanUtils.ParamName(mainMenu, "flashtibbersmenu")));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "flashtibbers"), "key").SetValue(
                    new KeyBind('T', KeyBindType.Press)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "minenemiestoflashr"), "Only use if will hit at least")
                    .SetValue(new Slider(2, 1, 5)));
            flashTibbers.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "orbwalktoflashtibbers"), "Orbwalk").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "supportmode"), "Support mode").SetValue(false));

            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useqtofarm"), "Use Q to farm").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "useeagainstaa"), "Use E against AA").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "antigapcloser"), "Anti gap closer").SetValue(true));
            mainMenu.MiscMenu.AddItem(
                new MenuItem(
                    KoreanUtils.ParamName(mainMenu, "interruptspells"),
                    "Interrupt dangerous spells if possible").SetValue(true));

            Menu DontUseComboMenu = mainMenu.MiscMenu.AddSubMenu(new Menu("Don't haras/combo on", "dontusecomboon"));

            foreach (var enemy in HeroManager.Enemies)
            {
                DontUseComboMenu.AddItem(
                    new MenuItem(
                        KoreanUtils.ParamName(mainMenu, "combo" + enemy.ChampionName.ToLowerInvariant()),
                        enemy.ChampionName).SetValue(true));
            }

            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel1"), "========================"));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel2"), "IMPORTANT: Targets setted \"OFF\" will"));
            DontUseComboMenu.AddItem(
                new MenuItem(KoreanUtils.ParamName(mainMenu, "dontuselabel3"), "    be attacked if they are alone or low"));
        }
Beispiel #27
0
 /// <summary>
 /// 
 /// </summary>
 private void BindTree()
 {
     tMenus.Nodes.Clear();
     TreeNodeInfo<MenuInfo> tree = new CommonMenu().GetMenuTree(MenuInfo.DEFAULT_PARENT_ID, true);
     foreach (TreeNodeInfo<MenuInfo> node in tree.SubNodeList)
     {
         string name = node.STInstance.Name;
         string id = node.STInstance.ID;
         string url = node.STInstance.Url;
         string sortNum = node.STInstance.SortNum.ToString();
         TreeNode treeNode = new TreeNode(name, id);
         tMenus.Nodes.Add(treeNode);
         if (node.Count != 0)
         {
             BindTree(node, treeNode);
         }
     }
 }