|
27.
|
|
|
Image Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:94
|
|
28.
|
|
|
An image statement is used to define an image. An image statement consists of a single logical line beginning with the keyword ``image``, followed by an image name, an equals sign (``=``), and a displayable. For example::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:96
|
|
29.
|
|
|
The image statement must be run at init-time, before game code runs. When not contained inside an init block, image statements are run at init-time, as if they were placed inside an init block of priority 0.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:110
|
|
30.
|
|
|
See also the :ref:`ATL variant of the image statement. <atl-image-statement>`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:115
|
|
31.
|
|
|
Show Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:121
|
|
32.
|
|
|
The show statement is used to display an image on a layer. A show statement consists of a single logical line beginning with the keyword ``show``, followed by an image name, followed by zero or more properties.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:123
|
|
33.
|
|
|
If the show statement is given the exact name of an existing image, that image is the one that is shown. Otherwise, Ren'Py will attempt to find a unique image that:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:128
|
|
34.
|
|
|
Has the same tag as the one specified in the show statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:132
|
|
35.
|
|
|
Has all of the attributes given in the show statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:133
|
|
36.
|
|
|
If an image with the same tag is already showing, shares the largest number of attributes with that image.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displaying_images.rst:134
|