Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.tw.Paused)
     {
         tw.Start();
     }
     else
     {
         tw.Stop();
     }
 }
Example #2
0
        public void ClearEverything()
        {
            // Clear all the actions in queue
            ClearActions();
            _currentAction    = null;
            _currentCoroutine = null;
            _timeoutTimer.Stop();

            // TODO: Ask the users if they want to leave the main counters
            _fightsCounter  = 0;
            _gathersCounter = 0;
            FightsOnThisMap = 0;
        }
        private void get_Pelea_Creada()
        {
            if (!cuenta.ScriptHandler.corriendo)
            {
                return;
            }

            if (accion_actual is PeleasAccion)
            {
                timer_out.Stop();
                contador_peleas_mapa++;
                contador_pelea++;

                if (manejador_script.get_Global_Or("MOSTRAR_CONTADOR_PELEAS", DataType.Boolean, false))
                {
                    cuenta.Logger.log_information("SCRIPT", $"Combate #{contador_pelea}");
                }
            }
        }
Example #4
0
        private void get_Pelea_Creada()
        {
            if (!cuenta.script.corriendo)
            {
                return;
            }

            if (accion_actual is PeleasAccion)
            {
                timer_out.Stop();
                contador_peleas_mapa++;
                contador_pelea++;

                if (manejador_script.get_Global_Or("COMPTEUR_COMBAT", DataType.Boolean, false))
                {
                    cuenta.logger.log_informacion("SCRIPT", $"Combat #{contador_pelea}");
                }
            }
        }
Example #5
0
        private void get_Pelea_Creada()
        {
            if (!account.script.InExecution)
            {
                return;
            }

            if (accion_actual is PeleasAccion)
            {
                timer_out.Stop();
                contador_peleas_mapa++;
                contador_pelea++;

                if (manejador_script.get_Global_Or("COMPTEUR_COMBAT", DataType.Boolean, false))
                {
                    account.Logger.LogInfo("SCRIPT", $"Combat #{contador_pelea}");
                }
            }
        }
Example #6
0
        private void get_Pelea_Creada()
        {
            if (!account.script.InExecution)
            {
                return;
            }

            if (accion_actual is PeleasAccion)
            {
                timer_out.Stop();
                contador_peleas_mapa++;
                contador_pelea++;
                if (account.needToCapture == true)
                {
                    compteur_capture++;
                }
                if (account.hasGroup == true && account.needToCapture == false)
                {
                    foreach (var item in account.group.members)
                    {
                        if (item.needToCapture == true)
                        {
                            compteur_capture++;
                        }
                    }
                }

                if (manejador_script.get_Global_Or("COMPTEUR_COMBAT", DataType.Boolean, false) && compteur_capture == 0)
                {
                    account.Logger.LogInfo("SCRIPT", $"Combat #{contador_pelea}");
                }
                else if (manejador_script.get_Global_Or("COMPTEUR_CAPTURE", DataType.Boolean, false) == true)
                {
                    account.Logger.LogInfo("SCRIPT", $"Combat #{contador_pelea} , Capture  tenté:" + compteur_capture);
                }
            }
        }
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     timer.Stop();
 }