Difference between revisions of "TrainCarts/Signs/Animate/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "=== 第一行 ===")
(Created page with "这将播放 '门' 的动画场景 '打开'。你还可以使用 ''animation[scenestart:sceneend]'' 或 ''animation[:scene]'' 指定播放的场景范围,从动画开头开...")
 
(11 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
=== 第一行 ===
 
=== 第一行 ===
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
[train] 为列车中所有矿车播放动画,[cart] 只为经过上方的单辆矿车播放动画。
[train] to play the animation in all Minecarts, [cart] to only play it for the Minecart that is above the sign right now. [[Special:MyLanguage/Mods/TrainCarts/Signs#Remote Control|Remote control]] can also be used.
+
也可以使用[[Special:MyLanguage/Mods/TrainCarts/Signs#Remote Control|远程控制]]
</div>
 
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
=== 第二行 ===
=== Second Line ===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
''animate'',可选后跟以下标签:
''animate'', optionally followed up by any of the following option flags:
+
* reset(或:'r'- 重置动画。
* reset (or: 'r') - Hard-resets playback of the animation to the beginning
+
* looped(或:'l'- 循环播放动画。
* looped (or: 'l') - Loops the animation forever
+
* queue(或:'q'- 将动画添加到播放列表。当前动画播放完后会继续播放列表中的动画。
* queue (or: 'q') - Queues up the animation to be played after the current animation finished. This can be used to play multiple animations in a timed sequence
+
* move(或:'m'- 移动速度模式。播放动画的速度取决于附件或列车的移动速度。
* move (or: 'm') - Move animation mode. Makes playback speed depend on how fast the attachment/train is moving
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
可像这样指定多个标签:
Multiple flags can be specified like so:
 
</div>
 
 
{{sign|[train]|animate lm|rotate|1}}
 
{{sign|[train]|animate lm|rotate|1}}
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
=== 第三行 ===
=== Third Line ===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
动画名称。默认可以使用 ''rotate''''roll'' ''pitch'' 来为矿车制作动画。
animation name. By default animations ''rotate'', ''roll'' and ''pitch'' can be used to animate the entire Minecart
 
</div>
 
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
=== 第四行 ===
=== Fourth Line ===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
可以留空,填写可以指定播放动画的速度和延迟。填写的速度会乘以当前播放动画的速度,同时添加填写的延迟。第一个数值表示速度,若有第二个数值,则第二个数值表示延迟。要倒放动画,则第一个数值应该填负数。
Can be left empty, otherwise the speed and delay for playing the animation can be specified. The speed is multiplied with the speed(s) of the animations played, and the delay is added. First number is speed, if a second number is specified with a space between it, that is the delay. To play an animation in reverse, use a negative speed.
 
</div>
 
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 场景 ==
== Scenes ==
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
从版本 1.17.1-v2 开始,可以在列车动画中创建场景。要通过控制牌播放特定场景,可以这样写:
As of version 1.17.1-v2 it is possible to create scenes in the animations of trains. To play a specific scene with a sign, put it on the sign as such:
 
</div>
 
 
{{sign|[train]|animate|doors[open]|1.0}}
 
{{sign|[train]|animate|doors[open]|1.0}}
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
这将播放 '' 的动画场景 '打开'。你还可以使用 ''animation[scenestart:sceneend]'' ''animation[:scene]'' 指定播放的场景范围,从动画开头开始播放到场景,或使用 ''animation[scene:]'' 从场景开始播放到动画末尾。
Which will play scene 'open' of animation 'doors'. You can also specify a range of scenes to play using ''animation[scenestart:sceneend]'', or ''animation[:scene]'' to play from the beginning of the animation to this scene, or ''animation[scene:]'' to play from the scene to the end of the animation.
 
</div>
 

Latest revision as of 10:56, 12 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

动画牌可以播放储存在列车附件中的动画。它可以覆盖动画的某些属性,例如动画速度和是否循环播放。可以远程设置列车中所有车厢、单辆矿车和远程矿车播放动画。


语法

Signtemplate.png
[train]
animate
rotate


Signtemplate.png
[train]
animate looped
roll
0.5


Signtemplate.png
[train]
animate lr
rotate
0.5 0.4


第一行

[train] 为列车中所有矿车播放动画,[cart] 只为经过上方的单辆矿车播放动画。 也可以使用远程控制


第二行

animate,可选后跟以下标签:

  • reset(或:'r')- 重置动画。
  • looped(或:'l')- 循环播放动画。
  • queue(或:'q')- 将动画添加到播放列表。当前动画播放完后会继续播放列表中的动画。
  • move(或:'m')- 移动速度模式。播放动画的速度取决于附件或列车的移动速度。

可像这样指定多个标签:

Signtemplate.png
[train]
animate lm
rotate
1


第三行

动画名称。默认可以使用 rotaterollpitch 来为矿车制作动画。


第四行

可以留空,填写可以指定播放动画的速度和延迟。填写的速度会乘以当前播放动画的速度,同时添加填写的延迟。第一个数值表示速度,若有第二个数值,则第二个数值表示延迟。要倒放动画,则第一个数值应该填负数。


场景

从版本 1.17.1-v2 开始,可以在列车动画中创建场景。要通过控制牌播放特定场景,可以这样写:

Signtemplate.png
[train]
animate
doors[open]
1.0

这将播放 '门' 的动画场景 '打开'。你还可以使用 animation[scenestart:sceneend]animation[:scene] 指定播放的场景范围,从动画开头开始播放到场景,或使用 animation[scene:] 从场景开始播放到动画末尾。