Example #1
0
        private void KeyOnValueChanged(object sender, KeyEventArgs e)
        {
            if (e.NewValue)
            {
                if (this.updateHandler.IsEnabled)
                {
                    this.ignoreComboEnd = true;
                }

                this.ComboModeMenu = this.comboModeMenus[(MenuHoldKey)sender];
                this.TargetManager.TargetLocked = true;
                this.updateHandler.IsEnabled    = true;
            }
            else
            {
                if (this.ignoreComboEnd)
                {
                    this.ignoreComboEnd = false;
                    return;
                }

                this.updateHandler.IsEnabled    = false;
                this.TargetManager.TargetLocked = false;
                this.ComboEnd();
            }
        }
Example #2
0
 private void KeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         InputManager.MouseWheel += this.OnMouseWheel;
     }
     else
     {
         InputManager.MouseWheel -= this.OnMouseWheel;
     }
 }
Example #3
0
 private void ToggleKeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         UpdateManager.CreateIngameUpdate(300, this.ToggleOnUpdate);
     }
     else
     {
         UpdateManager.DestroyIngameUpdate(this.ToggleOnUpdate);
     }
 }
Example #4
0
 private void HoldKeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         UpdateManager.Update += this.HoldOnUpdate;
     }
     else
     {
         UpdateManager.Update -= this.HoldOnUpdate;
     }
 }
Example #5
0
 private void ShowDropOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         this.context.Renderer.Draw += this.OnDrawDrop;
     }
     else
     {
         this.context.Renderer.Draw -= this.OnDrawDrop;
     }
 }
Example #6
0
 private void ToggleKeyOnValueChange(object sender, Core.Managers.Menu.EventArgs.KeyEventArgs e)
 {
     if (e.NewValue)
     {
         RendererManager.Draw += this.OnDraw;
     }
     else
     {
         RendererManager.Draw -= this.OnDraw;
     }
 }
Example #7
0
 private void AegisKeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         GameManager.GameEvent += this.OnGameEvent;
         UpdateManager.Update  += this.AegisOnUpdate;
     }
     else
     {
         GameManager.GameEvent -= this.OnGameEvent;
         UpdateManager.Update  -= this.AegisOnUpdate;
     }
 }
Example #8
0
 private void KeyOnValueChange(object sender, Core.Managers.Menu.EventArgs.KeyEventArgs e)
 {
     if (e.NewValue)
     {
         this.updateHandler.IsEnabled = true;
         RendererManager.Draw        += this.OnDraw;
     }
     else
     {
         this.updateHandler.IsEnabled = false;
         RendererManager.Draw        -= this.OnDraw;
     }
 }
Example #9
0
 private void ToggleKeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         RendererManager.Draw  += this.OnDraw;
         this.ping.ValueChange += this.PingOnValueChange;
     }
     else
     {
         this.ping.ValueChange   -= this.PingOnValueChange;
         InputManager.MouseKeyUp -= this.InputOnMouseKeyDown;
         RendererManager.Draw    -= this.OnDraw;
     }
 }
Example #10
0
 private void ToggleKeyOnValueChange(object sender, Core.Managers.Menu.EventArgs.KeyEventArgs e)
 {
     if (e.NewValue)
     {
         RendererManager.Draw           += this.OnDraw;
         this.enabledDamage.ValueChange += this.EnabledDamageOnValueChange;
     }
     else
     {
         RendererManager.Draw           -= this.OnDraw;
         this.enabledDamage.ValueChange -= this.EnabledDamageOnValueChange;
         UpdateManager.DestroyIngameUpdate(this.OnUpdate);
         EntityManager9.UnitAdded   -= this.OnUnitAdded;
         EntityManager9.UnitRemoved -= this.OnUnitRemoved;
     }
 }
Example #11
0
 private void HoldKeyOnValueChange(object sender, Core.Managers.Menu.EventArgs.KeyEventArgs e)
 {
     this.toggleKey.IsActive = e.NewValue;
 }
Example #12
0
 private void HoldKeyOnValueChange(object sender, KeyEventArgs e)
 {
     this.toggleKey.IsActive = e.NewValue;
 }