protected override void OnActivate() { this.Config = new OdSharpConfig(); var key = KeyInterop.KeyFromVirtualKey((int)this.Config.Key.Value.Key); this.Config.Key.Item.ValueChanged += this.HotkeyChanged; this.OrbwalkerMode = new ODSharp(key, this.Config, this.context); this.context.Orbwalker.RegisterMode(this.OrbwalkerMode); }
protected override void OnActivate() { this.Config = new OdSharpConfig(); this.Config.Key.Item.ValueChanged += this.HotkeyChanged; this.OrbwalkerMode = new ODSharp( KeyInterop.KeyFromVirtualKey((int)this.Config.Key.Value.Key), this.Config, this.orbwalkerManager, this.input, this.inventoryManager, this.targetManager, this.prediction); this.orbwalkerManager.Value.RegisterMode(this.OrbwalkerMode); }
protected override void OnActivate() { this.Config = new OdSharpConfig(); var key = KeyInterop.KeyFromVirtualKey((int)this.Config.Key.Value.Key); this.Config.Key.Item.ValueChanged += this.HotkeyChanged; this.OrbwalkerMode = new ODSharp(key, this.Config, this.context); scaleX = ((float)Drawing.Width / 1920); scaleY = ((float)Drawing.Height / 1080); this.context.Orbwalker.RegisterMode(this.OrbwalkerMode); Drawing.OnDraw += Drawing_OnDraw; }