Jump to content

Translations:Automapper/9/zh: Difference between revisions

From DDraceNetwork
Darkh (talk | contribs)
No edit summary
Darkh (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
贴图按照如下方式自动进行:在规则组中从上往下读取,按照规则所描述坐标或者位置分布关系,在图层已有的贴图中查找符合描述图块,然后将该图块替换为规则指定编号的贴图;注意贴图过程中先前规则贴好的贴图可能会被后来的规则替换,当多个规则查找相同时,最表现为只执行了最后一规则。[[Special:MyLanguage#Syntax|除非禁用]],否则自动贴图会先将更改放入缓存再替换贴图层。
自动贴图时,从上往下读取规则每条规则依次自动执行替换:
* 规则一般以方块编号开头,并尾随一系列位置关系描述等替换条件;
* 扫描图层,将同时符合此条规则所有替换条件的图块替换成句首指定编号贴图(此时可能会覆盖先前规则替换位置,最表现为同一位置只执行了最后一规则
[[Special:MyLanguage/Automapper#Syntax|除非禁用图层缓存]],否则在同组规则执行时,会先暂时替换贴图的每个步骤放入缓存而非立即改变图层,先前执行规则发生的改变不会立即被后续规则扫描到,最后将所有变化应用于图层。

Latest revision as of 16:20, 8 February 2025

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Automapper)
The automapper will read the rules file and scan each '''position''' of the layer. If every rule of a selected tile applies, the tile will be placed at the scanned position of the automapper. If multiple tiles and their rules match, only the latest rule will apply (because it will be overwritten). [[#Syntax|Unless deactivated]], the automapper will put it's changes into a buffer first and apply them afterwards.

自动贴图时,从上往下读取规则组的每条规则依次自动执行替换:

  • 规则一般以方块编号开头,并尾随一系列位置关系描述等替换条件;
  • 扫描图层,将同时符合此条规则所有替换条件的图块替换成句首指定的编号贴图(此时可能会覆盖先前规则替换好的方块位置,最后表现为同一位置只执行了最后一条规则)。

除非禁用图层缓存,否则在同组规则执行时,会先暂时将替换贴图的每个步骤放入缓存而非立即改变图层,先前执行规则发生的改变不会立即被后续规则扫描到,最后再将所有变化应用于图层。