void OnGUI()
    {
        GUI.skin = this.CustomGUISkin;

        CommonMenuUtilities.drawCenterBoxHeader(this.CustomGUISkin, this._title, this._boxWidth, this._boxHeight);

        CommonMenuUtilities.drawSingleLabelLine("BATTLE REPORT");

        GUILayout.FlexibleSpace();

        CommonMenuUtilities.drawSingleLabelLine("Days Fought\t\t" + (this._LevelInformations.getBattleTime() / 1440) + 1);
        GUILayout.FlexibleSpace();

        CommonMenuUtilities.drawSingleLabelLine("Soldiers Remaining\t\t" + this._LevelInformations.getNumSoldiers());
        CommonMenuUtilities.drawSingleLabelLine("Soldiers Lost\t\t" + this._LevelInformations.getNumSoldiersKilled());
        GUILayout.FlexibleSpace();

        CommonMenuUtilities.drawSingleLabelLine("Enemies Remaining\t\t" + this._LevelInformations.getNumEnemies());
        CommonMenuUtilities.drawSingleLabelLine("Enemies Killed\t\t" + this._LevelInformations.getNumEnemiesKilled());
        GUILayout.FlexibleSpace();

        if (GUILayout.Button("Continue"))
        {
            this.GuiAudioSource.PlayOneShot(this.Click1);
            this._ContinueResponseFunction();
        }
        GUILayout.FlexibleSpace();

        CommonMenuUtilities.endCenterBox();
    }
Example #2
0
    void OnGUI()
    {
        GUI.skin = this.CustomGUISkin;

        //Replace "briefing" with the name of the map or something (should be in the intro text file)
        CommonMenuUtilities.drawCenterBoxHeader(this.CustomGUISkin, "", this._boxWidth, this._boxHeight);

        GUILayout.FlexibleSpace();

        this._drawPicture();

        GUILayout.FlexibleSpace();

        this._drawText();

        GUILayout.FlexibleSpace();
        if (GUILayout.Button("Continue"))
        {
            this.GuiAudioSource.PlayOneShot(this.Click1);
            this._ContinueResponseFunction();
        }
        ;
        GUILayout.FlexibleSpace();

        CommonMenuUtilities.endCenterBox();
    }
    public static void drawOptionsMenu(GUISkin CustomGuiSkin)
    {
        CommonMenuUtilities.drawCenterBoxHeader(CustomGuiSkin, "OPTIONS", CommonMenuUtilities._mainMenuWidth, CommonMenuUtilities._mainMenuHeight);

        CommonMenuUtilities.drawButton("Back", exitOptions);

        CommonMenuUtilities.endCenterBox();
    }
 public static void drawMainMenuHeader(GUISkin CustomGuiSkin, string menuHeading = "MAIN MENU")
 {
     CommonMenuUtilities.drawCenterBoxHeader(CustomGuiSkin, menuHeading, CommonMenuUtilities._mainMenuWidth, CommonMenuUtilities._mainMenuHeight);
 }