Exemple #1
0
        public static void Initialize()
        {
            Misc.PrintDebugMessage("Initializing cache");

            StaticCacheProvider.Initialize();

            Misc.PrintDebugMessage("Initializing addon");

            var pluginInitialized = InitializeAddon.Initialize();

            if (!pluginInitialized)
            {
                return;
            }

            Core.DelayAction(
                () =>
            {
                Misc.PrintDebugMessage("Creating Menu");

                MenuManager.CreateMenu();

                Misc.PrintDebugMessage("Initializing activator");

                Activator.Activator.InitializeActivator();

                MenuLoaded = true;

                Misc.PrintInfoMessage(
                    $"<b><font color=\"#5ED43D\">{Player.Instance.ChampionName}</font></b> loaded successfully. Welcome back <b><font color=\"{(SandboxConfig.IsBuddy ? "#BF1B49" : "#1BBF91")}\">{(SandboxConfig.IsBuddy ? "[VIP] " + (SandboxConfig.Username == "intr" ? "intr you boosted animal from Latvia <3" : SandboxConfig.Username) : SandboxConfig.Username == "intr" ? "intr you boosted animal from Latvia <3" : SandboxConfig.Username)}</font></b> !");

                Misc.PrintDebugMessage("Marksman AIO  fully loaded");
            }, 250);
        }
Exemple #2
0
        public static void Initialize()
        {
            Versions = new Dictionary <VersionInfo.Version, VersionInfo>();

            Misc.PrintDebugMessage("Initializing cache");

            StaticCacheProvider.Initialize();

            Misc.PrintDebugMessage("Initializing addon");

            var pluginInitialized = InitializeAddon.Initialize();

            if (!pluginInitialized)
            {
                return;
            }

            var task = Task.Factory.StartNew(PrintVersionInfo);

            AppDomain.CurrentDomain.DomainUnload += (sender, args) =>
            {
                task.Dispose();
            };

            Core.DelayAction(
                () =>
            {
                Misc.PrintDebugMessage("Creating Menu");

                MenuManager.CreateMenu();

                Misc.PrintDebugMessage("Initializing activator");

                Activator.Activator.InitializeActivator();

                ChampionTracker.Initialize(ChampionTrackerFlags.PathingTracker);

                MenuLoaded = true;

                Misc.PrintInfoMessage(
                    $"<b><font color=\"#5ED43D\">{Player.Instance.ChampionName}</font></b> loaded successfully. Welcome back <b><font color=\"{(SandboxConfig.IsBuddy ? "#BF1B49" : "#1BBF91")}\">{(SandboxConfig.IsBuddy ? "[VIP] " + (SandboxConfig.Username == "intr" ? "intr you boosted animal from Latvia <3" : SandboxConfig.Username) : SandboxConfig.Username == "intr" ? "intr you boosted animal from Latvia <3" : SandboxConfig.Username)}</font></b> !");

                Misc.PrintDebugMessage("Marksman AIO  fully loaded");
            }, 250);
        }