Valarian
April 7th, 2007, 16:22
Hi, I've hit my second problem and can't see where the difficulty lies. Can anyone please help?
I'm trying to amend the feats.xml so that I can have multiple nodes shown in the Reference window - the same as with classes.xml and equipment.xml currently. I could get around the problem by trying to add another xml file, but ideally I'd like to know why this isn't working.
I've amended the d20_reference.xml feats windowclass as follows, using the equipment windowclass above as a reference
<windowclass name="feats">
<datasource name="feats" />
<frame name="referencebox" />
<dynamic resize="vertical" />
<defaultsize width="500" height="650" />
<minimize icon="minimized_reference" />
<tooltip field="name" />
<sheetdata>
<formattedtextcontrol name="text">
<bounds rect="25,15,-30,-20" />
<font normal="chatfont" bold="narratorfont" italic="chatitalicfont" bolditalic="chatbolditalicfont" title="titlefont" />
<icon link="button_openwindow" emptylink="button_emptytarget" />
<footer image="footer_wide" />
</formattedtextcontrol>
<scroller>
<bounds rect="-63,-45,45,27" />
<target name="text" />
<button normal="button_scroller" pressed="button_scroller_down" />
</scroller>
</sheetdata>
</windowclass>
<windowclass name="featssmall">
<datasource name="feats" />
<defaultsize width="200" height="27" />
<sheetdata>
<windowopencontrol name="open">
<icon normal="button_openwindow2" pressed="button_openwindow2down" />
<bounds rect="0,0,24,24" />
<class name="feats" />
<description field="name" />
</windowopencontrol>
<stringcontrol name="name">
<bounds rect="30,2,120,20" />
<link handler="open" underlineoffset="-2" />
</stringcontrol>
</sheetdata>
</windowclass>
In the feats.xml, I have two inner nodes (inside the first feats node). I've called these "1feats" and "2feats" - shown below (without the content as not OGL). Whichever node I name "1feats" is the one that is shown, the other is ignored.
<root>
<node name="feats">
<node name="1feats">
<stringvalue name="name" value="Skills" />
<formattedtext name="text">
...CONTENT GOES HERE...
</formattedtext>
</node>
<node name="2feats">
<stringvalue name="name" value="The Force" />
<formattedtext name="text">
...CONTENT GOES HERE...
</formattedtext>
</node>
</node>
</root>
I'm trying to amend the feats.xml so that I can have multiple nodes shown in the Reference window - the same as with classes.xml and equipment.xml currently. I could get around the problem by trying to add another xml file, but ideally I'd like to know why this isn't working.
I've amended the d20_reference.xml feats windowclass as follows, using the equipment windowclass above as a reference
<windowclass name="feats">
<datasource name="feats" />
<frame name="referencebox" />
<dynamic resize="vertical" />
<defaultsize width="500" height="650" />
<minimize icon="minimized_reference" />
<tooltip field="name" />
<sheetdata>
<formattedtextcontrol name="text">
<bounds rect="25,15,-30,-20" />
<font normal="chatfont" bold="narratorfont" italic="chatitalicfont" bolditalic="chatbolditalicfont" title="titlefont" />
<icon link="button_openwindow" emptylink="button_emptytarget" />
<footer image="footer_wide" />
</formattedtextcontrol>
<scroller>
<bounds rect="-63,-45,45,27" />
<target name="text" />
<button normal="button_scroller" pressed="button_scroller_down" />
</scroller>
</sheetdata>
</windowclass>
<windowclass name="featssmall">
<datasource name="feats" />
<defaultsize width="200" height="27" />
<sheetdata>
<windowopencontrol name="open">
<icon normal="button_openwindow2" pressed="button_openwindow2down" />
<bounds rect="0,0,24,24" />
<class name="feats" />
<description field="name" />
</windowopencontrol>
<stringcontrol name="name">
<bounds rect="30,2,120,20" />
<link handler="open" underlineoffset="-2" />
</stringcontrol>
</sheetdata>
</windowclass>
In the feats.xml, I have two inner nodes (inside the first feats node). I've called these "1feats" and "2feats" - shown below (without the content as not OGL). Whichever node I name "1feats" is the one that is shown, the other is ignored.
<root>
<node name="feats">
<node name="1feats">
<stringvalue name="name" value="Skills" />
<formattedtext name="text">
...CONTENT GOES HERE...
</formattedtext>
</node>
<node name="2feats">
<stringvalue name="name" value="The Force" />
<formattedtext name="text">
...CONTENT GOES HERE...
</formattedtext>
</node>
</node>
</root>