This patch adds the #selectedindex property which returns the index of the currently selected item for skin creators to use if they wish. Note that if the selected item is "..", then an empty string is returned.
<control>
<description>Number of Files Label</description>
<type>fadelabel</type>
<id>0</id>
<posX>30</posX>
<posY>505</posY>
<width>220</width>
<label>#selectedindex/#itemcount</label>
<textcolor>ffa9d0f7</textcolor>
<visible>skin.string(#selectedindex)+skin.string(#itemcount)</visible>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>