|
1.
|
|
|
Transitions
|
|
|
|
转场特效
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:8
|
|
2.
|
|
|
Transitions can be used as part of the :ref:`with statement <with-statement>`, as well as in other parts of Ren'Py, to apply effects to changes in the scene. Ren'Py comes with a small number of pre-defined transitions, which can be given directly to the with statement. It also includes transition classes, which can be used to create new transitions.
|
|
|
|
转场特效可以作为:ref:`with statement <with-statement>`的一部分使用,与Ren'py其他部分相同,都会将改变作用于场景中。Ren'py拥有少量预定义的转场,可以通过with语句调用。它同样包含转场类(classes),用于创建新的转场特效。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:10
|
|
3.
|
|
|
Pre-Defined Transitions
|
|
|
|
预定义的转场特效
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:18
|
|
4.
|
|
|
Pre-defined transitions can be given directly to the with statement. For example::
|
|
|
|
预定义的转场特效可以通过with语句直接调用。例如:
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:20
|
|
5.
|
|
|
Takes 0.5 seconds to fade to black, and then 0.5 seconds to fade to the new screen. An instance of the :func:`Fade` transition class.
|
|
|
|
花费0.5秒的时间将画面淡出到黑色,并花费另外0.5秒淡入到新的屏幕(screen)中。这是:func:`Fade`转场类的一种实例。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:28
|
|
6.
|
|
|
Takes 0.5 seconds to dissolve from the old to the new screen. An instance of the :func:`Dissolve` transition class.
|
|
|
|
花费0.5秒时间从旧的屏幕渐变到新的。这是:func:`Dissolve`转场类的一种实例。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:34
|
|
7.
|
|
|
Pixellates the old scene for .5 seconds, and the new scene for another .5 seconds. An instance of the :func:`Pixellate` transition class.
|
|
|
|
花费0.5秒时间将旧的屏幕像素化,花费另外0.5秒时间还原成新的屏幕。这是:func:`Pixellate`转场类的一种实例。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:39
|
|
8.
|
|
|
Takes 0.5 seconds to the move images that have changed location to their new locations. An instance of the :func:`MoveTransition` transition class.
|
|
|
|
花费0.5秒时间将图像移动到它新的位置上。这是:func:`MoveTransition`转场类的一种实例。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:45
|
|
9.
|
|
|
Also: **moveinleft, moveintop, moveinbottom**
|
|
|
|
同理:**moveinleft, moveintop, moveinbottom**
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:51
|
|
10.
|
|
|
These move entering images onto the screen from the appropriate side, taking 0.5 seconds to do so.
|
|
|
|
花费0.5秒的时间从对应的方向将图像移入屏幕。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/transitions.rst:53
|