public BindingsManager(ModulePacket packet) { _configurationManager = packet.GetSingleton <IConfigurationManager>(); if (_configurationManager.Contains <InputBindingsConfiguration>()) { _bindingsDictionary = _configurationManager.Get <InputBindingsConfiguration>().Bindings; } else { _bindingsDictionary = new Dictionary <string, List <Binding> > { { "default", Default.ToList() } }; } }
public void Do(string[] args) { var window = _packet.GetSingleton <IGuiInstanceManager>().MainWindow; window.VSync = !window.VSync; // this is inverted because the event happens after the next frame. if (!window.VSync) { ConsoleHelper.WriteEmbeddedColorLine("VSync is [green]ON[/green]"); } else { ConsoleHelper.WriteEmbeddedColorLine("VSync is [red]OFF[/red]"); } }
public FluincyTask(ModulePacket packet) { _configurationManager = packet.GetSingleton <IConfigurationManager>(); }