Jump to content

Translations:Automapper/3/zh: Difference between revisions

From DDraceNetwork
No edit summary
Darkh (talk | contribs)
No edit summary
Line 1: Line 1:
每个包含自动贴图的方块集都有一个 ''tileset.rules'' 文件每个 ''tileset.rules'' 文件可以包含自动贴图。规则文件大致遵循 [https://en.wikipedia.org/wiki/INI_file INI 文件格式]文件中每个自动贴图以 <code>[automapper_name]</code> 开头。例如,在文件 ''grass_main.rules'' 中,有一名为 ''Grass'' 的自动贴图,它在文件中以 <code>[Grass]</code> 开头。要使用,您需要在地图编辑器中创建一个使用 ''grass_main'' 方块集的图层。右键单击 [https://wiki.ddnet.org/wiki/Mapping#Layers Layers] 并选择''“Auto map”'',然后点击''“Grass”''开始自动贴图。
贴图资源文件的自动贴图规则通常会写在一个文本文件中,后缀固定为'''.rules''',规则件名必须和资源文件名相同;每个'''贴图规则'''文件可以写入自动贴图规则规则文件大致遵循 [https://en.wikipedia.org/wiki/INI_file INI 文件格式]文件中每贴图规则方括号括住规则组的名字为首行,并附带多行具体规则于其后,首行语法为<code>[规则组名]</code>。例如,在文件'''grass_main.rules'''中,有一名为'''Grass''' 的贴图规则,它在文件中以 <code>[Grass]</code> 开头。要使用这组规则,您需要在地图编辑器中创建一个使用'''grass_main'''文件作为贴图资源图层:首先要新建一个[Special:MyLanguage/Mapping#Layers 贴图层](tile layer),然后右键单击此贴图层并选择资源图片(Image)为'''grass_main''',在此图层画好主体部分后,再次打开刚才的右键菜单并点击'''Auto Rule''',然后在下拉选项中选择'''Grass'''规则组,最后点击'''Auto map'''自动贴图。

Revision as of 13:31, 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)
There is a ''tileset.rules'' textfile for every tileset that has an automapper. Each ''tileset.rules'' file can contain multiple automappers. The rules file loosely follows the [https://en.wikipedia.org/wiki/INI_file INI-file-format]. Inside the file every automapper starts with the line <code>[automapper_name]</code>. For example in the file ''grass_main.rules'' there is an automapper called ''Grass'' which starts at the line <code>[Grass]</code> inside the file. To use it you have to create a tilelayer with the tileset ''grass_main'' in the mapeditor. Rightclick on the [https://wiki.ddnet.org/wiki/Mapping#Layers layer] and click on ''"Auto map"''. To start automapping click ''"Grass"''.

贴图资源文件的自动贴图规则通常会写在一个文本文件中,后缀固定为.rules,规则文件名必须和资源文件名相同;每个贴图规则文件内可以写入多组自动贴图规则。此规则文件大致遵循 INI 文件格式,文件中每组贴图规则以方括号括住规则组的名字为首行,并附带多行具体规则于其后,首行语法为[规则组名]。例如,在文件grass_main.rules中,有一组名为Grass 的贴图规则,它在文件中以 [Grass] 开头。要使用这组规则,您需要在地图编辑器中创建一个使用grass_main文件作为贴图资源的贴图层:首先要新建一个[Special:MyLanguage/Mapping#Layers 贴图层](tile layer),然后右键单击此贴图层并选择资源图片(Image)为grass_main,在此图层画好主体部分后,再次打开刚才的右键菜单并点击Auto Rule,然后在下拉选项中选择Grass规则组,最后点击Auto map自动贴图。