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); }
public Config() { var rootMenu = MenuManager.CreateRootMenu("DotaMapPlus"); rootMenu.SetFontColor(Color.Aqua); ZoomHack = new ZoomHack(rootMenu); ConsoleCommands = new ConsoleCommands(rootMenu); WeatherHack = new WeatherHack(rootMenu); }
protected virtual void Dispose(bool disposing) { if (Disposed) { return; } if (disposing) { ZoomHack.Dispose(); ConsoleCommands.Dispose(); WeatherHack.Dispose(); MenuFactory.Dispose(); } Disposed = true; }