|
1.
|
|
|
Transforms
|
|
|
|
変換 (Transform)
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:8
|
|
2.
|
|
|
A transform can be applied to a displayable to yield another displayable. The built-in transforms are used to control where an object is placed on the screen, while user-defined transforms can cause more complex effects, like motion, zoom, and rotation.
|
|
|
|
変換を displayable に適用すると別の displayable が得られます。組み込みの変換を使うと画面上のオブジェクトの位置座標を変換出来ます。ユーザー定義の変換では移動、ズーム、回転などより複雑な効果を与えられます。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:10
|
|
3.
|
|
|
Transforms can be applied by giving the at clause to the scene and show statements. The following code applies the "right" transform to the eileen happy displayable.::
|
|
|
|
scene ステートメントや show ステートメントに at 節を与えることで変換を適用できます。以下のコードは、eileen happy displayable に 「 right 」変換を適用します。::
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:15
|
|
4.
|
|
|
Multiple transforms can be applied by separating them with commas. These transforms are applied from left-to-right, with the rightmost transform taking precedence in the case of conflicts. ::
|
|
|
|
複数の変換をカンマで区切って適用できます。その変換は左から右へ順に適用され、競合したら最も右のものが優先されます。::
|
|
Translated by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:21
|
|
5.
|
|
|
A displayable always has a transform associated with it. If no transform is given, the prior transform is used. When the transform is changed, undefined values are taken from the prior transform, or from ``default`` if there is no prior transform.
|
|
|
|
displayable には、必ず変換が関わります。変換が与えられないと、それまで使っていた変換を引き継ぎます。変換が変えられると、定義されていない値は使っていた変換を引き継ぎ、使っていた変換がなければ ``default`` から取られます。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:27
|
|
6.
|
|
|
Default Transforms
|
|
|
|
デフォルトの変換
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:33
|
|
7.
|
|
|
Ren'Py ships with a number of transforms defined by default. These transforms position things on the screen. Here's a depiction of where each default transform will position an image. ::
|
|
|
|
Ren'Py では、組み込みの変換をいくつか定義しています。これらの変換は、画像を画面上に配置します。組み込みの各変換がどこに画像を配置するかをここに示します。::
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:35
|
|
8.
|
|
|
The offscreenleft and offscreenright transforms position images off the screen. These transforms can be used to move things off the screen (remember to hide them afterwards, to ensure that they do not consume resources).
|
|
|
|
offscreenleft および offscreenright 変換は、画面外に画像を配置します。この変換は、画面外に画像を動かすのに使えます (リソースを浪費しないために、後で必ず hide してください)。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:53
|
|
9.
|
|
|
The transforms are:
|
|
|
|
変換は次のとおりです:
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:58
|
|
10.
|
|
|
Centers horizontally, and aligns to the bottom of the screen.
|
|
|
|
画面の中央下に配置します。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/transforms.rst:62
|