|
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
|
|
30.
|
|
|
If it exists, this label is called when the game is first run, before showing the main menu.
|
|
|
|
如果存在这个标签,那么它将会在初次运行游戏显示主菜单之前被调用。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:126
|
|
31.
|
|
|
``before_main_menu``
|
|
|
|
``before_main_menu``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:132
|
|
32.
|
|
|
If it exists, this label is called before the main menu. It is used in rare cases to set up the main menu, for example by starting a movie playing in the background.
|
|
|
|
如果存在这个标签,那么它将会在显示主菜单之前被调用。这个标签很少被使用,可能会被用于设置主菜单,比如在背景播放视频。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:130
|
|
33.
|
|
|
``main_menu``
|
|
|
|
``main_menu``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:141
|
|
34.
|
|
|
If it exists, this label is called instead of the main menu. If it returns, Ren'Py will start the game at the ``start`` label. For example, the following code will immediately start the game without displaying the main menu. ::
|
|
|
|
如果存在这个标签,那么将会执行它内部的代码而不显示主菜单,当它通过return返回时,Ren'Py会直接从``start``标签开始游戏。比如下面这段代码会直接开始游戏而不会显示主菜单。::
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:135
|
|
35.
|
|
|
``after_warp``
|
|
|
|
``after_warp``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:145
|