Translations by Hanming Wu

Hanming Wu has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.

139 of 39 results
1.
Labels & Control Flow
2013-12-04
标签(label)和控制流程(control flow)
2.
Label Statement
2013-12-04
Label语句
3.
Label statements allow the given name to be assigned to a program point. They exist solely to be called or jumped to, whether by script code or the Ren'Py config. ::
2013-12-04
Label语句可以给脚本中的某一点命名,这个名字是唯一的,可以被脚本代码或Ren'Py调用或跳转。
4.
A label statement may have a block associated with it. In that case, control enters the block whenever the label statement is reached, and proceeds with the statement after the label statement whenever the end of the block is reached.
2013-12-04
一条label语句可能会有一个代码块与之关联,这样的话,当控制流程运行这条label语句的时候便会进入代码块并执行其中的代码,直到代码块的全部被执行完毕。
5.
The label statement may take an optional list of parameters. These parameters are processed as described in PEP 3102, with two exceptions:
2013-12-04
Label语句可以带一些可选的参数,具体请参考PEP 3102,有两个例外::
6.
The values of default parameters are evaluated at call time.
2013-12-04
参数的默认值是在运行时确定的
7.
The variables are dynamically, rather than lexically, scoped.
2013-12-12
这些变量的作用域是动态的,而不是静态的。
2013-12-04
这些变量是动态的,或者说是有作用域的。
8.
Jump Statement
2013-12-04
Jump语句
10.
If the ``expression`` keyword is present, the expression following it is evaluated, and the string so computed is used as the label name of the statement to jump to. If the ``expression`` keyword is not present, the label name of the statement to jump to must be explicitly given.
2013-12-04
如果使用了``expression``关键字,那么会先运行expression后面的语句,并将运行的结果作为一个label的名称,并跳转过去。如果没有使用``expression``关键字那么必须显式地指定将要跳转的标签的名称。
12.
Call Statement
2013-12-05
Call语句
15.
If the optional from clause is present, it has the effect of including a label statement with the given name as the statement immediately following the call statement. An explicit label helps to ensure that saved games with return stacks can return to the proper place when loaded on a changed script. ::
2013-12-07
如果使用from
16.
The call statement may take arguments, which are processed as described in PEP 3102.
2013-12-07
Call语句可以有参数,具体可以参考PEP 3102。
17.
When using a call expression with an arguments list, the ``pass`` keyword must be inserted between the expression and the arguments list. Otherwise, the arguments list will be parsed as part of the expression, not as part of the call.
2013-12-05
当在call语句中同时使用表达式(expression)和参数列表时,必须将``pass``关键字放在表达式和参数列表之间,否则会把参数列表做为表达式的一部分进行解析,而不是call语句的一部分。
18.
Return Statement
2013-12-05
Return语句
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.
2013-12-12
如果return语句后面有一个表达式的话,那么会将表达式的结果存储在变量_return中,该变量在每个上下文中的作用域是动态的。
21.
Special Labels
2013-12-05
特殊的标签(label)
22.
The following labels are used by Ren'Py:
2013-12-05
Ren'Py会使用下面这些标签::
23.
``start``
2013-12-05
``start``
24.
By default, Ren'Py jumps to this label when the game starts.
2013-12-05
默认情况下Ren'Py将会从这里开始游戏。
25.
``quit``
2013-12-05
``quit``
26.
If it exists, this label is called in a new context when the user quits the game.
2013-12-05
如果有quit标签的话,玩家退出游戏时将会在
27.
``after_load``
2013-12-05
``after_load``
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.
2013-12-05
如果存在这个标签,那么将会在游戏载入之后运行该标签下面的代码,主要用于游戏升级时对数据进行修复。
29.
``splashscreen``
2013-12-05
``splashscreen``
30.
If it exists, this label is called when the game is first run, before showing the main menu.
2013-12-05
如果存在这个标签,那么它将会在初次运行游戏显示主菜单之前被调用。
31.
``before_main_menu``
2013-12-05
``before_main_menu``
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.
2013-12-05
如果存在这个标签,那么它将会在显示主菜单之前被调用。这个标签很少被使用,可能会被用于设置主菜单,比如在背景播放视频。
33.
``main_menu``
2013-12-05
``main_menu``
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. ::
2013-12-05
如果存在这个标签,那么将会执行它内部的代码而不显示主菜单,当它通过return返回时,Ren'Py会直接从``start``标签开始游戏。比如下面这段代码会直接开始游戏而不会显示主菜单。::
35.
``after_warp``
2013-12-05
``after_warp``
37.
Labels & Control Flow Functions
2013-12-05
标签(label)和控制流程(control flow)相关的函数(function)
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.)
2013-12-12
这段代码将会开启一个新的上下文,并在其中继续运行那个标签下的代码。在新的上下文中将无法使用回滚。(实际上,回滚操作变成了回到原始的上下文中。)
40.
Returns the set of all labels defined in the program, including labels defined for internal use in the libraries.
2013-12-12
获取程序中定义的所有标签,包括在库中定义的仅在内部使用的标签。
41.
Returns true if name is a valid label in the program, or false otherwise.
2013-12-12
如果存在该标签就返回true,否则就返回false。
44.
Please note that the context so created cannot execute renpy code. So exceptions that change the flow of renpy code (like the one created by renpy.jump) cause this context to terminate, and are handled by the next higher context.
2013-12-12
请注意这样创建的上下文中是不能运行Ren'Py代码的。
45.
If you want to execute renpy code from the function, you can call it with renpy.call_in_new_context.
2013-12-12
如果您想要在该函数中执行Ren'Py代码的话,可以通过renpy.call_in_new_context来调用它。
46.
Causes control to leave the current context, and then to be transferred in the parent context to the given label.
2013-12-12
使控制流程退出当前的上下文,并在上一层上下文中运行指定的标签。
47.
Returns true if the named label has executed at least once on the current user's system, and false otherwise. This can be used to unlock scene galleries, for example.
2013-12-12
如果该标签在当前的用户系统中执行过的话就返回true,否则就返回false。可以用来解锁相册中的CG等。