PDA

View Full Version : Adding a New Character Sheet



mr_h
July 13th, 2006, 02:40
I'm working on a ruleset for the Top Secret SI game, and I'm to the point where I want to mess around with the character sheet. I've already made the images (six seperate pngs), I've placed them into the appropiate directories, and I can even get FG to show one instead of the traditional D20 sheet.

The problem is, it cuts off the right side. You can see it in this picture:
https://supernovagaming.com/~mrh/CharSheet-Cutoff.png

It's obvious that the right side has been cut off (The full shot is here (https://supernovagaming.com/~mrh/TSSI/TSSI-CharSheet-Bio.png).

I'm working off the d20 ruleset that came with the program, as a reference tool (everything's getting changed, but you have to learn somewhere). The appropiate entry into graphics.xml is:


<framedef name="charsheet_main">
<bitmap file="rulesets\tssi\frames\charsheet_bio.png" />
<topleft rect="0,0,0,0" />
<top rect="0,0,0,0" />
<topright rect="0,0,0,0" />
<left rect="0,0,0,0" />
<middle rect="0,0,600,685" />
<right rect="0,0,0,0" />
<bottomleft rect="0,0,0,0" />
<bottom rect="0,0,0,0" />
<bottomright rect="0,0,0,0" />
</framedef>


The middle rect field seemed to be what decieded how large the image was, but it doesn't matter what data I put into it, it still cuts off the right side.

I also edited the default width/height on the charsheet.xml section. Again, it doesn't matter what numbers I put in.

I know I'm probably missing something simple, but I'll be darned if I can find it. A lil help?

Thanks
H

Cantstanzya
July 13th, 2006, 03:46
In your charsheet.xml file there is a setting for each individual sheet like this:


<root>
<windowclass name="charsheet_main">
<frame name="charsheet_main" />
<datasource name="charsheet" />
<defaultsize width="600" height="685" />
<sheetdata>
ect.......


Then there should be a section like this:


<windowclass name="charsheet">
<datasource name="charsheet" />
<defaultsize width="600" height="685" />
<defaultposition x="415" y="50" />
<minimize />
<nodelete />
<playercontrol />
<sheetdata>
ect......

Change both of these to the correct size and you should be on your way.

Nice Graphics!!!!!

mr_h
July 13th, 2006, 14:50
Haha! That did it...I knew I was missing something. Thanks.