예제 #1
0
        public Config(Lazy <IInputManager> InputManager)
        {
            MenuFactory = MenuFactory.CreateWithTexture("DotaMapPlus", "dotamapplus");
            MenuFactory.Target.SetFontColor(Color.Aqua);

            ZoomHack = new ZoomHack(MenuFactory, InputManager);

            ConsoleCommands = new ConsoleCommands(MenuFactory);

            WeatherHack = new WeatherHack(MenuFactory);
        }
예제 #2
0
        public Config()
        {
            var rootMenu = MenuManager.CreateRootMenu("DotaMapPlus");

            rootMenu.SetFontColor(Color.Aqua);

            ZoomHack = new ZoomHack(rootMenu);

            ConsoleCommands = new ConsoleCommands(rootMenu);

            WeatherHack = new WeatherHack(rootMenu);
        }
예제 #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
                ZoomHack.Dispose();
                ConsoleCommands.Dispose();
                WeatherHack.Dispose();
                MenuFactory.Dispose();
            }

            Disposed = true;
        }