Ghingis
January 24th, 2006, 03:38
I am creating a custom ruleset and am stuck trying to create two windowlist controls on the same sheet. When I right click to add a new item, two items show up, one in each windowlist.
Here is the sheet:
<windowclass name="charsheet_combat">
<frame name="frame_charsheet_combat"></frame>
<datasource name="charsheet"></datasource>
<defaultsize height="685" width="550"></defaultsize>
<sheetdata>
<windowlist class="charsheet_armour_entry" name="armour_list">
<allowcreate></allowcreate>
<allowdelete></allowdelete>
<nestdata/>
<bounds rect="53,413,447,50"></bounds>
</windowlist>
<scroller>
<bounds rect="453,467,45,11"></bounds>
<target name="armour_list"></target>
<button normal="button_scroller" pressed="button_scroller_down"></button>
</scroller>
<windowlist class="charsheet_weapon_entry" name="weapon_list">
<allowcreate></allowcreate>
<allowdelete></allowdelete>
<nestdata/>
<bounds rect="53,540,447,60"></bounds>
</windowlist>
<scroller>
<bounds rect="453,603,45,11"></bounds>
<target name="weapon_list"></target>
<button normal="button_scroller" pressed="button_scroller_down"></button>
</scroller>
</sheetdata>
</windowclass>
<windowclass name="charsheet_armour_entry">
<frame name="frame_charsheet_combat_armour_entry"></frame>
<defaultsize height="20" width="447"></defaultsize>
<sheetdata>
<stringcontrol name="name">
<bounds rect="0,0,50,20"></bounds>
<tabtarget next="race" prev="previousCareer"></tabtarget>
</stringcontrol>
</sheetdata>
</windowclass>
<windowclass name="charsheet_weapon_entry">
<frame name="frame_charsheet_combat_weapon_entry"></frame>
<defaultsize height="20" width="447"></defaultsize>
<sheetdata></sheetdata>
</windowclass>
Here are the frame definitions:
<framedef name="frame_charsheet_combat_armour_entry">
<bitmap file="rulesets\Warhammer\frames\WH_charsheet_combat_armo ur_entry.png"></bitmap>
<topleft rect="0,0,0,0"></topleft>
<top rect="0,0,0,0"></top>
<topright rect="0,0,0,0"></topright>
<left rect="0,0,0,0"></left>
<middle rect="0,0,447,20"></middle>
<right rect="0,0,0,0"></right>
<bottomleft rect="0,0,0,0"></bottomleft>
<bottom rect="0,0,0,0"></bottom>
<bottomright rect="0,0,0,0"></bottomright>
</framedef>
<framedef name="frame_charsheet_combat_weapon_entry">
<bitmap file="rulesets\Warhammer\frames\WH_charsheet_combat_weap on_entry.png"></bitmap>
<topleft rect="0,0,0,0"></topleft>
<top rect="0,0,0,0"></top>
<topright rect="0,0,0,0"></topright>
<left rect="0,0,0,0"></left>
<middle rect="0,0,447,20"></middle>
<right rect="0,0,0,0"></right>
<bottomleft rect="0,0,0,0"></bottomleft>
<bottom rect="0,0,0,0"></bottom>
<bottomright rect="0,0,0,0"></bottomright>
</framedef>
Thanks in advance
Ghingis
Here is the sheet:
<windowclass name="charsheet_combat">
<frame name="frame_charsheet_combat"></frame>
<datasource name="charsheet"></datasource>
<defaultsize height="685" width="550"></defaultsize>
<sheetdata>
<windowlist class="charsheet_armour_entry" name="armour_list">
<allowcreate></allowcreate>
<allowdelete></allowdelete>
<nestdata/>
<bounds rect="53,413,447,50"></bounds>
</windowlist>
<scroller>
<bounds rect="453,467,45,11"></bounds>
<target name="armour_list"></target>
<button normal="button_scroller" pressed="button_scroller_down"></button>
</scroller>
<windowlist class="charsheet_weapon_entry" name="weapon_list">
<allowcreate></allowcreate>
<allowdelete></allowdelete>
<nestdata/>
<bounds rect="53,540,447,60"></bounds>
</windowlist>
<scroller>
<bounds rect="453,603,45,11"></bounds>
<target name="weapon_list"></target>
<button normal="button_scroller" pressed="button_scroller_down"></button>
</scroller>
</sheetdata>
</windowclass>
<windowclass name="charsheet_armour_entry">
<frame name="frame_charsheet_combat_armour_entry"></frame>
<defaultsize height="20" width="447"></defaultsize>
<sheetdata>
<stringcontrol name="name">
<bounds rect="0,0,50,20"></bounds>
<tabtarget next="race" prev="previousCareer"></tabtarget>
</stringcontrol>
</sheetdata>
</windowclass>
<windowclass name="charsheet_weapon_entry">
<frame name="frame_charsheet_combat_weapon_entry"></frame>
<defaultsize height="20" width="447"></defaultsize>
<sheetdata></sheetdata>
</windowclass>
Here are the frame definitions:
<framedef name="frame_charsheet_combat_armour_entry">
<bitmap file="rulesets\Warhammer\frames\WH_charsheet_combat_armo ur_entry.png"></bitmap>
<topleft rect="0,0,0,0"></topleft>
<top rect="0,0,0,0"></top>
<topright rect="0,0,0,0"></topright>
<left rect="0,0,0,0"></left>
<middle rect="0,0,447,20"></middle>
<right rect="0,0,0,0"></right>
<bottomleft rect="0,0,0,0"></bottomleft>
<bottom rect="0,0,0,0"></bottom>
<bottomright rect="0,0,0,0"></bottomright>
</framedef>
<framedef name="frame_charsheet_combat_weapon_entry">
<bitmap file="rulesets\Warhammer\frames\WH_charsheet_combat_weap on_entry.png"></bitmap>
<topleft rect="0,0,0,0"></topleft>
<top rect="0,0,0,0"></top>
<topright rect="0,0,0,0"></topright>
<left rect="0,0,0,0"></left>
<middle rect="0,0,447,20"></middle>
<right rect="0,0,0,0"></right>
<bottomleft rect="0,0,0,0"></bottomleft>
<bottom rect="0,0,0,0"></bottom>
<bottomright rect="0,0,0,0"></bottomright>
</framedef>
Thanks in advance
Ghingis