Reference Manual: (offline | online) Quickstart: (offline | online)

# ui.jumps

Function: ui.jumps( | label)

This function returns a function that, when called, jumps the game to the given label, ending the current interaction in the process. It's best used to supply the clicked argument to the various button widgets.

## Example

    init:
        python hide:
            # The contents of the main menu.
            config.main_menu = [
                ( u"Start Game", "start", 'True'),
                ( u"Continue Game", ui.jumps("_load_screen"), 'True' ),
                ( u"Preferences", ui.jumps("_prefs_screen"), 'True' ),
                ( u"Quit",  ui.jumps("_quit"), 'True' ),
                ]

Reference Manual: (offline | online) Quickstart: (offline | online)