示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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;
        }