public Combo( Key key, ConfigInit config, IServiceContext context) : base(context, key) { this.context = context; this.Config = config; TargetSelector = context.TargetSelector; Inventory = context.Inventory; Prediction = context.Prediction; }
protected override void OnActivate() { Config = new ConfigInit(); var key = KeyInterop.KeyFromVirtualKey((int)Config.Key.Value.Key); Config.Key.Item.ValueChanged += HotkeyChanged; OrbwalkerMode = new Combo(key, Config, context); context.Orbwalker.RegisterMode(OrbwalkerMode); }