Ejemplo n.º 1
0
        protected override void OnActivate()
        {
            this.config = new IllusionSplitterConfig(this.context.Renderer);
            this.context.MenuManager.RegisterMenu(this.config);

            this.OrbwalkerMode = new IllusionSplitterMode(this.context, this.config.SplitterHotkey.Hotkey.Key, this.config);

            this.config.SplitterHotkey.Hotkey.ValueChanging += this.HotkeyChanged;

            this.context.Orbwalker.RegisterMode(this.OrbwalkerMode);
        }
Ejemplo n.º 2
0
        protected override void OnActivate()
        {
            this.config = new IllusionSplitterConfig();

            var key = KeyInterop.KeyFromVirtualKey((int)this.config.SplitterHotkey.Value.Key);

            this.OrbwalkerMode = new IllusionSplitterMode(this.context, key, this.config);

            this.config.SplitterHotkey.Item.ValueChanged += this.HotkeyChanged;

            this.context.Orbwalker.RegisterMode(this.OrbwalkerMode);
        }