layout.yesno prompt - Ren'Py Visual Novel Engine

documentation index ◦ reference manual ◦ function index

# layout.yesno_prompt

Function: | layout.yesno_prompt | (screen, message):

This function is intended to be customized by yesno_prompt layouts. It can be replaced by another function, provided the signature remains the same.

screen - The screen button that should be highlighted when this prompt is shown. If None, then no game menu navigation is shown.

message - The message that is shown to the user to prompt them to answer yes or no.

This function returns True if the user clicks Yes, or False if the user clicks No.

    if layout.yesno_prompt("armageddon", "Are you sure you want to end the world?"):
        jump earth_shattering_kaboom
    else:
        jump _return

documentation index ◦ reference manual ◦ function index