private void SwitchListsButton_Pressed()
        {
            click.Play();   //Play Audio Clip

            //Change SwitchListButton Text.
            if (switchListButton.Text == "Golden Keys")
            {
                switchListButton.Text = "Silver Keys";
            }

            //Call Draw to reload pics
            WorldKeyDisplay temp = new WorldKeyDisplay(m_ScreenManager);

            temp.worldDisplayed = this.worldDisplayed;
            temp.sbtext         = switchListButton.Text;

            //Change Screens Based on what screen is
            if (sbtext == "Golden Keys")
            {
                m_ScreenManager.PushScreen(temp);
            }
            else
            {
                m_ScreenManager.PopScreen();
            }

            //Set switchListButton text to golden keys.
            switchListButton.Text = "Golden Keys";
        }
Exemplo n.º 2
0
        private void World3Keys_Click(object sender, EventArgs e)
        {
            click.Play();   //play Audio Click Effect

            //Call Draw to reload pics
            WorldKeyDisplay temp = new WorldKeyDisplay(m_ScreenManager);

            temp.worldDisplayed = 3;

            //Change Screens Based on what screen is
            m_ScreenManager.PushScreen(temp);
        }