We're in the process of migrating the documentation over to a new tool. As not every page has been migrated yet, this exists to document new functionality that has no other place to go.
Causes the current Ren'Py statement to terminate, and a jump to a label to occur. When the jump returns, control will be passed to the statement following the current statement.
Resets the game runtime counter.
This attempts to find the coordinates of the currently-focused displayable. If it can, it will return them as a (x, y, w, h) tuple. If not, it will return a (None, None, None, None) tuple.
Converts s from filesystem encoding to unicode.
Converts s from unicode to the filesystem encoding.
Returns the game runtime counter.
The game runtime counter counts the number of seconds that have elapsed while waiting for user input in the top-level context. (It does not count time spent in the main or game menus.)
A generator that yields a log of image loading activity. For the last 100 image loads, this returns:
The entries are ordered from newest to oldest.
The image load log is only kept if config.developer = True.
Returns the size of the physical window.
Returns a dictionary, giving information about the renderer Ren'Py is currently using. The dictionary has one required key:
Other, renderer-specific, keys may also exist. The dictionary should be treated as immutable. This should only be called once the display has been started (that is, after the init code is finished).
Gets the attributes associated with the current say statement, or None if no attributes are associated with this statement.
This is only valid when executing or predicting a say statement.
This attempts to find an image to show as the side image.
It begins by determining a set of image attributes. If image_tag is given, it gets the image attributes from the tag. Otherwise, it gets them from the currently showing character.
It then looks up an image with the tag prefix_tag and those attributes, and returns it if it exists.
If not_showing is True, this only returns a side image if the image the attributes are taken from is not on the screen.
Given an image manipulator, loads it and returns a (width, height) tuple giving its size.
This reads the image in from disk and decompresses it, without using the image cache. This can be slow.
Lists the files in the game directory and archive files. Returns a list of files, with / as the directory separator.
Causes Ren'Py to display the message using the notify screen. By default, this will cause the message to be dissolved in, displayed for two seconds, and dissolved out again.
This is useful for actions that otherwise wouldn't produce feedback, like screenshots or quicksaves.
Only one notification is displayed at a time. If a second notification is displayed, the first notification is replaced.
Attempts to set the size of the physical window to size. This has the side effect of taking the screen out of windowed mode.
Causes the device to vibrate for duration seconds. Currently, this is only supported on Android.
This registers a new audio channel named name. Audio can then be played on the channel by supplying the channel name to the play or queue statements.
This causes the a yes/no prompt screen with the given message to be displayed. The screen will be hidden when the user hits yes or no.
Converts s from unicode to the filesystem encoding.