Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Launchpad Translators instructions and Chinese (Simplified) guidelines.
614 of 14 results
6.
Writing an .edit.py File
编写一个.edit.py文件
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:32
7.
An edit.py file is a Python (not Ren'Py) file that must define a single class, named Editor. Ren'Py will call methods on this class to cause editing to occur.
edit.py文件是一个必须定义简单类的Python(不是Ren'py)文件,以编辑器为准命名。Ren'py可以调用这个类的方法(methods)来出发编辑操作。
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:34
8.
Use of the editor is done as part of an editor transaction, which groups related operations together. For example, if an editor transaction asks for a new window, all of the files in that transaction should be opened in the same new window. An editor transaction starts with a call to the begin method, may contain one or more calls to operation methods, and ends with a call to the end method.
编辑器的使用是作为编辑器事务(transaction)的一部分完成的,它将相关操作组合在一起。比如,若一个编辑器事务需要一个新窗口,那么该事务中所有的文件都应在同一个新窗口中打开。一个编辑器的事务开始于启动方法的调度,可能包含一个或多个操作方法调用,并结束于结束方法的调度。
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:38
9.
The edit.py file should import renpy.editor, and the Editor class should inherit from renpy.editor.Editor. As additional keyword arguments may be added to methods, each method you define should ignore unknown keyword arguments. Since you're expected to define your own Editor subclass, we present the methods with the `self` parameter.
edit.py文件应导入renpy.editor中,同时编辑器类应从renpy.editor.Editor中继承。作为可能添加到方法中的关键参数,每个您定义的方法应忽略掉未知的关键参数。为了给您定义自己的编辑器子类,我们使用`self`参数(引数,parameter)来提供方法。
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:45
10.
Starts an editor transaction.
启动编辑器事务
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:55
11.
If `new_window` is true, the editor should attempt to open a new window. Otherwise, it should attempt to perform the transaction in an existing editor window.
如果`new_window`为true,则编辑器应打开新窗口。否则,其应在已有的编辑器窗口中进行事务。
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:57
12.
Ends a transaction.
结束事务
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:63
13.
Opens a `filename` in the editor.
在编辑器中打开一个`filename`。
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:67
14.
If `line` is not None, attempts to position the editing cursor at `line`.
如果`line`不为None,则使编辑器光标放在`line`上。
Translated and reviewed by Huang Junjie
Located in ../../source/editor.rst:69
614 of 14 results

This translation is managed by Launchpad Simplified Chinese Translators, assigned by Launchpad Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Huang Junjie.