Valarian
March 11th, 2014, 23:37
Is it possible to do a descending sort in a list in the new structure?
I want to be able to sort the skills by skill level (highest first) and then by name.
<template name="list_charskill">
<list_text>
<datasource>.skilllist</datasource>
<class>char_skill</class>
<columns width="230" filldown="true"/>
<sortby>
<control>bonus</control> <!-- Descending -->
<control>label</control> <!-- Ascending -->
</sortby>
<newfocus>label</newfocus>
<script file="campaign/scripts/char_skilllist.lua"/>
</list_text>
</template>
I want to be able to sort the skills by skill level (highest first) and then by name.
<template name="list_charskill">
<list_text>
<datasource>.skilllist</datasource>
<class>char_skill</class>
<columns width="230" filldown="true"/>
<sortby>
<control>bonus</control> <!-- Descending -->
<control>label</control> <!-- Ascending -->
</sortby>
<newfocus>label</newfocus>
<script file="campaign/scripts/char_skilllist.lua"/>
</list_text>
</template>