|
20.
|
|
|
If the optional expression is given to return, it is evaluated, and it's result is stored in the _return variable. This variable is dynamically scoped to each context.
|
|
|
|
如果return语句后面有一个表达式的话,那么会将表达式的结果存储在变量_return中,该变量在每个上下文中的作用域是动态的。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:105
|
|
21.
|
|
|
Special Labels
|
|
|
|
特殊的标签(label)
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:110
|
|
22.
|
|
|
The following labels are used by Ren'Py:
|
|
|
|
Ren'Py会使用下面这些标签:
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:112
|
|
23.
|
|
|
``start``
|
|
|
|
``start``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:115
|
|
24.
|
|
|
By default, Ren'Py jumps to this label when the game starts.
|
|
|
|
默认情况下Ren'Py将会从这里开始游戏。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:115
|
|
25.
|
|
|
``quit``
|
|
|
|
``quit``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:119
|
|
26.
|
|
|
If it exists, this label is called in a new context when the user quits the game.
|
|
|
|
若其存在,则此标签将会在用户结束游戏时呼出新的上下文。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:118
|
|
27.
|
|
|
``after_load``
|
|
|
|
``after_load``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:123
|
|
28.
|
|
|
If it exists, this label is called when a game is loaded. It can be use to fix data when the game is updated.
|
|
|
|
如果存在这个标签,那么将会在游戏载入之后运行该标签下面的代码,主要用于游戏升级时对数据进行修复。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:122
|
|
29.
|
|
|
``splashscreen``
|
|
|
|
``splashscreen``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:127
|