Example #1
0
        private void cLogo_MouseDown(object sender, MouseEventArgs e)
        {
#if STEAM
            if (e.Button == MouseButtons.Middle)
            {
                cLogo.Stop();
                CompanionCubeManager.Toggle();
                return;
            }

            if (CompanionCubeManager.IsActive)
            {
                CompanionCubeManager.Stop();
            }
#endif

            if (!isEasterEggStarted)
            {
                isPaused = !isPaused;

                clickCount++;

                if (clickCount >= 10)
                {
                    isEasterEggStarted = true;
                    cLogo.Stop();
                    RunEasterEgg();
                }
            }
            else
            {
                if (bounceTimer != null)
                {
                    bounceTimer.Stop();
                }

                isEasterEggStarted = false;
            }
        }
Example #2
0
 private void AboutForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     CompanionCubeManager.Stop();
 }