Example #1
0
        internal static void initialize()
        {
            AIO_Menu.initialize();

            if (!ChampLoader.champSupportedCheck("ALL_In_One.champions."))
            {
                return;
            }

            AIO_Menu.addSubMenu("Champion", "AIO: " + ObjectManager.Player.ChampionName);

            AIO_Menu.Champion.addOrbwalker();
            AIO_Menu.Champion.addTargetSelector();

            ChampLoader.Load(ObjectManager.Player.ChampionName);
            utility.Activator.Load();
            utility.SetOrb.Load();

            AIO_Menu.Champion.Drawings.addItem(" ", null, false);
            AIO_Menu.Champion.Drawings.addItem("--PUBLIC OPTIONS--", null, false);

            AIO_Menu.Champion.Drawings.addItem("Auto-Attack Real Range", new Circle(true, Color.Silver), false);
            AIO_Menu.Champion.Drawings.addItem("Auto-Attack Target", new Circle(true, Color.Red), false);
            AIO_Menu.Champion.Drawings.addItem("Minion Last Hit", new Circle(true, Color.GreenYellow), false);
            AIO_Menu.Champion.Drawings.addItem("Minion Near Kill", new Circle(true, Color.Gray), false);
            AIO_Menu.Champion.Drawings.addItem("Jungle Position", true, false);

            Drawing.OnDraw += Drawing_OnDraw;

            AIO_Func.sendDebugMsg(ObjectManager.Player.ChampionName + " Loaded.");
            AIO_Func.sendDebugMsg("Early Access.");
        }
Example #2
0
        internal static bool champSupportedCheck(string checkNamespace)
        {
            try
            {
                AIO_Func.sendDebugMsg(Type.GetType(checkNamespace + ObjectManager.Player.ChampionName).Name + " is supported.");
                return(true);
            }
            catch
            {
                AIO_Func.sendDebugMsg(ObjectManager.Player.ChampionName + " is not supported."); //sendDebugMsg와 중복으로 제거함.

                AIO_Menu.addItem("Sorry, " + ObjectManager.Player.ChampionName + " is not supported", null);
                return(false);
            }
        }
Example #3
0
        /// <summary>
        /// 플레이어의 챔피언의 이름과 같은 이름의 클래스가 있는지 확인합니다.
        /// </summary>
        /// <param name="checkNamespace">체크할 네임스페이스를 기입하십시오.</param>
        /// <returns>플레이어의 챔피언의 이름과 같은 이름의 클래스가 있으면 true, 없으면 false를 반환합니다.</returns>
        internal static bool champSupportedCheck()
        {
            string championName = AIO_Func.ChampionName;

            if (CreditDictionary.ContainsKey(championName))
            {
                string successMsg = championName + " is supported.";

                AIO_Func.sendDebugMsg(successMsg);
                Notifications.AddNotification(successMsg, 4000);
                return(true);
            }
            else
            {
                string failedMsg = championName + " is not supported.";

                AIO_Func.sendDebugMsg(failedMsg);
                Notifications.AddNotification(failedMsg, 4000);

                AIO_Menu.addItem(failedMsg, null);
                return(false);
            }
        }