Ejemplo n.º 1
0
        private void preview_kills_reset_Click(object sender, RoutedEventArgs e)
        {
            GameEvent_CSGO.RoundStart();
            preview_kills   = 0;
            preview_killshs = 0;

            preview_kills_label.Text = String.Format("Kills: {0} Headshots: {1}", preview_kills, preview_killshs);
        }
Ejemplo n.º 2
0
        private void preview_bomb_defused_Click(object sender, RoutedEventArgs e)
        {
            this.preview_bomb_defused.IsEnabled = false;
            this.preview_bomb_start.IsEnabled   = true;

            GameEvent_CSGO.SetBombState(Aurora.Profiles.CSGO.GSI.Nodes.BombState.Defused);
            preview_bomb_timer.Stop();
            preview_bomb_remove_effect_timer.Start();
        }
Ejemplo n.º 3
0
        private void preview_burning_slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            int burning_val = (int)this.preview_burning_slider.Value;

            if (this.preview_burning_amount is Label)
            {
                this.preview_burning_amount.Content = burning_val + "%";
                GameEvent_CSGO.SetBurnAmount((int)(((double)burning_val / 100.0) * 255.0));
            }
        }
Ejemplo n.º 4
0
        private void preview_health_slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            int hp_val = (int)this.preview_health_slider.Value;

            if (this.preview_health_amount is Label)
            {
                this.preview_health_amount.Content = hp_val + "%";
                GameEvent_CSGO.SetHealth(hp_val);
            }
        }
Ejemplo n.º 5
0
        private void preview_ammo_slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            int ammo_val = (int)this.preview_ammo_slider.Value;

            if (this.preview_ammo_amount is Label)
            {
                this.preview_ammo_amount.Content = ammo_val + "%";
                GameEvent_CSGO.SetClip(ammo_val);
                GameEvent_CSGO.SetClipMax(100);
            }
        }
Ejemplo n.º 6
0
        private void preview_bomb_timer_Tick(object sender, EventArgs e)
        {
            Dispatcher.Invoke(
                () =>
            {
                this.preview_bomb_defused.IsEnabled = false;
                this.preview_bomb_start.IsEnabled   = true;

                GameEvent_CSGO.SetBombState(Aurora.Profiles.CSGO.GSI.Nodes.BombState.Exploded);
                preview_bomb_timer.Stop();

                preview_bomb_remove_effect_timer.Start();
            });
        }
Ejemplo n.º 7
0
        ////Preview

        private void preview_team_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch ((Aurora.Profiles.CSGO.GSI.Nodes.PlayerTeam) this.preview_team.Items[this.preview_team.SelectedIndex])
            {
            case (Aurora.Profiles.CSGO.GSI.Nodes.PlayerTeam.T):
                GameEvent_CSGO.SetTeam(Aurora.Profiles.CSGO.GSI.Nodes.PlayerTeam.T);
                break;

            case (Aurora.Profiles.CSGO.GSI.Nodes.PlayerTeam.CT):
                GameEvent_CSGO.SetTeam(Aurora.Profiles.CSGO.GSI.Nodes.PlayerTeam.CT);
                break;

            default:
                GameEvent_CSGO.SetTeam(Aurora.Profiles.CSGO.GSI.Nodes.PlayerTeam.Undefined);
                break;
            }
        }
Ejemplo n.º 8
0
 private void preview_addkill_Click(object sender, RoutedEventArgs e)
 {
     GameEvent_CSGO.GotAKill();
     preview_kills++;
     preview_kills_label.Text = String.Format("Kills: {0} Headshots: {1}", preview_kills, preview_killshs);
 }
Ejemplo n.º 9
0
 private void preview_respawn_Click(object sender, RoutedEventArgs e)
 {
     GameEvent_CSGO.Respawned();
 }
Ejemplo n.º 10
0
 private void preview_typing_enabled_Checked(object sender, RoutedEventArgs e)
 {
     GameEvent_CSGO.SetPlayerActivity((((this.preview_typing_enabled.IsChecked.HasValue) ? this.preview_typing_enabled.IsChecked.Value : false) ? Aurora.Profiles.CSGO.GSI.Nodes.PlayerActivity.TextInput : Aurora.Profiles.CSGO.GSI.Nodes.PlayerActivity.Undefined));
 }
Ejemplo n.º 11
0
 private void preview_bomb_remove_effect_timer_Tick(object sender, EventArgs e)
 {
     GameEvent_CSGO.SetBombState(Aurora.Profiles.CSGO.GSI.Nodes.BombState.Undefined);
     preview_bomb_remove_effect_timer.Stop();
 }