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.


# Esta opcion implementa salvado-cargado rapido.
# La funcion de cargado rapido agrega un boton al fondo que se
# muestra durante el juego. Cuando el boton se presiona, el juego
# se guarda en un bloque de salvado rapido. Tambien coloca un
# boton de carga rapida, al hacer click en el el juego salvado en
# el bloque de salvado rapido es cargado.

# Este proceso es ejecutado cuando se presiona el boton.
label _quick_save:
    call _enter_menu_without_scene from __call__enter_menu_4

    # Save the game.
    $ renpy.save('quicksave', _('Salvado rapido'))

    # Tell the user that we saved the game.
    $ ui.add(Solid((0, 0, 0, 128)))
    $ ui.text(_('Juego guardado en formato rapido.'),
              xpos=0.5, xanchor='center', ypos=0.5, yanchor='center')

    $ ui.saybehavior()
    $ ui.interact(suppress_overlay=True, suppress_underlay=True)

    return

# Proceso llamado cuando el boton de cargado rapido es presionado,
# para cargar el juego.

label _quick_load:
    $ renpy.load('quicksave')
    return

init -1:

    python hide:
        
        # Add the quick save button in as an overlay function.
        def quick_save_button():
            ui.textbutton(_("Salvado rapido"),
                          xpos=0.98, ypos=0.02,
                          xanchor='right', yanchor='top',
                          clicked=renpy.curried_call_in_new_context('_quick_save'))

        config.overlay_functions.append(quick_save_button)

        # Add the quick load function to the main menu.
        library.main_menu.insert(1, ('Cargado rapido',
                                     ui.jumps("_quick_load"),
                                     'renpy.can_load("quicksave")'))