PDA

View Full Version : Adding Tabs to Character Sheet



mr_h
July 15th, 2006, 13:50
I am attempting to add the 'tabs' to my character sheet so you can move between the six different pages, but I'm having a few issues. From what I can find in the other character sheets you have to do a couple of things.

First you have to make sure the graphics are included in your graphics file. This I have done:
graphics.xml


<framedef name="charsheet_bio">
<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>

<framedef name="charsheet_vitals">
<bitmap file="rulesets\tssi\frames\charsheet_vitals.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>

<framedef name="charsheet_skills">
<bitmap file="rulesets\tssi\frames\charsheet_skills.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>

<framedef name="charsheet_combat">
<bitmap file="rulesets\tssi\frames\charsheet_combat.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>

<framedef name="charsheet_gear">
<bitmap file="rulesets\tssi\frames\charsheet_gear.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>

<framedef name="charsheet_covers">
<bitmap file="rulesets\tssi\frames\charsheet_covers.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>


Next you have to add a section in the charsheet.xml that lists where the tabs are. Done this as well



<windowclass name="charsheet">
<datasource name="charsheet" />
<defaultsize width="600" height="685" />
<defaultposition x="415" y="50" />
<minimize />
<nodelete />
<playercontrol />
<sheetdata>
<subwindow name="1bio">
<class name="charsheet_bio" />
<activate />
</subwindow>
<subwindow name="2vitals">
<class name="charsheet_vitals" />
</subwindow>
<subwindow name="3skills">
<class name="charsheet_skills" />
</subwindow>
<subwindow name="4combat">
<class name="charsheet_combat" />
</subwindow>
<subwindow name="5gear">
<class name="charsheet_gear" />
</subwindow>
<subwindow name="6covers">
<class name="charsheet_covers" />
</subwindow>

<windowchangecontrol>
<bounds rect="550, 37, 19, 43" />
<target name="1bio" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="550, 98, 19, 84" />
<target name="2vitals" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="550,203,19,84" />
<target name="3skills" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="550,308,19,84" />
<target name="4combat" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="550,393,19,76" />
<target name="5gear" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="550,487,19,85" />
<target name="6covers" />
</windowchangecontrol>
</sheetdata>
</windowclass>


The problem I'm having is this tab feature is, well, nothing's clickable when I select it :( I can do everything else on the character sheet, but the hotspots for the character sheet changing never appear. It'll even crash FG if I try to click around there too much...

Suggestions? Did I miss a control somewhere?

mr_h
July 15th, 2006, 19:09
Nevermind. It helps if you learn to speel correctly.

*Slaps himself*
*And I call myself an english major*