-
August 2nd, 2017, 17:05 #1
Duplication of content in windowlist
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:
Code:<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>
Any help would be great.
-
August 3rd, 2017, 20:48 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
I would think that you would only get two instances of the same record, if you have two identical data sources for the windowlist, or you have a script populating the list as well as a data source.
There is already a set of window class definitions for pregen character selection in CoreRPG. I would just borrow those wholesale.
(See "pregencharselect" window class in CoreRPG inside ref/ref_pregenchar.xml file.)
Regards,
JPG
-
August 3rd, 2017, 21:15 #3
Hi JPG,
Thanks for the input.. and that is largely what I have done. I took equal parts CoreRPG pregen and EotE Character List. Pregen mostly to get the behavior and references as best I can and then EotE Character List for the layout so it fit well with the rest of the ruleset. I updated it a bit to show the node path for the source and the paths and they are identical, including pointing to the module such as: pregencharsheet.char1@MyModule
I have been looking for any scripts that might be trying to populate the content as well but will take another closer look at those next.
-
August 3rd, 2017, 21:57 #4
So... as was suggested the problem WAS two datasources.. within one of the frames I had entered it twice.. once at the beginning and once near the end and just kept overlooking it somehow. I've got it all working now. I'll be working on updating the extension thread in the next few days.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks