|
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
|
|
36.
|
|
|
If it is existed, this label is called after a warp but before the warped-to statement executes. please see :ref:`Warping to a line <warping_to_a_line>`
|
|
|
|
若其存在,则该标签则会在warp语句之后warped-to语句之前被呼出。请参见:ref:`跳至指定行 <warping_to_a_line>`
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:144
|
|
37.
|
|
|
Labels & Control Flow Functions
|
|
|
|
标签和控制流相关的函数
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:148
|
|
38.
|
|
|
This code creates a new context, and starts executing code from that label in the new context. Rollback is disabled in the new context. (Actually, it will just bring you back to the real context.)
|
|
|
|
这段代码将会开启一个新的上下文,并在其中继续运行那个标签下的代码。在新的上下文中将无法使用回滚。(实际上,回滚操作变成了回到原始的上下文中。)
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/inc/label:5
|
|
39.
|
|
|
Use this to begin a second interaction with the user while inside an interaction.
|
|
|
|
使用它来在当前用户互动过程中触发第二个互动内容。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/label:10
../../source/inc/label:41
|