Add help comments to WallPiece component schema

Also resolves whitespace issue in WallSet component breaking structree
and rmgen
wallbuilder when wall curve pieces are listed separated with newlines (&
tabs)
instead of single spaces.

Requested by: Nescio
Refs: #2944, D900

This was SVN commit r23684.
This commit is contained in:
s0600204 2020-05-21 04:34:13 +00:00
parent b8be438472
commit da35f63279
3 changed files with 6 additions and 6 deletions

View File

@ -467,7 +467,7 @@ function GetTemplateDataHelper(template, player, auraTemplates, modifiers = {})
if (template.WallSet.Templates.WallEnd)
ret.wallSet.templates.end = template.WallSet.Templates.WallEnd;
if (template.WallSet.Templates.WallCurves)
ret.wallSet.templates.curves = template.WallSet.Templates.WallCurves.split(" ");
ret.wallSet.templates.curves = template.WallSet.Templates.WallCurves.split(/\s+/);
}
if (template.WallPiece)

View File

@ -4,21 +4,21 @@ WallPiece.prototype.Schema =
"<a:help></a:help>" +
"<a:example>" +
"</a:example>" +
"<element name='Length'>" +
"<element name='Length' a:help='Measured in Terrain Tiles. Used in rmgen wallbuilder and the in-game wall-placer.'>" +
"<ref name='nonNegativeDecimal'/>" +
"</element>" +
"<optional>" +
"<element name='Orientation'>" +
"<element name='Orientation' a:help='Radians. Default: 1. Used in rmgen wallbuilder. The angle to rotate the wallpiece so it is orientated the same way as every other wallpiece: with the \"line\" of the wall running along a map&apos;s `z` axis and the \"outside face\" towards positive `x`. If the piece bends (see below), the orientation should be that of the start of the wallpiece, not the middle.'>" +
"<ref name='nonNegativeDecimal'/>" +
"</element>" +
"</optional>" +
"<optional>" +
"<element name='Indent'>" +
"<element name='Indent' a:help='Measured in Terrain Tiles. Default: 0. Used in rmgen wallbuilder. Permits piece to be placed in front, behind, or inline with a wall.'>" +
"<data type='decimal'/>" +
"</element>" +
"</optional>" +
"<optional>" +
"<element name='Bend'>" +
"<element name='Bend' a:help='Radians. Default: 0. Used in rmgen wallbuilder. Defines the angle that the wallpiece bends or curves across its length.'>" +
"<data type='decimal'/>" +
"</element>" +
"</optional>";

View File

@ -22,7 +22,7 @@ WallSet.prototype.Schema =
"<text/>" +
"</element>" +
"<optional>" +
"<element name='WallCurves' a:help='Space-separated list of template names of curving wall segments.'>" +
"<element name='WallCurves' a:help='Whitespace-separated list of template names of curving wall segments.'>" +
"<text/>" +
"</element>" +
"</optional>" +