Exemple #1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            MainMenu.Init();

            UtilityManager.Initialize();
            Value.Init();
            var champion = Type.GetType("OKTRAIO.Champions." + Player.Instance.ChampionName);

            if (champion != null)
            {
                Console.WriteLine("[MarksmanAIO] " + Player.Instance.ChampionName + " Loaded");
                IconManager.Init();
                Champion = (AIOChampion)Activator.CreateInstance(champion);
                Events.Init();

                Value.Init();
                Champion.Init();
                //JsonSettings.Init();
                UtilityManager.Activator.LoadSpells();
                if (MainMenu.Menu["playsound"].Cast <CheckBox>().CurrentValue)
                {
                    PlayWelcome();
                }
                Chat.Print("MarksmanAIO: " + Player.Instance.ChampionName + " Loaded", Color.CornflowerBlue);
            }
            else
            {
                Chat.Print("MarksmanAIO doesn't support: " + Player.Instance.ChampionName);
            }

            Humanizer.Init();
        }
 internal static void Init()
 {
     IconManager.Init();
 }