renpy.showing
Function: renpy.showing( | name, layer='master') |
Returns true if an image with the same image tag as name is being shown on the given layer, and false otherwise.
name - may be a tuple of strings, or a single string. In the latter case, it is split on whitespace to make a tuple. The first element of the tuple is used as the image tag.
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