bmathis
March 8th, 2005, 04:18
Hi, I'm fairly new here but I've been lurking for a few weeks. I've recently run a game of FG but we came up with some things we wanted to add to the character sheet to keep track of. I do web development and am familiar with XML so I took a look at the xml data and tried a few things. I've managed to get it to load up but I'm having some problems.
I created a new ruleset and in the base.xml pointed it to my modified charsheet. It downloads to the players so I think this part is right.
1> I'm trying to add a new tab/window to the character sheet to store the extra info we want. I added a new <windowclass> node and put in a datasource, default size and sheet data entry. in the sheetdata i put in a stringcontrol.
I then went to the area with <subwindow> and added an entry there (added 94 to the position) and put in a windowchangecontrol entry.
I then loaded up FG but I didn't notice any change. Doesn't give me any errors though either.
2> I was looking to see where the monster reference sheet definition is located but I can't seem to find it. I found the monster db, but I wanted to edit the sheet definition to reference a new piece of data for each monster.
Here is the code I used in the Charsheet:
<windowclass name="charsheet_background">
<frame name="charsheet_background" />
<datasource name="charsheet" />
<defaultsize width="550" height="685" />
<sheetdata>
<stringcontrol name="backgroundnotes">
<bounds rect="245,5,268,20" />
</stringcontrol>
</sheetdata>
</windowclass>
and then in the area with the subwindows i put in:
<subwindow name="5background">
<class name="charsheet_background" />
</subwindow>
<windowchangecontrol>
<bounds rect="530,386,15,89" />
<target name="5background" />
</windowchangecontrol>
I'm wondering if there is another place to define the side tabs or images that go with them?
I was also just trying to get the tab/window to show up, I imagine I have the wrong stringcontrol definition/size in there to get a list of lines like the inventory box.
Thanks for any assistance,
Brandon
I created a new ruleset and in the base.xml pointed it to my modified charsheet. It downloads to the players so I think this part is right.
1> I'm trying to add a new tab/window to the character sheet to store the extra info we want. I added a new <windowclass> node and put in a datasource, default size and sheet data entry. in the sheetdata i put in a stringcontrol.
I then went to the area with <subwindow> and added an entry there (added 94 to the position) and put in a windowchangecontrol entry.
I then loaded up FG but I didn't notice any change. Doesn't give me any errors though either.
2> I was looking to see where the monster reference sheet definition is located but I can't seem to find it. I found the monster db, but I wanted to edit the sheet definition to reference a new piece of data for each monster.
Here is the code I used in the Charsheet:
<windowclass name="charsheet_background">
<frame name="charsheet_background" />
<datasource name="charsheet" />
<defaultsize width="550" height="685" />
<sheetdata>
<stringcontrol name="backgroundnotes">
<bounds rect="245,5,268,20" />
</stringcontrol>
</sheetdata>
</windowclass>
and then in the area with the subwindows i put in:
<subwindow name="5background">
<class name="charsheet_background" />
</subwindow>
<windowchangecontrol>
<bounds rect="530,386,15,89" />
<target name="5background" />
</windowchangecontrol>
I'm wondering if there is another place to define the side tabs or images that go with them?
I was also just trying to get the tab/window to show up, I imagine I have the wrong stringcontrol definition/size in there to get a list of lines like the inventory box.
Thanks for any assistance,
Brandon