|
5.
|
|
|
Assignment to certain config variables.
|
|
|
|
赋给特定的配置变量。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:14
|
|
6.
|
|
|
Assignment to certain style properties.
|
|
|
|
赋给特定的样式属性。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:15
|
|
7.
|
|
|
When a Ren'Py function or variable expects a displayable, there are four things that can be provided:
|
|
|
|
当一个Ren'Py函数需要一个displayable时,需要提供四个参数:
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:17
|
|
8.
|
|
|
An object of type Displayable, created by calling one of the functions given below.
|
|
|
|
一个Displayable类型的对象,可以通过调用下面其中一个函数来创建。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:20
|
|
9.
|
|
|
A string with a dot (.) in it. Such a string is interpreted as a filename by :func:`Image`.
|
|
|
|
包含一个分隔符(.)的字符串。这样的字符串被:func:`Image`解析为文件名。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:22
|
|
10.
|
|
|
A color. A color may either be given as a hexidecimal color string in "#rgb", "#rgba", "#rrggbb", or "#rrggbbaa" form, or an (r, g, b, a) tuple, where each component is an integer between 0 and 255. Colors are passed to :func:`Solid`.
|
|
|
|
一种颜色。颜色可以通过十六进制的颜色字符串表示,格式为"#rgb", "#rgba", "#rrggbb", 或"#rrggbbaa";或者是(r,g,b,a)的元祖,每个元素是一个0~255之间的整数。这个颜色被传递给:func:`Solid`。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:24
|
|
11.
|
|
|
An image name. Any other string is interpreted as a reference to an image defined with the image statement.
|
|
|
|
一个图像的名字。可以是任意的字符串,通过image语句定义的一幅图像的引用。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:28
|
|
12.
|
|
|
Images
|
|
|
|
图像
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/displayables.rst:34
|
|
13.
|
|
|
The most commonly used displayable is Image, which loads a file from disk and displays it. Since Image is so commonly used, when a string giving a filename is used in a context that expects a displayable, an Image is automatically created. The only time it's necessary to use Image directly is when you want to create an image with style properties.
|
|
|
|
最常用的displayable就是图像,可以从文件读取并展示出来。因为图像的使用太频繁了,所以在上下文中用来表示文件名的字符串都被认为是一个displayable,并根据其文件内容自动创建一个图像。只有当您需要创建一个有样式属性的图像时才有必要直接使用一个图像。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:36
|
|
14.
|
|
|
Loads an image from a file. `filename` is a string giving the name of the file.
|
|
|
|
从文件读取一个图像。`filename`是一个包含文件名的字符串。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/inc/im_image:5
|