Exemple #1
0
        private static void Game_OnWndProc(WndEventArgs args)
        {
            if (!Config.Item("showhide").GetValue <KeyBind>().Active)
            {
                itunesicon.Show();
                play.Show();
                prev.Show();
                next.Show();


                volup1.Show();
                voldown1.Show();
            }

            if (Config.Item("showhide").GetValue <KeyBind>().Active)
            {
                itunesicon.Hide();
                play.Hide();
                prev.Hide();
                next.Hide();


                volup1.Hide();
                voldown1.Hide();
            }


            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && mouseonnext())
            {
                nextTrack();
                songname = getsongname() + " - " + getartistname();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && mouseonprev())
            {
                previousTrack();
                songname = getsongname() + " - " + getartistname();
            }

            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && mouseonplay())
            {
                pausePlay();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && mouseonitunes())
            {
                bringtofront();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && mouseonvolup())
            {
                volumeUp();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && mouseonvoldown())
            {
                volumeDown();
            }
        }
        private static void Game_OnWndProc(WndEventArgs args)
        {
            if (!_config.Item("showhide").GetValue <KeyBind>().Active)
            {
                _spotifyicon.Show();
                _play.Show();
                _prev.Show();
                _next.Show();

                _volup1.Show();
                _voldown1.Show();
            }

            if (_config.Item("showhide").GetValue <KeyBind>().Active)
            {
                _spotifyicon.Hide();
                _play.Hide();
                _prev.Hide();
                _next.Hide();

                _volup1.Hide();
                _voldown1.Hide();
            }


            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && Mouseonnext())
            {
                NextTrack();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && Mouseonprev())
            {
                PreviousTrack();
            }

            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && Mouseonplay())
            {
                Songname = GetSongName() + " - " + GetArtistName() + " - Paused... ";
                PausePlay();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && Mouseonspotify())
            {
                Bringtofront();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && Mouseonvolup())
            {
                VolumeUp();
            }
            if ((args.Msg == (uint)WindowsMessages.WM_LBUTTONDOWN) && Mouseonvoldown())
            {
                VolumeDown();
            }
        }
Exemple #3
0
        public void Kill(float respawn)
        {
            if (respawn == 0.0f) //Camp found dead.
            {
                Sprite.GrayScale();
                Sprite.Show();
            }
            else
            {
                Sprite.Hide();
            }

            State       = respawn == 0.0f ? CampState.Unknown : CampState.Dead;
            RespawnTime = Environment.TickCount + _respawnDuration + 1000 + Game.Ping;
        }