PDA

View Full Version : Window/Frame Size



unerwünscht
December 8th, 2012, 22:15
Is it not possible to increase the size of the character sheet? 525*611 has always felt limited to me, and I am trying to increase the height of the charsheet frame, but having no luck... or am I just missing something?

Ikael
December 8th, 2012, 23:45
In FG everything is flexible so exceeding that default "limit" is no problem, but it depends on what and how are you doing it. There are usually several rendering levels that you must consider before you can amcomplish your goal. Pieace of code you're working on would be helpful here.

unerwünscht
December 8th, 2012, 23:57
Using the 'Basic Ruleset' as starting point, I would like to make the character sheet bigger than 611 pixels tall. I have already increased the size of the image, and have attempted to increase the size of the frame within the ruleset, but it appears to be maxing out at 611 pixels for some reason.

I have set:

<windowclass name="charsheet">
<frame>charsheet</frame>
<placement>
<size>
<width>525</width>
<height>700</height>
</size>
inside of charsheet.xml (including all of the charsheet_*.xml files.

graphics_frames.xml also has
<framedef name="charsheet">
<bitmap file="frames/charsheet.png" />
<topleft rect="0,0,22,22" />
<top rect="22,0,481,22" />
<topright rect="503,0,22,22" />
<left rect="0,22,22,567" />
<middle rect="22,22,481,567" />
<right rect="503,22,22,567" />
<bottomleft rect="0,700,22,22" />
<bottom rect="22,700,481,22" />
<bottomright rect="503,700,22,22" />
</framedef>

but playing with these settings appears to change nothing as well. I have grep'ed for other options, and have nothing of note yet.

Moon Wizard
December 9th, 2012, 01:47
The placement tag only sets the initial size when the window us first opened in each campaign, but then the ruleset typically remembers the window size for each window after that. (Stored in campaign registry lua)

In order to force a size change, make sure to set the minimum and maximum size to the same value.

Cheers,
JPG