예제 #1
0
    private void ShowUI()
    {          //Hide all the UI elements
        HideAll();
        //Show the UIPanel
        //Show the small exit button
        smallExitBtn.Show();

        uiPanel.Show();
        //Send message that the ui is changed
        MainEvent mei = new MainEvent();

        mei.startBtnPressed = true;
        mei.FireEvent();
    }
예제 #2
0
    private void ShowMenu()
    {
        //Send message that the ui is changed
        MainEvent mei = new MainEvent();

        mei.menuBtnPressed = true;
        mei.FireEvent();
        //Hide all the UI elements
        HideAll();
        //Show the buttons and menu
        startBtn.Show();
        creditsBtn.Show();
        exitBtn.Show();
        menuPanel.Show();
        background.Show();
    }