/// <summary> /// This event is triggered when the game loads /// </summary> /// <param name="args"></param> private static void Loading_OnLoadingComplete(EventArgs args) { //Put the name of the champion here if (Player.Instance.ChampionName != "Nasus") { return; } Chat.Print("Welcome to the Ronin´s BETA ;)"); SpellsManager.InitializeSpells(); Menus.CreateMenu(); ModeManager.InitializeModes(); DrawingsManager.InitializeDrawings(); }
private static void Loading_OnLoadingComplete(EventArgs args) { Core.DelayAction(() => { introImg = new Sprite(TextureLoader.BitmapToTexture(Resources.anime)); Chat.Print("<b><font size='20' color='#4B0082'>Ronin Nasus</font><font size='20' color='#FFA07A'> Loaded</font></b>"); Drawing.OnDraw += DrawingOnOnDraw; Core.DelayAction(() => { Drawing.OnDraw -= DrawingOnOnDraw; }, 7000); }, 2000); SpellsManager.InitializeSpells(); Menus.CreateMenu(); Drawing.OnDraw += Drawing_OnDraw; Obj_AI_Base.OnNewPath += Obj_AI_Base_OnNewPath; Game.OnUpdate += OnGameUpdate; ModeManager.InitializeModes(); Interrupter.OnInterruptableSpell += Program.Interrupter2_OnInterruptableTarget; Interrupter.OnInterruptableSpell += Program.Interrupter3_OnInterruptableTarget; }