Skip to content

Call screen in a new context #4894

Description

@Gouvernathor

A question often asked is how you can call a screen from another screen, or even more specifically how to call a screen from a call screen itself, a.k.a from an interaction.
An interaction within an interaction, that's a Context. So, one way of doing that (because as itself a call screen from a screen is a no-go) is to open a new context to show that screen, and return from that context afterwards.
An existing action does almost that : ShowMenu. The trouble is, it's specifically tailored for calling the game menu, or calling an arbitrary screen "as part of the game menu". It's not just some documentation phrasing or suggestion : the default screen being called, the transition being invoked and the overall implementation are tied to the game menu.

There should be an action to do that, but generalized for any screen and not specific to the game menu. Given the implementation of ShowMenu it doesn't look like it should be very hard to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA proposed or requested enhancement or improvement to renpy's features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions