示例#1
0
        /// <summary>
        /// Initializes the various components of the assembly.
        /// </summary>
        internal void Init()
        {
            try
            {
                if (AIOVariables.AIOInitalized)
                {
                    return;
                }
                
                var ChampionToLoad = ObjectManager.Player.ChampionName;
                if (AIOVariables.ChampList.ContainsKey(ChampionToLoad))
                {
                    AIOVariables.ChampList[ChampionToLoad]();
                    AIOVariables.AssemblyMenu.Attach();

                    Game.PrintChat(
                        $"<b><font color='#FF0000'>[SDKAIO]</font></b> {ChampionToLoad} Loaded! Good luck, have fun!");

                    Logging.Write()(LogLevel.Info, $"[SDKAIO] Loaded {ChampionToLoad} successfully!");

                    var loadedNotification = new Notification(
                        $"[SDKAIO] {ChampionToLoad} Loaded!",
                        $"{ChampionToLoad} was loaded!")
                                                 {
                                                     HeaderTextColor = Color.LightBlue,
                                                     BodyTextColor = Color.White,
                                                     Icon = NotificationIconType.Check,
                                                     IconFlash = true
                                                 };

                    Notifications.Add(loadedNotification);
                }

                AIOVariables.AIOInitalized = true;
            }
            catch
            {
                Logging.Write()(LogLevel.Error, "[SDKAIO] Failed to load the Bootstrap!");
            }
        }
示例#2
0
 /// <summary>
 ///     Removes a notification from the list.
 /// </summary>
 /// <param name="notification">
 ///     The notification.
 /// </param>
 public static void Remove(Notification notification)
 {
     if (NotificationsList.Contains(notification))
     {
         NotificationsList.Remove(notification);
     }
 }