kelebros
January 5th, 2018, 01:53
Ok, so my goal is to have a setup in the Library that mimics that way the the 5E PHB and SRD show the Equipment.
Namely, when the Equipment link is clicked in the right hand window of the library a (presumably reference_list) window pops up with links to the equipment types (e.g. Armor, Weapons, etc.) Those links further open other windows with the equipment type. I've been able to create a link to a reference_list of items successfully, that seems intuitive with regards to the needed <displayclass> and <source> tags needed for the reference_list windowclass. What I'm struggling with is getting a list of links into the reference_list window. Below is what I've got so far, I've been trying different values for the <displayclass> tag, but haven't managed to find the right one yet. Any assistance is appreciated.
Thanks,
Kel
<snip>
<library static="true">
<hb5e static="true">
<categoryname type="string">Core Rules</categoryname>
<name type="string">hb5e</name>
<entries>
<item>
<librarylink type="windowreference">
<class>reference_list</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Equipment</name>
<source type="string">lists.equipment_types@HB-5E</source>
<displayclass type="string">reference_list_item</displayclass>
</item>
</snip>
<snip>
<lists>
<equipment_types>
<name type="string">Equipment</name>
<index>
<id-00001>
<listlink type="windowreference">
<class>reference_mountsandotheranimalstable</class>
<recordname>reference.equipmentdata.id-00005@HB-5E</recordname>
</listlink>
<name type="string">Mounts and Other Animals</name>
</id-00001>
</index>
</equipment_types>
</snip>
This gets me this behavior (before click):
21872
After click:
21873
Namely, when the Equipment link is clicked in the right hand window of the library a (presumably reference_list) window pops up with links to the equipment types (e.g. Armor, Weapons, etc.) Those links further open other windows with the equipment type. I've been able to create a link to a reference_list of items successfully, that seems intuitive with regards to the needed <displayclass> and <source> tags needed for the reference_list windowclass. What I'm struggling with is getting a list of links into the reference_list window. Below is what I've got so far, I've been trying different values for the <displayclass> tag, but haven't managed to find the right one yet. Any assistance is appreciated.
Thanks,
Kel
<snip>
<library static="true">
<hb5e static="true">
<categoryname type="string">Core Rules</categoryname>
<name type="string">hb5e</name>
<entries>
<item>
<librarylink type="windowreference">
<class>reference_list</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Equipment</name>
<source type="string">lists.equipment_types@HB-5E</source>
<displayclass type="string">reference_list_item</displayclass>
</item>
</snip>
<snip>
<lists>
<equipment_types>
<name type="string">Equipment</name>
<index>
<id-00001>
<listlink type="windowreference">
<class>reference_mountsandotheranimalstable</class>
<recordname>reference.equipmentdata.id-00005@HB-5E</recordname>
</listlink>
<name type="string">Mounts and Other Animals</name>
</id-00001>
</index>
</equipment_types>
</snip>
This gets me this behavior (before click):
21872
After click:
21873