Add _map{,-else}_/@to-index@
parent
6a9b9bf2e5
commit
286e7242ab
16
core/map.xml
16
core/map.xml
|
@ -64,6 +64,10 @@
|
|||
<param name="@value@" desc="Constant to map to" />
|
||||
<param name="@to@" desc="Named value (use instead of @value@)" />
|
||||
|
||||
<param name="@to-index@" desc="Named value index">
|
||||
<text></text>
|
||||
</param>
|
||||
|
||||
<param name="@type@" desc="Constant value type">
|
||||
<text>float</text>
|
||||
</param>
|
||||
|
@ -80,6 +84,7 @@
|
|||
<param-inherit meta="map_index" />
|
||||
</param>
|
||||
|
||||
|
||||
<c:case>
|
||||
<!-- index provided -->
|
||||
<if name="@index@">
|
||||
|
@ -102,8 +107,7 @@
|
|||
<c:const value="@value@" type="@type@" desc="@desc@" />
|
||||
</if>
|
||||
<unless name="@value@">
|
||||
<!-- TODO: index support -->
|
||||
<c:value-of name="@to@" />
|
||||
<c:value-of name="@to@" index="@to-index@" />
|
||||
</unless>
|
||||
</c:case>
|
||||
</template>
|
||||
|
@ -113,13 +117,17 @@
|
|||
<param name="@value@" desc="Constant to map to" />
|
||||
<param name="@to@" desc="Named value (use instead of @value@)" />
|
||||
|
||||
<param name="@to-index@" desc="Named value index">
|
||||
<text></text>
|
||||
</param>
|
||||
|
||||
|
||||
<c:otherwise>
|
||||
<if name="@value@">
|
||||
<c:const value="@value@" type="float" desc="@desc@" />
|
||||
</if>
|
||||
<unless name="@value@">
|
||||
<!-- TODO: index support -->
|
||||
<c:value-of name="@to@" />
|
||||
<c:value-of name="@to@" index="@to-index@" />
|
||||
</unless>
|
||||
</c:otherwise>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue