Thread: Creating custom rules set
-
March 17th, 2007, 06:36 #1
- Join Date
- Mar 2007
- Posts
- 10
Creating custom rules set
I'm digging into the rules set stuff while working on my Tribe 8 character sheet, and I have some weirdness that I can't figure out:
Here is my silcore_reference.xml file :
Code:<root> <windowclass name="referenceroot"> <frame name="referenceroot" /> <defaultsize width="480" height="398" /> <sheetdata> <windowlist class="skillssmall"> <bounds rect="33,43,200,325" /> </windowlist> </sheetdata> </windowclass> <windowclass name="skill"> <datasource name="skill" /> <frame name="referencebox" /> <dynamic resize="vertical" /> <defaultsize width="540" height="650" /> <minimize icon="minimized_reference" /> <tooltip field="name" /> <sheetdata> <windowopencontrol> <icon normal="button_dragtarget" /> <bounds rect="25,20,20,20" /> <class name="class" /> </windowopencontrol> <stringcontrol name="name"> <bounds rect="50,20,300,20" /> </stringcontrol> <formattedtextcontrol name="text"> <bounds rect="25,50,-30,-20" /> <font normal="chatfont" bold="narratorfont" italic="chatitalicfont" bolditalic="chatbolditalicfont" title="titlefont" /> <linkicon 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="skillssmall"> <datasource name="skill" /> <defaultsize width="200" height="27" /> <sheetdata> <windowopencontrol name="open"> <icon normal="button_openwindow2" pressed="button_openwindow2down" /> <bounds rect="0,0,24,24" /> <class name="skill" /> <description field="name" /> </windowopencontrol> <stringcontrol name="name"> <bounds rect="30,2,120,20" /> <link handler="open" underlineoffset="-2" /> </stringcontrol> </sheetdata> </windowclass> </root>
Code:<root> <node name="skill"> <node name="skills"> <stringvalue name="name" value="Skills" /> <formattedtext name="text"> <linklist> <link class="spelllist" recordname="druid">Druid spell list</link> </linklist> </formattedtext> </node> </node> </root>
-
March 17th, 2007, 18:21 #2
Perhaps its just me, but it is unclear what problem you're experiencing from this. You've provided a screen shot and a couple of code snippets so what isn't working for you? The spell list not opening for you when you click on skills? Are you expecting to see more than you actually are in your screenshot? Need more information
-
March 17th, 2007, 21:06 #3
- Join Date
- Mar 2007
- Posts
- 10
Originally Posted by sloejack
-
March 18th, 2007, 04:03 #4
Ok, that's a little puzzling. It would suggest that the drawing of those buttons is controlled other than the d20_reference.xml though for the life of me at the moment I don't see where. Something that obviously has the button coordinates from the original layout. I'll look around some more in the morning but for now, I'm as puzzled as you as to why they would remain.
-
March 19th, 2007, 00:59 #5
I know you are stripping and rebuilding to learn but it might be better to start with the base.xml and build only your own files in there from scratch. It may take longer but it will prevent any kind of old code lying around to foul you up.
-
March 19th, 2007, 22:58 #6
- Join Date
- Mar 2007
- Posts
- 10
Originally Posted by joshuha
-
March 20th, 2007, 00:37 #7
Back to your problem though, I seem to recall the buttons are repeated over the rectangle used to draw them. If the rectangle Y coordiantes are too big it might be repeating the button icon. I havent been dealing with 1.05 code in awhile though so I could be wrong.
-
March 20th, 2007, 01:21 #8
- Join Date
- Mar 2007
- Posts
- 10
Originally Posted by joshuha
-
March 20th, 2007, 02:59 #9Originally Posted by WilCode:
<sheetdata> <windowlist class="skillssmall"> <bounds rect="33,43,200,325" /> </windowlist> </sheetdata>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks