Beispiel #1
0
 public IllusionSplitterMode(IServiceContext context, Key key, IllusionSplitterConfig config)
     : base(context, key)
 {
     this.config          = config;
     this.illusionHandler = UpdateManager.Run(this.MoveIllusionsAsync, false);
     this.context         = context;
 }
Beispiel #2
0
        public IllusionSplitterMode(IOrbwalker orbwalker, IInputManager input, Key key, IllusionSplitterConfig config, IInventoryManager inventoryMgr)
            : base(orbwalker, input, key)
        {
            this.config          = config;
            this.inventoryMgr    = inventoryMgr;
            this.illusionHandler = UpdateManager.Run(this.MoveIllusionsAsync, false);

            this.owner = orbwalker.Context.Owner;
        }
Beispiel #3
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);
        }
Beispiel #4
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);
        }