Erkenfresh
March 6th, 2015, 04:16
I'm trying to create a windowlist with two columns filled with items. Here's the definition of each item:
<windowclass name="charsheet_characteristic">
<sizelimits>
<maximum>
<height>28</height>
</maximum>
<minimum>
<height>28</height>
</minimum>
</sizelimits>
I then have a tab on my character sheet with these elements:
<genericcontrol name="characteristicframe">
<bounds>15,20,550,430</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
...
<template name="list_charmaincharacteristics">
<windowlist>
<datasource>.characteristics</datasource>
<class>charsheet_characteristic</class>
<allowcreate />
<allowdelete />
<noscroll />
<sortby><field>order</field></sortby>
<script file="campaign/scripts/char_characteristics.lua" />
</windowlist>
</template>
...
<list_charmaincharacteristics name="characteristics">
<anchored>
<to>characteristicframe</to>
<position>over</position>
<offset>-15,-20</offset>
</anchored>
<columns>
<width>250</width>
<filldown />
</columns>
</list_charmaincharacteristics>
So I try to load this windowlist with 26 items. The first column has 14 items and the second column has 12 items. The only way for me to "fix" this is to insert a bogus item at the 13th position to push 14-26 to the correct column.
Does anybody know what could be wrong here?
<windowclass name="charsheet_characteristic">
<sizelimits>
<maximum>
<height>28</height>
</maximum>
<minimum>
<height>28</height>
</minimum>
</sizelimits>
I then have a tab on my character sheet with these elements:
<genericcontrol name="characteristicframe">
<bounds>15,20,550,430</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
...
<template name="list_charmaincharacteristics">
<windowlist>
<datasource>.characteristics</datasource>
<class>charsheet_characteristic</class>
<allowcreate />
<allowdelete />
<noscroll />
<sortby><field>order</field></sortby>
<script file="campaign/scripts/char_characteristics.lua" />
</windowlist>
</template>
...
<list_charmaincharacteristics name="characteristics">
<anchored>
<to>characteristicframe</to>
<position>over</position>
<offset>-15,-20</offset>
</anchored>
<columns>
<width>250</width>
<filldown />
</columns>
</list_charmaincharacteristics>
So I try to load this windowlist with 26 items. The first column has 14 items and the second column has 12 items. The only way for me to "fix" this is to insert a bogus item at the 13th position to push 14-26 to the correct column.
Does anybody know what could be wrong here?