Character Sheet Refinement (Savage)

From HLKitWiki
Revision as of 20:35, 20 January 2009 by Rob (Talk | contribs) (Gap on Right)

Jump to: navigation, search

Context: HL KitAuthoring Examples … Savage Worlds Walk-Through 

Overview

Our basic character sheet is complete. Now we need to take a look at it and determine what is missing and/or needs to be refined.

Gap on Right

One mildly annoying facet of our character sheet is the gap that appears on the right side beneath the gear table. We need to position the adjustments and condition layout at the bottom in order to determine how much space we have left for everything else. However, if everything else doesn't need all that space, we're left with a gap that looks rather odd. It would probably look better if the layout at the bottom we positioned directly beneath the gear.

Fortunately, we can accomplish this very easily. After the gear layout is rendered within the Position script of the sheet, we can check to see if there is any open space beneath it. If there is open space, we can move the adjustments layout upwards so that it is placed immediately beneath the gear layout. This is achieved by adding the following lines of code to the very end of the Position script.

~if there is open space beneath the gear layout, move the adjustments upward
if (layout[oAdjust].top > layout[oGear].bottom + global[sectiongap]) then
  layout[oAdjust].top = layout[oGear].bottom + global[sectiongap]
  endif

Spillover Sheet