コード例 #1
0
    public static void drawCommonMainMenuItems()
    {
        GUILayout.Space(20);
        CommonMenuUtilities.drawButton("Options", CommonMenuUtilities.displayOptions);

        GUILayout.Space(20);
        CommonMenuUtilities.drawButton("Exit Game", CommonMenuUtilities.exitGame);
    }
コード例 #2
0
    public static void drawOptionsMenu(GUISkin CustomGuiSkin)
    {
        CommonMenuUtilities.drawCenterBoxHeader(CustomGuiSkin, "OPTIONS", CommonMenuUtilities._mainMenuWidth, CommonMenuUtilities._mainMenuHeight);

        CommonMenuUtilities.drawButton("Back", exitOptions);

        CommonMenuUtilities.endCenterBox();
    }
コード例 #3
0
    private void _drawPauseMenu()
    {
        if (CommonMenuUtilities.showOptions)
        {
            CommonMenuUtilities.drawOptionsMenu(GUI.skin);
            return;
        }

        CommonMenuUtilities.drawMainMenuHeader(GUI.skin);

        CommonMenuUtilities.drawButton("Resume Game", unpauseGame);

        CommonMenuUtilities.drawCommonMainMenuItems();

        CommonMenuUtilities.endCenterBox();
    }
コード例 #4
0
    void OnGUI()
    {
        GUI.skin = this.CustomGUISkin;

        if (CommonMenuUtilities.showOptions)
        {
            CommonMenuUtilities.drawOptionsMenu(GUI.skin);
            return;
        }

        CommonMenuUtilities.drawMainMenuHeader(GUI.skin);

        CommonMenuUtilities.drawButton("Start Game", startGame);

        CommonMenuUtilities.drawCommonMainMenuItems();

        CommonMenuUtilities.endCenterBox();
    }