Log in

View Full Version : Character Sheet brand image



Casimir
September 21st, 2009, 15:02
I can't seem to find the code that seems to force the image that is on the "main" page of the Character Sheet in the upper right corner to a specific size. For reference to the image I'm talking about, here's an example :

https://www.singularitycollective.org/images/Image2.jpg

I'm working on a ruleset that adds a third line to the "overview" frame. Naturally, when that displays, the image above stays at it's defined size. I've created a brand image for the ruleset that will fill that location appropriately, but it renders at the same pixel size the original image renders at - which I assume is based on a script / xml line somewhere forcing the image to that size.

However I haven't been able to locate where that image size restriction is located so I can alter it. Can someone point me in the right direction?

Thanks.

Spyke
September 21st, 2009, 15:26
In 3.5E it's the generic control definition in the file charsheet_main.xml, in the definition for the charsheet_main class:


<windowclass name="charsheet_main">
<placement>
<size>
<width>252</width>
<height>611</height>
</size>
</placement>
<nodelete />
<sheetdata>
<genericcontrol>
<bounds>432,30,60,51</bounds>
<icon>cs_logo</icon>
</genericcontrol>

... etc...


The size is controlled by the bounds set.

You'll also need to make sure that the cs_logo.png is in the icons folder, and the definition for the graphic is in graphics.xml:


<icon name="cs_logo" file="icons/cs_logo.png" />

Spyke

Casimir
September 21st, 2009, 15:32
Aha. I figured it was in that xml sheet, just expected it to be a little more obvious than that.

Thanks for the help!