Exemplo n.º 1
0
 void Awake()
 {
     m_score       = GameObject.Find("In_Game_UI").GetComponent <PlayerScoring> ();
     m_scoreText   = GameObject.Find("Score Is").GetComponent <Text> ();
     m_startButton = GameObject.Find("Game_Start_Menu").GetComponent <Start_Button> ();
     gameObject.SetActive(false);
 }
Exemplo n.º 2
0
 private void Start_Button_Click(object sender, EventArgs e)
 {
     Start1.Show();
     NameLabel.Show();
     UsernameInput.Show();
     Start_Button.Hide();
 }
 protected async Task EnsureFocus()
 {
     while (true)
     {
         Start_Button.Focus(FocusState.Keyboard);
         await Task.Delay(1000);
     }
 }
Exemplo n.º 4
0
        private void UserPass_Box_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if (e.Key == Key.Enter)    //если ткнул ентер, то
            {
                Start_Button.Focus();

                Start_Button_Click(null, null);    //делаю вид, что нажали "Вход"

                e.Handled = true;
            }
        }
Exemplo n.º 5
0
 //Action
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x0312)
     {
         if ((int)m.WParam == 1)
         {
             Start_Button.PerformClick();
         }
         if ((int)m.WParam == 2)
         {
             Stop_Button.PerformClick();
         }
     }
     base.WndProc(ref m);
 }
Exemplo n.º 6
0
    //Actions to broadcast to the UI
    //  public Action<int, int> GlobalTargetUpdate = null;
    //  public Action<int, int> GlobalConsecUpdate = null;
    //  public Action<int, int> GlobalScoreUpdate = null;
    //  public Action<int, float> GlobalTimeUpdate = null;
    //  public Action<int, bool> GlobalNoTargetMissed = null;


    void Awake()
    {
        m_input              = GameObject.Find("Main Camera").GetComponent <TouchInput>();
        m_button             = GameObject.Find("Game_Start_Menu").GetComponent <Start_Button> ();
        m_winScreen          = GameObject.Find("Win_Screen").GetComponent <WinScreenMenu> ();
        m_input.ScoreChange += UpdateScore;

        //  m_theStats = GameObject.Find("Global Stats").GetComponent<GlobalStats>();
        //  m_theStats.LinkToGame();

        m_score             = GameObject.Find("Timer").GetComponent <Text> ();
        m_multiplier        = GameObject.Find("Multiplier").GetComponent <Text> ();
        m_textTimeRemaining = GameObject.Find("Score").GetComponent <Text> ();

        m_timeRemaining = m_timePerRound;
    }
Exemplo n.º 7
0
        //Below are the various functions used that are implemented in
        //the buttons listed above.

        //Purpose: To Hide all Components that are not
        //needed at the begining of the game
        //Requires:Nothing
        //Returns;Nothing
        private void hideComponents()
        {
            Question_Box.Hide();
            Boarder_Box.Hide();
            Answers_Textbox.Hide();
            Answer_Button.Hide();
            Start_Button.Hide();
            Next_Question_Button.Hide();
            SpinButton.Hide();
            Begin_Spin_Round.Hide();
            Spin_Round_Instruction.Hide();
            Set_Name.Hide();
            Player1_textBox.Hide();
            playertwo_TextBox.Hide();
            Playerthree_textBox.Hide();
            Playerthree_label.Hide();
            Playertwo_Label.Hide();
            Playerone_Label.Hide();
            Yes_Button.Hide();
            No_Button.Hide();
            Next_Round_button.Hide();
            Quit_Button.Hide();
        }
Exemplo n.º 8
0
        void ReleaseDesignerOutlets()
        {
            if (BannerLogo != null)
            {
                BannerLogo.Dispose();
                BannerLogo = null;
            }

            if (BarButtonItem != null)
            {
                BarButtonItem.Dispose();
                BarButtonItem = null;
            }

            if (BarButtonItem2 != null)
            {
                BarButtonItem2.Dispose();
                BarButtonItem2 = null;
            }

            if (BarButtonItem3 != null)
            {
                BarButtonItem3.Dispose();
                BarButtonItem3 = null;
            }

            if (BarButtonItem4 != null)
            {
                BarButtonItem4.Dispose();
                BarButtonItem4 = null;
            }

            if (BarButtonItem5 != null)
            {
                BarButtonItem5.Dispose();
                BarButtonItem5 = null;
            }

            if (MainTitle != null)
            {
                MainTitle.Dispose();
                MainTitle = null;
            }

            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (MapType_Segmented != null)
            {
                MapType_Segmented.Dispose();
                MapType_Segmented = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }

            if (Pause_Button != null)
            {
                Pause_Button.Dispose();
                Pause_Button = null;
            }

            if (SoundBar != null)
            {
                SoundBar.Dispose();
                SoundBar = null;
            }

            if (Start_Button != null)
            {
                Start_Button.Dispose();
                Start_Button = null;
            }

            if (Stop_Button != null)
            {
                Stop_Button.Dispose();
                Stop_Button = null;
            }
        }