PDA

View Full Version : Page width for library books



Hamish
August 10th, 2007, 13:10
I'm trying to find out how to increase the page width for items in the library books like, for example, the description of a race. I've checked a lot of XML already, I'm guessing it should be in reference_basicclasses.xml, but I just can't find the setting to modify.
Anyone know?

sloejack
August 10th, 2007, 13:25
To clarify here, are you trying to change the graphical frame for the information, or just use a wider frame class than referencetext ?

Hamish
August 10th, 2007, 13:28
I don't understand the question, I think. I want the frame that displays the information about a race to be wider. I don't want to change the background picture of the window if that's what you're asking.

sloejack
August 11th, 2007, 01:27
Well, you have two problems. The first is that you don't understand what I asked. The second is that you'll need to figure it out to determine how to solve your problem. Regardless I'll go into the gory details and hopefully that will help.

First, the races window uses the class referenceinlineindex. This window is defined in the d20 ruleset in the reference_basicclasses.xml. You have two option, you can either create a custom ruleset based off of the d20 one and modify line 722 of the reference_basicclasses.xml file to make the frame wider than 300. This oddly enough may be the easiest solution but since the ruleset will have to be replicated to everyone you play with, it might be the most annoying since you will no longer catch any d20 ruleset updates pushed out by smiteworks.

The second and more difficult option will be to go into the d20basicrules.mod and modify the client.xml file. First you'll want to change line 10 to read as follows

<class>referenceindex</class>
Next you'll need to add a line like the following to each of the races so at lines 16, 29, 51, 66, 87, 104, and 119 add the following line:

<listlink type="windowreference"><class>referencetextwide</class><recordname>..</recordname></listlink>
Save your changes back into the d20basicrules.mod or probably more correctly, save it into your custom20rules.mod file and now when you click on races instead of having hide and unhide options for each race, each race will spawn into it's own widest possible window in the default d20 ruleset.