Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
 private void KeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         InputManager.MouseWheel += this.OnMouseWheel;
     }
     else
     {
         InputManager.MouseWheel -= this.OnMouseWheel;
     }
 }
Exemplo n.º 3
0
 private void ToggleKeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         UpdateManager.CreateIngameUpdate(300, this.ToggleOnUpdate);
     }
     else
     {
         UpdateManager.DestroyIngameUpdate(this.ToggleOnUpdate);
     }
 }
Exemplo n.º 4
0
 private void HoldKeyOnValueChange(object sender, KeyEventArgs e)
 {
     if (e.NewValue)
     {
         UpdateManager.Update += this.HoldOnUpdate;
     }
     else
     {
         UpdateManager.Update -= this.HoldOnUpdate;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 11
0
 private void HoldKeyOnValueChange(object sender, Core.Managers.Menu.EventArgs.KeyEventArgs e)
 {
     this.toggleKey.IsActive = e.NewValue;
 }
Exemplo n.º 12
0
 private void HoldKeyOnValueChange(object sender, KeyEventArgs e)
 {
     this.toggleKey.IsActive = e.NewValue;
 }