This page is out of date

You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.

Some places to look are:

Please do not create new links to this page.


#Este archivo agrega un número de botones a la esquina inferior derecha de
#la pantalla. Tres de estos botones saltan al menú del juego, dando
#acceso a Cargar, Salvar y Preferencias. El cuarto botón cambia la
#opción para saltar el texto, para hacerlo más conveniente.

init:

    # Dejar algo de espacio en la equina derecha de la pantalla.
    $ style.window.right_margin = 100

    python:

        def toggle_skipping():
            config.skipping = not config.skipping

        def button_game_menu():

            # para ahorrar el tecleo
            ccinc = renpy.curried_call_in_new_context

            ui.vbox(xpos=0.98, ypos=0.98, xanchor='right', yanchor='bottom')
            ui.textbutton("Skip", clicked=toggle_skipping)
            ui.textbutton("Save", clicked=ccinc("_game_menu_save"))
            ui.textbutton("Load", clicked=ccinc("_game_menu_load"))
            ui.textbutton("Prefs", clicked=ccinc("_game_menu_preferences"))
            ui.close()


        config.overlay_functions.append(button_game_menu)

Traducidos los botones quedarían así:


            ui.vbox(xpos=0.98, ypos=0.98, xanchor='right', yanchor='bottom')
            ui.textbutton("Saltar", clicked=toggle_skipping)
            ui.textbutton("Guardar", clicked=ccinc("_game_menu_save"))
            ui.textbutton("Cargar", clicked=ccinc("_game_menu_load"))
            ui.textbutton("Prefs", clicked=ccinc("_game_menu_preferences"))
            ui.close()