|
1.
|
|
|
Displayables
|
|
|
|
Displayables
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/displayables.rst:7
|
|
2.
|
|
|
A displayable is an object that can be shown to the user. Ren'Py displayables can be used in many ways.
|
|
|
|
Displayable是一个可以显示给玩家的对象。Displayable在Ren'Py有很多使用方法。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:9
|
|
3.
|
|
|
Assignment to an image name using the image statement.
|
|
|
|
用image语句赋予其一个图像的名字。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:12
|
|
4.
|
|
|
Added to a screen using the screen language add statement.
|
|
|
|
用screen语言的add语句将其加到界面中。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/displayables.rst:13
|
|
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 hexadecimal 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
|