documentation index ◦ reference manual ◦ function index

# renpy.showing

Function: | renpy.showing | (name, layer='master'):

Returns True if name is a prefix of an image that's being shown on layer. name may be a tuple of strings, or a single string. In the latter case, it is split on whitespace to make a tuple.

When called during image prediction, this uses the images that are predicted to be shown, rather than the images that are currently being shown.

## Example

This only hides the eileen image with a dissolve if it is being shown. This allows us to avoid an unnecessary dissolve.

    if renpy.showing("eileen"):
        hide eileen
        with dissolve

documentation index ◦ reference manual ◦ function index