StartEnd MenuPages

version 1 by ShadowChaser

  • Home page
  • Beginning
  • Previous



  • Section: Usage

    When the intro page is displayed it prints the game title, followed by a quotation.

    By default the game title is the game's "headline", but you can change it by declaring:

        The game_title is " .... ".
        
    The default quotation is a famous quote from a fictional book created by a famous horror writer. The quotation can be changed by declaring:

        The start_quotation is " .... ".
        
    If you're compiling a Glulx project, the intro page will also display the file startpicture.jpg, and play the file startmusic.ogg, as stored in the "Materials" folder of the project.

    It then provides a menu of options: start a new game, restore a saved game and quit. You can also make it display a "show menu" option by setting the menus option and setting the intro menu.

        Use menus.
        The intro_menu is the Table of Introductory Information.

    Note that the extension always includes the extension Menus that ships with Inform, and so this framework should be used for writing Menu tables.

    After displaying the menu, it displays some footer text. By default this is a disclaimer similar to the ones given at the end of movies. It can be changed by declaring:

        The start_footer_text is " .... ".

    Because I often like to add mature content to my game it is possible at the start of the game to display a mature content disclaimer. If you opt to use this option then before the title page is displayed the software will display a disclaimer text warning the player that the game contains mature content. It will then ask them if they want to continue. If, and only if, they pres the Y key, will the game start and the title page be displayed.

    To use this option declare:

        Use mature content warning.
        
    The content disclaimer can be customised by declaring:

        The disclaimer is " .... ".

    If you only want to display the disclaimer without the title page afterward, declare:

        Use no title page.

    Finally, for debug project (specifically, those in the testing panel) it can be tedious to start the game with a disclaimer and intro panel every time (and indeed, the "restore" option doesn't work in the test pane of the I7 application). Therefore an option is provided to skip the intro on debug versions, but still include it on released versions.

        Use skip intro.

    When the end page is displayed it prints the ending quotation. The quotation can be changed by declaring:

        The end_quotation is " .... ".
        
    If you're compiling a Glulx project, the end page will also display the file endpicture.jpg, and play the file endmusic.ogg, as stored in the "Materials" folder of the project.

    It then provides a menu of options: restart the game, restore a saved game and quit. You can also make it display a "show credits" option by setting the credits option and setting the game_credits text.

        Use credits.
        The game_credits is " .... ".

    You can also make it display a "show progress" option by setting the progress option and setting the game_progress text.
        
        Use progress.
        The game_progress is " .... ".

    After displaying the end menu, it displays some footer text. It can be changed by declaring:

        The end_footer_text is " .... ".