shikage
August 2nd, 2017, 17:05
I am working on implementing CoreRPG style support for Pregen characters as part of my Reference Library extension for the Star Wars EotE ruleset. I have this almost entirely working now except that I see two copies of each pregen within the Pregen List window.
The most relevant controls for this are:
<windowlist name="list">
<bounds>50,43,470,370</bounds>
<datasource>.</datasource>
<class>pregencharselect_entry</class>
<columns>
<width>235</width>
<fillwidth />
</columns>
<datasource>.</datasource>
<readonly />
</windowlist>
<windowclass name="pregencharselect_entry">
<frame>modifier</frame>
<sizelimits>
<minimum height="92" />
<maximum width="235" />
</sizelimits>
<sheetdata>
<genericcontrol name="portraitbase">
<bounds>10,10,72,72</bounds>
<disabled />
<icon>charlist_base</icon>
</genericcontrol>
<genericcontrol name="portrait">
<bounds>10,10,72,72</bounds>
<disabled />
</genericcontrol>
<stringfield name="name">
<bounds>90,11,-10,20</bounds>
<font>sheettext</font>
<empty>« Unnamed »</empty>
<disabled />
</stringfield>
<stringcontrol name="details">
<anchored to="name" position="belowleft">
<right />
</anchored>
<multilinespacing>20</multilinespacing>
<font>chatfont</font>
<disabled />
</stringcontrol>
<stringcontrol name="source">
<anchored to="details" position="belowleft">
<right />
</anchored>
<multilinespacing>20</multilinespacing>
<font>chatfont</font>
<disabled />
</stringcontrol>
</sheetdata>
</windowclass>
I have created a character, exported the XML for the character and copied it into the <pregencharsheet> portion of my module. Then removed the character from the campaign. When the pregen window is displayed however, it has two instances of the character listed. If I copy the XML for the character, paste it in a second time then I end up with 4 instances. The two copies of each character are always on the same row so it could be I am overlooking something in how these columns work and instead of getting one entry per column I am getting one per row duplicated to fill the width.. but I am not sure.
Any help would be great.
The most relevant controls for this are:
<windowlist name="list">
<bounds>50,43,470,370</bounds>
<datasource>.</datasource>
<class>pregencharselect_entry</class>
<columns>
<width>235</width>
<fillwidth />
</columns>
<datasource>.</datasource>
<readonly />
</windowlist>
<windowclass name="pregencharselect_entry">
<frame>modifier</frame>
<sizelimits>
<minimum height="92" />
<maximum width="235" />
</sizelimits>
<sheetdata>
<genericcontrol name="portraitbase">
<bounds>10,10,72,72</bounds>
<disabled />
<icon>charlist_base</icon>
</genericcontrol>
<genericcontrol name="portrait">
<bounds>10,10,72,72</bounds>
<disabled />
</genericcontrol>
<stringfield name="name">
<bounds>90,11,-10,20</bounds>
<font>sheettext</font>
<empty>« Unnamed »</empty>
<disabled />
</stringfield>
<stringcontrol name="details">
<anchored to="name" position="belowleft">
<right />
</anchored>
<multilinespacing>20</multilinespacing>
<font>chatfont</font>
<disabled />
</stringcontrol>
<stringcontrol name="source">
<anchored to="details" position="belowleft">
<right />
</anchored>
<multilinespacing>20</multilinespacing>
<font>chatfont</font>
<disabled />
</stringcontrol>
</sheetdata>
</windowclass>
I have created a character, exported the XML for the character and copied it into the <pregencharsheet> portion of my module. Then removed the character from the campaign. When the pregen window is displayed however, it has two instances of the character listed. If I copy the XML for the character, paste it in a second time then I end up with 4 instances. The two copies of each character are always on the same row so it could be I am overlooking something in how these columns work and instead of getting one entry per column I am getting one per row duplicated to fill the width.. but I am not sure.
Any help would be great.